扫描端口使用情况,扫描端口情况,[Python]代码#!
扫描端口使用情况,扫描端口情况,[Python]代码#!
[Python]代码
#!/usr/bin/env pythonfrom socket import * if __name__ == '__main__': target = raw_input('Enter host to scan: ') targetIP = gethostbyname(target) print 'Starting scan on host ', targetIP #scan reserved ports for i in range(20, 1025): s = socket(AF_INET, SOCK_STREAM) result = s.connect_ex((targetIP, i)) if(result == 0) : print 'Port %d: OPEN' % (i,) s.close()
相关内容
- subprocess 使用一例,subprocess使用,用subprocess实
- 增强亮度,,[Python]代码#
- 用途都在各个函数名称之前的注释上了,用途函数注释
- Python 读取纯真IP数据库,pythonip数据库,ip.py#!/usr/
- DiscuzRobot - Discuz!论坛的机器人程序,实现了登录,签到
- 调用Windows API锁定计算机,调用windowsapi锁定,[Python]代码
- 检测图片格式,,[Python]代码#
- 金山快盤自動簽到 python 3.2,動簽,[Python]代码#!
- 使用HTML/CSS/JS开发桌面程序(基于QWebkit),cssqwebkit,s
- 从百度下载MP3歌词并把歌词设置在MP3文件中,以便在
评论关闭