changes
This commit is contained in:
@@ -9,17 +9,12 @@ echo "Airgapped Systems will need to exfiltrate /root/*.csv"
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
iterations=$1
|
iterations=$1
|
||||||
|
|
||||||
for (( i=1; i<=$iterations; i++ )); do
|
for (( i=1; i<=$iterations; i++ )); do
|
||||||
# Execute the command
|
# Execute the command
|
||||||
python3 ixiostat.py
|
python3 ixiostat.py
|
||||||
gstat -C -s -d -o -p -I 60s >> /root/gstat.csv
|
gstat -C -s -d -o -p -I 60s >> /root/gstat.csv
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Wait for 60 seconds before the next iteration
|
# Wait for 60 seconds before the next iteration
|
||||||
sleep 60
|
sleep 60
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ from datetime import datetime
|
|||||||
|
|
||||||
|
|
||||||
def convert_to_machine_readable(date_string):
|
def convert_to_machine_readable(date_string):
|
||||||
|
print(f"converting {date_string}")
|
||||||
# Define the format string considering the time zone information (EDT)
|
# Define the format string considering the time zone information (EDT)
|
||||||
format_string = "%a %b %d %H:%M:%S %p %Z %Y"
|
format_string = "%a %b %d %H:%M:%S %p %Z %Y"
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user