Easy

”Saint John”: what is writing to this log file?

  • On login we find a python script in the home directory
  • The python script is writing to the log file
  • Doing grep on ps -aux to find the process. ps -aux | badlog.py
  • Get the process id
  • sudo kill -9 <pid>

”Saskatoon”: counting IPs.

  • cut -d " " -f 1 /home/admin/access.log | sort | uniq -c | sort -n
  • cut -d " " -f 1 <logfile>: to get ip address from log file
  • sort: to sort the list of ip’s
  • uniq -c: to get the count of each ip, counts how many times a line repeated
  • sort -n: to sort numbers

”Santiago”: Find the secret combination

  • TODO

Medium

”Manhattan”: can’t write data into database.