Skip to content

Instantly share code, notes, and snippets.

@parsibox
Created December 19, 2017 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parsibox/df4c7ac0b5879bc403776efd2bd860f6 to your computer and use it in GitHub Desktop.
Save parsibox/df4c7ac0b5879bc403776efd2bd860f6 to your computer and use it in GitHub Desktop.
awk -F\" '($2 ~ "4up16eyjtx.php"){print $1 $2 $3 $4}' /var/log/httpd/domains/*log
@parsibox
Copy link
Author

parsibox commented Apr 2, 2020

 awk -F\" '($2 ~  /uploads[/].*[/].*[/].*\.(php)/ ){print $1 $2 $3 $4}' /var/log/httpd/domains/*log

@parsibox
Copy link
Author

parsibox commented Apr 2, 2020

 awk -F\" '($2 ~  /uploads[/].*[/].*[/].*\.(php)/ ){print $1}' /var/log/httpd/domains/*log | sort | uniq -c | sort -r

awk -F\" '($2 ~  /uploads[/].*[/].*[/].*\.(php)/ ){print $1}' /var/log/httpd/domains/*log  | cut -d "-" -f 1 > /root/davari.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment