Python PHP
Latest commit 47aed63 Feb 22, 2017 @ch3k1 committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
api squdmagic project Nov 14, 2016
config squdmagic project Nov 14, 2016
core squdmagic project Nov 14, 2016
lib check dublicate records Dec 22, 2016
modules squdmagic project Nov 14, 2016
schemas Was added country Code column Dec 4, 2016
.gitignore added gitignore file Jan 2, 2017
.travis.yml travis Dec 27, 2016
README.md Update README.md Feb 22, 2017
config.ini squdmagic project Nov 14, 2016
requirements.txt squdmagic project Nov 14, 2016
squidmagic.py squdmagic project Nov 14, 2016

README.md

squidmagic

start

squidmagic is a tool designed to analyze a web-based network traffic to detect central command and control (C&C) servers and Malicious site, using Squid proxy server and Spamhaus.

Install Squid and configure Proxy server and Zeromq

apt-get -y install squid3 libzmq3-dev
apt-get install php-pear php-dev
pecl install zmq-beta

simple squid3 configuration to Allow all machines to all sites

http_access allow all 

Instalation

git clone https://github.com/ch3k1/squidmagic
cd squidmagic
pip install -r requirements.txt

Install React/ZMQ (in lib folder)

composer install

usage

squidmagic # python squidmagic.py /var/log/squid3/access.log

                 _     _                       _      
                (_)   | |                     (_)     
 ___  __ _ _   _ _  __| |_ __ ___   __ _  __ _ _  ___ 
/ __|/ _` | | | | |/ _` | '_ ` _ \ / _` |/ _` | |/ __|
\__ \ (_| | |_| | | (_| | | | | | | (_| | (_| | | (__ 
|___/\__, |\__,_|_|\__,_|_| |_| |_|\__,_|\__, |_|\___|
        | |                               __/ |       
        |_|                              |___/        
     Analyzing...

Analyzing by SBL Advisory...
    Spam server detected, ip is 65.182.101.221
Analyzing by SBL_CSS Advisory...
    safe server detected, host or ip is 65.182.101.221
Analyzing by PBL Advisory...
    safe server detected, host or ip is 65.182.101.221

Run server

bin # php server.php 


                              | |                          
         ___  __ _ _   _ _  __| |_ __ ___   __ _  __ _ _  ___ 
        / __|/ _` | | | | |/ _` | '_ ` _ \ / _` |/ _` | |/ __|
        \__ \ (_| | |_| | | (_| | | | | | | (_| | (_| | | (__ 
        |___/\__, |\__,_|_|\__,_|_| |_| |_|\__,_|\__, |_|\___|
                | |                               __/ |       
                |_|                              |___/ 
                    squidmagic collector started