Skip to content

Quick & dirty script to find infected computers

Notifications You must be signed in to change notification settings

rezoleo/renater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Renater

Quick and dirty ruby script, to answer to school IT requests.

We regularly receive CERT alerts of infected computers contacting malicious servers, and people from above want us to clean or disconnect them.

The problem is that the CERT report gives the date in the 2016-11-09 22:16:46+01:00 format, whereas squid logs everything as timestamps.

This script allows us to quickly comply with the request, by providing both date and destination IP, and then parsing all logs.

Usage

  1. SSH to the proxy indicated in the report.
  2. cd to the squid logs folder (usually /home/squid3)
  3. Run ruby renater.rb.
  4. Enter date as provided in the report, and the destination IP.

If you want to debug the script (display more info, basically), just export DEBUG_RENATER='true' before running it.

Author

Thomas 'Nymous' Gaudin

License

WTFPL

About

Quick & dirty script to find infected computers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages