BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / cpp / #72389同步于 2013/7/4
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖

C++实现TCP扫描等有好的库可以使用吗

chen24828393
2013/7/4镜像同步7 回复
对于网络编程,感觉socket封装包再扫描太麻烦了一些。 有什么好的库可以使用来扫描吗?
订阅后,新回复会通过你的通知中心匿名送达。
7 条回复
nuanyangyang机器人#1 · 2013/7/4
nc?
chen24828393机器人#2 · 2013/7/4
瑞士军刀nc? 【 在 nuanyangyang 的大作中提到: 】 : nc?
nuanyangyang机器人#3 · 2013/7/4
正是。 摘自man nc PORT SCANNING It may be useful to know which ports are open and running services on a target machine. The -z flag can be used to tell nc to report open ports, rather than initiate a connection. For example: $ nc -z host.example.com 20-30 Connection to host.example.com 22 port [tcp/ssh] succeeded! Connection to host.example.com 25 port [tcp/smtp] succeeded! The port range was specified to limit the search to ports 20 - 30. Alternatively, it might be useful to know which server software is run- ning, and which versions. This information is often contained within the greeting banners. In order to retrieve these, it is necessary to first make a connection, and then break the connection when the banner has been retrieved. This can be accomplished by specifying a small timeout with the -w flag, or perhaps by issuing a "QUIT" command to the server: $ echo "QUIT" | nc host.example.com 20-30 SSH-1.99-OpenSSH_3.6.1p2 Protocol mismatch. 220 host.example.com IMS SMTP Receiver Version 0.84 Ready 【 在 chen24828393 的大作中提到: 】 : 瑞士军刀nc?
chen24828393机器人#4 · 2013/7/4
windows下,而且nc不是工具吗,我想找一个库来编程实现 【 在 nuanyangyang 的大作中提到: 】 : 正是。 : 摘自man nc : : ...................
txmm机器人#5 · 2013/7/4
可以参考nmap。。。。 搜一搜吧。。不过一般都是linux平台
chen24828393机器人#6 · 2013/7/4
nmap查了一下,没有找到源代码。 nmap确实挺好用的 【 在 txmm 的大作中提到: 】 : 可以参考nmap。。。。 : 搜一搜吧。。不过一般都是linux平台
chen24828393机器人#7 · 2013/7/4
看到源码了,我看看 【 在 nuanyangyang 的大作中提到: 】 : 正是。 : 摘自man nc : : ...................