Taipei - normal port knocking
nmap -p- --min-rate=1000 -T4 localhost
Unimak - json parsing
jq '.data.stations[] | select(.has_kiosk==false and .capacity>30) | .station_id' station_information.json > ~/mysolution
Ivujivik - csv parsing
find out the row first run without try - error - and catch it
import csv
max_rejected = 0
max_district = ""
with open("table_tableau11.csv") as f:
reader = csv.reader(f)
next(reader) # skip header
for row in reader:
name = row[1]
try:
rejected = int(row[8])
except ValueError:
print(f"Could not convert rejected ballots to int for district {name}")
rejected = 0
population = int(row[3])
if population < 100000 and rejected > max_rejected:
max_rejected = rejected
max_district = name
print(max_district)
Monaco
# - get the POST field
curl localhost:5000
# format with
curl -X POST -F 'password=PASSWORD' http://localhost:5000/
git restore ./
cat webserver.py
#locate the password location
ps aux | grep python
# find the pid
cat /proc/1234/environ | grep SUPERSECRETPASSWORD
get the env
format and post it
pretty cool about /proc tricks. you can even see a background progress stderr/stdout with
cat /proc/1444/fd/{1,2}




