Apr-11-2018, 05:19 AM
I'm putting together a hacking program for a school project. I found the following ping sweep script on youtube:
#PingSweep.py #This program will find all of the active ip addresses in a network import ipaddress import sh print("Enter a network address with a slash number.") chooseNetworkAddress = input("") network = ipaddress.ip_network(unicode(chooseNetworkAddress)) for i in network.hosts(): try: sh.ping(i, "-c l") print(i, " is active") except sh.ErrorReturncode_l: print(" no response from", i)But I don't understand the "-c l" parameters used on line 12. Does anybody know what those are supposed to do?