Skip to content

Commit

Permalink
Update crab.py
Browse files Browse the repository at this point in the history
  • Loading branch information
N0tA1dan committed Mar 4, 2022
1 parent 4f258e0 commit e995773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crab.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def portscan2(host, timeout):



def fastportscan2(host, timeout):
def fastportscan(host, timeout):
start = time.time()
for x in range(0, 1025):
t = threading.Thread(target=portscan, kwargs={'host': host, 'port': x, 'timeout': timeout})
Expand Down Expand Up @@ -92,7 +92,7 @@ def fastportscan2(host, timeout):
if (args[0] == "-sA"):
portscan2(args[1], args[2])
if (args[0] == "-sC"):
fastportscan2(args[1], args[2])
fastportscan(args[1], args[2])

except IndexError:
print("Invalid args. Use [-h] for help")

0 comments on commit e995773

Please sign in to comment.