Skip to content

Commit 353fa40

Browse files
authored
Update network_scanner.py
1 parent 3a7cff0 commit 353fa40

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Network_scanner/network_scanner.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
import scapy.all as scapy
2-
import optparse
1+
try:
2+
import scapy.all as scapy
3+
import optparse
4+
except ImportError:
5+
print("[+] packages not installed ")
6+
print("try-> pip install scapy")
7+
print("pip install optparse-pretty")
38

49

510
def get_arguments(): # function to pass input in console

0 commit comments

Comments
 (0)