Skip to content

Commit b80f25d

Browse files
Adding in dependabot
1 parent ad0526d commit b80f25d

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

classic-virtual/richListScans.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from rich.console import Console
99
from rich.table import Table
1010

11-
1211
windows_table = Table(show_header=True, header_style="green", box=box.ROUNDED)
1312
linux_table = Table(show_header=True, header_style="blue", box=box.ROUNDED)
1413

@@ -89,6 +88,26 @@ def check_port(ip, port):
8988
if open_port:
9089
linux_table.add_row(str(id), str(ip), str(open_port), str(date), str(user))
9190

91+
print("Checking ports on Windows hosts")
92+
# Split windows_hosts into batches
93+
win_batches = [win_hosts[i:i+batch_size] for i in range(0, len(win_hosts), batch_size)]
94+
95+
for batch in win_batches:
96+
97+
threads = []
98+
99+
for vm in batch:
100+
ip = vm['public_ip']
101+
open_port = check_port(ip, 3389)
102+
id = vm['server_id']
103+
user = vm['provision_user']
104+
date = vm['provision_date']
105+
106+
if open_port:
107+
windows_table.add_row(str(id), str(ip), str(open_port), str(date), str(user))
108+
109+
92110
console = Console()
93111

94112
console.print(linux_table)
113+
console.print(windows_table)

requirements.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
certifi==2023.7.22
2+
charset-normalizer==3.3.0
3+
click==8.1.7
4+
ibm-cloud-sdk-core==3.17.0
5+
ibm-vpc==0.19.1
6+
idna==3.4
7+
markdown-it-py==3.0.0
8+
mdurl==0.1.2
9+
prettytable==3.9.0
10+
prompt-toolkit==3.0.39
11+
Pygments==2.16.1
12+
PyJWT==2.8.0
13+
python-dateutil==2.8.2
14+
requests==2.31.0
15+
rich==13.5.3
16+
six==1.16.0
17+
SoftLayer==6.1.9
18+
urllib3==1.26.17
19+
wcwidth==0.2.8

vpc/listVpcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_vpcs(region):
4444
def print_vpcs(vpcs):
4545
console = Console()
4646

47-
table = Table(show_header=True, header_style="blue", box=box.ROUNDED) # Change header style to bold purple
47+
table = Table(show_header=True, header_style="white", box=box.ROUNDED) # Change header style to bold purple
4848
table.add_column("Name")
4949
table.add_column("ID")
5050
table.add_column("Subnets")

0 commit comments

Comments
 (0)