Skip to content

Easily report all connection attempts on common vulnerable ports to AbuseIPDB

License

Notifications You must be signed in to change notification settings

andreasclaesson/ListenSSH

Repository files navigation

ListenSSH

Easily report all connection attempts on common vulnerable ports to AbuseIPDB
Reuploaded with permission from old owner (friend).

Features

  • AbuseIPDB reporter (with built-in ratelimits)
  • Discord Webhooks (text or embed)
  • IP-API integration on Discord embed webhooks

Installation

This guide requires basic Linux understanding. Tools to install (install command below):

# Install required packages
apt install -y python3 python3-pip git

# Clone repository files
git clone https://github.com/andreasclaesson/ListenSSH
cd ListenSSH

# Install required python packages
pip install -r requirements.txt

# Move config file
mv config_example.ini config.ini

# Edit the config file (you may use your favorite text editor)
nano config.ini

# Start the script
python3 main.py

Run in background

Systemd

If you wish to run ListenSSH using Systemd, which we highly recommend, follow these instructions

cp systemd/listenssh.service /etc/systemd/system/listenssh.service

# Change the "WorkingDirectory" to the one where you have installed ListenSSH (unless its the root directory)
nano /etc/systemd/system/listenssh.service

systemctl daemon-reload
systemctl enable listenssh.service
systemctl start listenssh.service

PM2

# Make it so PM2 restarts ListenSSH on server reboot
pm2 startup

# Start ListenSSH
pm2 start

# Save ListenSSH to PM2 so it will be restarted on reboot.
pm2 save

About

Easily report all connection attempts on common vulnerable ports to AbuseIPDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published