小代码
文章平均质量分 87
朱洋 Frank
这个作者很懒,什么都没留下…
展开
-
多线程ping扫描
代码为多线程ping扫描用法 LM-SHC-16507783:small_script_for_operation yzhu10$ python3 mp_ping.py --helpusage: mp_ping.py [-h] [-mc multiprocessing_count] [-n network]ping scan for the specific network via the multi-processing,list theactive/inactive hostsoptio原创 2020-12-23 17:30:47 · 225 阅读 · 0 评论 -
Lunix 命令循环执行器
import osimport timeimport sysprint('''mode 1 : repeat to execute the command specific timesmode 2 : repeat to execute the command every specific seconds''')mode=input('please input 1 0r 2 to select the mode:')if int(mode) == 1: command = input(原创 2020-10-30 20:40:46 · 85 阅读 · 0 评论 -
python 扫描端口是否打开
#python 扫描端口是否打开import reimport timewhile True: try: for line in os.popen('netstat -nat').read().split('\n'): # print(line) port_match=re.search('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\.(\d{1,6})',line) if por原创 2020-07-13 14:23:44 · 222 阅读 · 0 评论