Skip to content

Commit bd759e9

Browse files
committed
chapter8
1 parent 47562c6 commit bd759e9

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

chapter8/code/scanless_service.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,23 @@
22
import json
33
sl = scanless.Scanless()
44

5-
print("1.hackertarget")
6-
print("2.ipfingerprints")
7-
print("3.spiderip")
8-
print("4.standingtech")
9-
print("5.viewdns")
10-
print("6.yougetsignal")
5+
print("1.ipfingerprints")
6+
print("2.spiderip")
7+
print("3.standingtech")
8+
print("4.viewdns")
9+
print("5.yougetsignal")
1110
option=int(input("Enter service option:"))
1211

1312
service=''
14-
if option==1:
15-
service="hackertarget"
16-
elif option==2:
13+
if option==1:
1714
service="ipfingerprints"
18-
elif option==3:
15+
elif option==2:
1916
service="spiderip"
20-
elif option==4:
17+
elif option==3:
2118
service="standingtech"
22-
elif option==5:
19+
elif option==4:
2320
service="viewdns"
24-
elif option==6:
21+
elif option==5:
2522
service="yougetsignal"
2623

2724
output = sl.scan('scanme.nmap.org',scanner=service)

0 commit comments

Comments
 (0)