Skip to content

VERY hacky, I mean REALLY hacky script that works...Block by entire ASN Number

Notifications You must be signed in to change notification settings

tg12/BLOCK_BY_ASN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

BLOCK_BY_ASN

VERY hacky, I mean REALLY hacky script that works...Block by entire ASN Number

Quite easy, It will scan through your /var/log/auth.log file for brute force shit....

yada yada yada....Expand if you like.

grep -E '(BREAK-IN|Invalid user|Failed|refused|Illegal)' /var/log/auth.log | rev | cut -d\ -f4 | rev | sort -u > host.txt

grab the entire ASN (Mainly China, Sorry China!!) then block everything that exists under that ASN (reject-with icmp-port-unreachable)

Usage (Copy Pasta):

wget https://raw.githubusercontent.com/tg12/BLOCK_BY_ASN/master/script1.sh

chmod u+x

./script1.sh

Donate with PayPal Bitcoin Cash (BCH) - qpz32c4lg7x7lnk9jg6qg7s4uavdce89myax5v5nuk

Ether (ETH) - 0x843d3DEC2A4705BD4f45F674F641cE2D0022c9FB

Litecoin (LTC) - Lfk5y4F7KZa9oRxpazETwjQnHszEPvqPvu

Bitcoin (BTC) - 14Dm7L3ABPtumPDcj3REAvs4L6w9YFRnHK

About

VERY hacky, I mean REALLY hacky script that works...Block by entire ASN Number

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages