Hi I am writing a script that check a network to see if certen people are connected by getting devices mac addresses from arp, I am roughly 0.5% through and I have a problem. I currently have to ping all ip addresses 192.168.1.2-254. Now this is incredibly slow is there a quicker way:
Code:
inport os
ipcount=2
ipup=[]
while ipcount<254:
 response=os.system("ping -c 1 192.168.1." + str(ipcount))
 if response == 0:
   ipup.append("192.168.1."+str(ipcount))
 ipcount=ipcount+1