Coder Social home page Coder Social logo

connorapple / portscanblocker Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 7 KB

A Cybersecurity tool to detect and block IPs conducting port scans on a host machine.

Python 100.00%
cybersecurity cyber-security port-scanning ip-blocker ip-blocking iptables-firewall iptables linux-security tcp

portscanblocker's Introduction

ScanBlocker

Python Dependencies

  • View requirements.txt
  • to install automatically run pip install -r requirements.txt

Linux Dependencies

IPTABLES

sudo apt-get install iptables

Usage

sudo python scanBlocker.py

Usage Options

  -H HOSTIP, --hostIP HOSTIP
                        Specify your host inet address. Will default to the
                        inet address of default interface.
  -i INTERFACE, --interface INTERFACE
                        Specify an interface to sniff for port scans on. Will
                        default to system default.
  -c, --clear           Use this flag to clear all blocked IPs before running. 

sudo python scanBlocker -i ens4 -H 10.138.0.27

Clear out iptable rule chain

sudo python scanBlocker -c
or

sudo iptables -F
sudo iptables -X 

View Blocked IP Addresses

Ctrl + C while running
or
sudo iptables -n -L

portscanblocker's People

Contributors

connorapple avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

portscanblocker's Issues

iptc module not found

its showing like there is no module for iptc . please give me clarification on how to do this

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.