Skip to content

Commit

Permalink
Updated port scan app
Browse files Browse the repository at this point in the history
  • Loading branch information
greyhoundforty committed May 2, 2024
1 parent 9bffe94 commit 33f3f40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 144 deletions.
12 changes: 6 additions & 6 deletions jobs/account-port-scan/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,23 +157,23 @@ def main():
for target in targets:
open_ports = scan_top_ports(target)
if open_ports:
logging.info(f"Open ports on {target}: {open_ports}")
logging.info("VPC Floating IP Scan complete.")
print(f"Open ports on {target}: {open_ports}")
print("VPC Floating IP Scan complete.")

print("Starting scan on classic infrastructure virtual guests...")
targets = get_classic_infrastructure_instances()
for target in targets:
open_ports = scan_top_ports(target)
if open_ports:
logging.info(f"Open ports on {target}: {open_ports}")
if open_ports:
print(f"Open ports on {target}: {open_ports}")
print("Classic Virtual Guests Scan complete.")

print("Starting scan on classic infrastructure bare metals...")
targets = get_classic_infrastructure_hardware()
for target in targets:
open_ports = scan_top_ports(target)
if open_ports:
logging.info(f"Open ports on {target}: {open_ports}")
if open_ports:
print(f"Open ports on {target}: {open_ports}")
print("Classic Bare Metals Scan complete.")


Expand Down
138 changes: 0 additions & 138 deletions jobs/account-port-scan/main.py

This file was deleted.

0 comments on commit 33f3f40

Please sign in to comment.