October 28, 2019 · Basic Pen-Testing

1.3 : Basic Bash scripting - head, tail, wc, sort & uniq (Part III)

Examining server logs

Take a look on the file by head , tail , wc , sort , uniq command

let say we have example log file like this:

apache.log

123.45.6.7 - - [21/Apr/2014:07:09:18 -0500] "GET / HTTP/1.1" 200 356 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13"

Common usage: