Skip to content

Commit e3c2625

Browse files
committed
refactor: Simplify user input prompts in host_info and open_port modules
1 parent adf6c05 commit e3c2625

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bugscanx/modules/others/host_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ def get_sni_info(hostname, port=443):
9898
return f"Error getting SNI info: {e}"
9999

100100
def main():
101-
host = get_input("Enter the host")
102-
protocol = get_input("Enter the protocol", "choice", choices=["http", "https"])
101+
host = get_input("Enter host")
102+
protocol = get_input("Select protocol", "choice", choices=["http", "https"])
103103
url = f"{protocol}://{host}"
104104

105105
print("\n[bold cyan]Target Information[/bold cyan]")

bugscanx/modules/scanners/open_port.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def scan_port(ip, port):
1717
return None
1818

1919
def main():
20-
target = get_input("Enter target IP/hostname")
20+
target = get_input("Enter target")
2121
try:
2222
ip = socket.gethostbyname(target)
2323
console.print(f" Scanning target: {ip} ({target})", style="bold green")

0 commit comments

Comments
 (0)