This commit is contained in:
Marc Mance
2024-05-29 18:29:06 -04:00
parent 48b5bf9abb
commit c516367473
2 changed files with 1 additions and 5 deletions

View File

@@ -9,17 +9,12 @@ echo "Airgapped Systems will need to exfiltrate /root/*.csv"
echo ""
iterations=$1
for (( i=1; i<=$iterations; i++ )); do
# Execute the command
python3 ixiostat.py
gstat -C -s -d -o -p -I 60s >> /root/gstat.csv
# Wait for 60 seconds before the next iteration
sleep 60
done

View File

@@ -6,6 +6,7 @@ from datetime import datetime
def convert_to_machine_readable(date_string):
print(f"converting {date_string}")
# Define the format string considering the time zone information (EDT)
format_string = "%a %b %d %H:%M:%S %p %Z %Y"
try: