Skip to content

Commit 6ab614a

Browse files
authored
Update labsecurity
1 parent aa2b430 commit 6ab614a

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

labsecurity

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,29 @@ def terminal ():
4242
global ip1
4343
print (Style.BRIGHT + Fore.GREEN + "ip =>", prompt[2])
4444
ip1 = prompt[2]
45-
if prompt[1] == 'port':
45+
elif prompt[1] == 'port':
4646
global port1
4747
print (Style.BRIGHT + Fore.GREEN + "port =>", prompt[2])
4848
port1 = prompt[2]
49+
else:
50+
print (Style.BRIGHT + Fore.RED + "[*] ERROR, use the help command for more information")
4951
elif prompt[0] == 'use':
5052
global use1
5153
#Here is the part where one of the following categories is used
5254
if prompt[1] == 'scanweb':
5355
print (Style.BRIGHT + Fore.GREEN + "use =>", prompt[1])
5456
use1 = prompt[1]
55-
if prompt[1] == 'scanports':
57+
elif prompt[1] == 'scanports':
5658
print (Style.BRIGHT + Fore.GREEN + "use =>", prompt [1])
5759
use1 = prompt[1]
58-
if prompt[1] == 'scanport':
60+
elif prompt[1] == 'scanport':
5961
print (Style.BRIGHT + Fore.GREEN + "use =>", prompt[1])
6062
use1 = prompt[1]
61-
if prompt[1] == 'scanip':
63+
elif prompt[1] == 'scanip':
6264
print (Style.BRIGHT + Fore.GREEN + "use =>", prompt[1])
6365
use1 = prompt[1]
66+
else:
67+
print (Style.BRIGHT + Fore.RED + "[*] ERROR, use the help command for more information")
6468
elif prompt[0] == 'clear':
6569
os.system ("clear")
6670
elif prompt[0] == 'exit' or prompt[0] == 'quit':
@@ -69,15 +73,17 @@ def terminal ():
6973
if use1 == 'scanweb':
7074
print (Style.BRIGHT + Fore.BLUE + "[*] Scanning website...")
7175
scanner.scanweb (ip1)
72-
if use1 == 'scanports':
76+
elif use1 == 'scanports':
7377
print (Style.BRIGHT + Fore.BLUE + "[*] Scanning ports...")
7478
scanner.scanports(ip1)
75-
if use1 == 'scanport':
79+
elif use1 == 'scanport':
7680
print (Style.BRIGHT + Fore.BLUE + "[*] Scanning port...")
7781
scanner.scanport (ip1, port1)
78-
if use1 == 'scanip':
82+
elif use1 == 'scanip':
7983
print (Style.BRIGHT + Fore.BLUE + "[*] Scanning ip...")
8084
scanner.scanip (ip1)
85+
else:
86+
print (Style.BRIGHT + Fore.RED + "[*] ERROR, use the help command for more information")
8187
else:
8288
print (Style.BRIGHT + Fore.RED + "[*] ERROR, use the help command for more information")
8389

0 commit comments

Comments
 (0)