Skip to content

Commit 33f3f40

Browse files
Updated port scan app
1 parent 9bffe94 commit 33f3f40

File tree

2 files changed

+6
-144
lines changed

2 files changed

+6
-144
lines changed

jobs/account-port-scan/app.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,23 +157,23 @@ def main():
157157
for target in targets:
158158
open_ports = scan_top_ports(target)
159159
if open_ports:
160-
logging.info(f"Open ports on {target}: {open_ports}")
161-
logging.info("VPC Floating IP Scan complete.")
160+
print(f"Open ports on {target}: {open_ports}")
161+
print("VPC Floating IP Scan complete.")
162162

163163
print("Starting scan on classic infrastructure virtual guests...")
164164
targets = get_classic_infrastructure_instances()
165165
for target in targets:
166166
open_ports = scan_top_ports(target)
167-
if open_ports:
168-
logging.info(f"Open ports on {target}: {open_ports}")
167+
if open_ports:
168+
print(f"Open ports on {target}: {open_ports}")
169169
print("Classic Virtual Guests Scan complete.")
170170

171171
print("Starting scan on classic infrastructure bare metals...")
172172
targets = get_classic_infrastructure_hardware()
173173
for target in targets:
174174
open_ports = scan_top_ports(target)
175-
if open_ports:
176-
logging.info(f"Open ports on {target}: {open_ports}")
175+
if open_ports:
176+
print(f"Open ports on {target}: {open_ports}")
177177
print("Classic Bare Metals Scan complete.")
178178

179179

jobs/account-port-scan/main.py

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

0 commit comments

Comments
 (0)