nevermind really easy fix
This commit is contained in:
parent
2652ceae58
commit
bbe9e7691a
1 changed files with 6 additions and 2 deletions
8
main.py
8
main.py
|
@ -225,9 +225,13 @@ def main():
|
|||
break
|
||||
scan_ports_for_ip(ip, port_start, port_end)
|
||||
|
||||
bottom_line = len(ip_line_map) + 3 + len(open_port_msgs)
|
||||
move_cursor(bottom_line, 0)
|
||||
clear_line()
|
||||
|
||||
print("\n" + "-"*60)
|
||||
print("scan done at:", str(datetime.now()))
|
||||
print("-"*60)
|
||||
print("-"*60 + "\n")
|
||||
|
||||
with open("summary.txt", "w") as f:
|
||||
if open_ports:
|
||||
|
@ -240,7 +244,7 @@ def main():
|
|||
else:
|
||||
f.write("no open ports found.\n")
|
||||
|
||||
print("\n[+] scan summary written to summary.txt :p")
|
||||
print("[+] scan summary written to summary.txt :p\n")
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue