coding:python:net_scan.py
net_scan.py
- net_scan.py
import os networkprefix = str('192.168.2.') print("Подготовка") x = 0 for x in range(1,255,1): #print(x, ' ') y = str(x) ip = networkprefix + y print(ip) result = os.system('call c:\\test.bat ' + ip + ' >> c:\\test.log') arg = "192.168.2.22 192.168.2.33" #result = os.system('call c:\\test.bat ' + arg + ' > c:\\test.log') #print(result) print("Мимо?..")
coding/python/net_scan.py.txt · Востаннє змінено: 2012/10/15 20:46 (зовнішнє редагування)