Giter Site home page Giter Site logo

small_little_cage's Introduction

Small_Little_Cage 抓鸡啦!

小黑屋,专门收集肉鸡的ip地址

简介

这是一个专门反向抓肉鸡的程序,用于收集攻击者的ip地址然后制作成为自己防御的iptables。从而达到拒绝被攻击的地步,同时通过数据收集,进行反向攻击肉鸡作为中间机器获取其机器权限的作用

使用方法

先创建Crontabs,每小时收集一次攻击者的信息(或者太频繁?改为6小时一次?) 位于/var/spool/cron crontab tutorial https://crontab.guru

内容

* */1 * * * cd /home/tony/Small_Little_Cage/&&python /home/tony/Small_Little_Cage/autoban.py

暂时不支持其他的服务器使用,仅限我的服务器单独使用,现在还在开发通用版本 运行代码

python autoban.py

TO-DO

先把每行的数据处理成list 然后再转换为dic ---done

把text file 利用python 进行处理 放入Dictionary 做成出现字典 --done

分析出现次数 进行ban人行为,同时收集尝试的用户名,作为未来的攻击字典使用 --doing

将收集过来的出现字典ip地址分析出来,进行处理和过滤

其中ip地址有可能为域名的形式出现,利用python进行转换

如果有可能就进行反向抓肉鸡的程序,这是一个很长的过程

每次处理完就要删掉现有的btmp文件以免重复统计

若成功反向抓鸡,运行同样的程序来继续抓鸡,看看最终的攻击者是谁。

Set your username: git config --global user.name "FIRST_NAME LAST_NAME"
Set your email address: git config --global user.email "[email protected]"

small_little_cage's People

Contributors

tonyxiahua avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.