Skip to content

Commit 823b876

Browse files
committed
Refactor scanners: remove redundant modules and unify under 'Host Scanner'
Removed repetitive `Host Scanner` and `CIDR Scanner` modules. Renamed `Host Scanner Pro` to `Host Scanner`, which now serves as a unified replacement for both deprecated modules.
1 parent 25c693d commit 823b876

15 files changed

Lines changed: 374 additions & 585 deletions

File tree

bugscanx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
def import_modules():
88
def task():
99
try:
10-
from bugscanx.modules.scanners_pro import host_scanner_pro
10+
from bugscanx.modules.scanners import host_scanner
1111
from bugscanx.modules.scrapers.subfinder import subfinder
1212
except Exception:
1313
pass

bugscanx/handler/runner.py

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,43 @@
11
def run_1():
2-
from bugscanx.modules.scanners_pro import host_scanner_pro
3-
host_scanner_pro.main()
4-
5-
6-
def run_2():
72
from bugscanx.modules.scanners import host_scanner
83
host_scanner.main()
94

105

11-
def run_3():
12-
from bugscanx.modules.scanners import cidr_scanner
13-
cidr_scanner.main()
14-
15-
16-
def run_4():
6+
def run_2():
177
from bugscanx.modules.scrapers.subfinder import subfinder
188
subfinder.main()
199

2010

21-
def run_5():
11+
def run_3():
2212
from bugscanx.modules.scrapers.iplookup import iplookup
2313
iplookup.main()
2414

2515

26-
def run_6():
16+
def run_4():
2717
from bugscanx.modules.others import file_toolkit
2818
file_toolkit.main()
2919

3020

31-
def run_7():
21+
def run_5():
3222
from bugscanx.modules.scanners import port_scanner
3323
port_scanner.main()
3424

3525

36-
def run_8():
26+
def run_6():
3727
from bugscanx.modules.others import dns_records
3828
dns_records.main()
3929

4030

41-
def run_9():
31+
def run_7():
4232
from bugscanx.modules.others import host_info
4333
host_info.main()
4434

4535

46-
def run_10():
36+
def run_8():
4737
from bugscanx.modules.others import script_help
4838
script_help.main()
4939

5040

51-
def run_11():
41+
def run_9():
5242
from bugscanx.modules.others import script_updater
5343
script_updater.main()

bugscanx/main.py

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,16 @@
44

55

66
MENU_OPTIONS = {
7-
'1': ("HOST SCANNER PRO", "bold cyan"),
8-
'2': ("HOST SCANNER", "bold blue"),
9-
'3': ("CIDR SCANNER", "bold yellow"),
10-
'4': ("SUBFINDER", "bold magenta"),
11-
'5': ("IP LOOKUP", "bold cyan"),
12-
'6': ("FILE TOOLKIT", "bold magenta"),
13-
'7': ("PORT SCANNER", "bold white"),
14-
'8': ("DNS RECORD", "bold green"),
15-
'9': ("HOST INFO", "bold blue"),
16-
'10': ("HELP", "bold yellow"),
17-
'11': ("UPDATE", "bold magenta"),
18-
'12': ("EXIT", "bold red"),
7+
'1': ("HOST SCANNER", "bold cyan"),
8+
'2': ("SUBFINDER", "bold magenta"),
9+
'3': ("IP LOOKUP", "bold cyan"),
10+
'4': ("FILE TOOLKIT", "bold magenta"),
11+
'5': ("PORT SCANNER", "bold white"),
12+
'6': ("DNS RECORD", "bold green"),
13+
'7': ("HOST INFO", "bold blue"),
14+
'8': ("HELP", "bold yellow"),
15+
'9': ("UPDATE", "bold magenta"),
16+
'0': ("EXIT", "bold red"),
1917
}
2018

2119

@@ -33,7 +31,7 @@ def main():
3331
if choice not in MENU_OPTIONS:
3432
continue
3533

36-
if choice == '12':
34+
if choice == '0':
3735
return
3836

3937
text_ascii(MENU_OPTIONS[choice][0])

bugscanx/modules/scanners/cidr_scanner.py

Lines changed: 0 additions & 150 deletions
This file was deleted.

0 commit comments

Comments
 (0)