-
-
Notifications
You must be signed in to change notification settings - Fork 28
7.2 Tarpit False Login loop
Tomato6966 edited this page Nov 3, 2022
·
2 revisions
-
SSH on a different port than default (22)
- e.g: on Port 5050 | [here is a tutorial for that incl. a firewall]
-
Also for that the port 22 (default ssh port) shall be allowed by your firewall
-
and couple libs and packages:
sudo apt install python3-pip
# tarpit
pip3 install ssh-tarpit
Start tarpit with logs: (so you see which ips login, so you can ban them if they spam and try to "hack" you / steal data from you)
ssh-tarpit -i 4 -a <your connection ipv4> -p 22 -f /path/to/log/tarpit.log
Start tarpit without logs:
ssh-tarpit -i 4 -a <your connection ipv4> -p 22
Start it with pm2:
echo "ssh-tarpit -i 4 -a <your connection ipv4> -p 22 -f /path/to/log/tarpit.log" > /home/startTarpit.sh
chmod +rwx /home/startTarpit.sh
pm2 start /home/startTarpit.sh --name Tarpit
My startTarpit.sh File:
# /bin/bash
echo "" > ~/tarpit.log
ssh-tarpit -i 4 -a 45.142.104.172 -p 22 -f ~/tarpit.log
-
1 All needed Console Commands
- 1.1 Directory Navigation
- 1.2 System Information
- 1.3 Hardware Information
- 1.4 File and Directory Cmds
- 1.5 Process Management
- 1.6 File Permissions
- 1.7 Networking
- 1.8 Archives (Tar Files)
- 1.9 Search
- 1.10 File Transfers
- 1.11 Disk Usage
- 1.12 User Information and Management
- 1.13 Speedtest
- 1.14 Clear Cache
- 1.15 Disable Sleeping Processes (Suspending)
- 1.16 Remove Welcome Message