2 weeks agoAdd timestamps to output master
B Tasker []
Add timestamps to output

I'm toying with running some stats at some point

2 weeks agoOutput how long a client was tarpitted for
B Tasker []
Output how long a client was tarpitted for

2 weeks agoCorrect command
B Tasker []
Correct command

2 weeks agoCorrect repo link
B Tasker []
Correct repo link

2 weeks agoUpdate with details of how to run on a Pi (guess what I'm currently setting up....)
B Tasker []
Update with details of how to run on a Pi (guess what I'm currently setting up....)

2 weeks agoUpdate README and comments
B Tasker []
Update README and comments

2 weeks agoAdd README, File header and License
B Tasker []
Add README, File header and License

2 weeks agoRun as an unprivileged user
B Tasker []
Run as an unprivileged user

if someones does find an exploitable bug in Go (or my script), lets try and make container escapes at least a little harder

2 weeks agoCreate basic dockerfile to run the tarpit in a container.
B Tasker []
Create basic dockerfile to run the tarpit in a container.

Currently, it'll run as root, which is obvs unwise. That'll be changed shortly.

~/go_ssh_tarpit.git# docker run -i -t -p 2222:2222 b512eb9b9114
Listening on 2222
Tarpitting 192.168.3.70:44942
Coward disconnected: 192.168.3.70:44942

2 weeks agoFix whitespace
B Tasker []
Fix whitespace

2 weeks agoDetect when the client gives up, and close the connection our end to prevent file-descriptor leaks
B Tasker []
Detect when the client gives up, and close the connection our end to prevent file-descriptor leaks

2 weeks agoOutput who we're tarpitting
B Tasker []
Output who we're tarpitting

2 weeks agoOops, remove unused function.
B Tasker []
Oops, remove unused function.

I started writing it, then decided it added more overhead than just restating in the places I was using it

2 weeks agoRandomise the length of the strings we output on each iteration
B Tasker []
Randomise the length of the strings we output on each iteration

2 weeks agoRandomise the delay between responses a bit
B Tasker []
Randomise the delay between responses a bit

Probably doesn't make much difference for any bot that's taken tarpits into account, but the underlying idea is to make it look a little more like it's an overloaded box taking varying amounts of time to respond

2 weeks agoDon't re-seed on each iteration
B Tasker []
Don't re-seed on each iteration

2 weeks agoAdd initial implementation.
B Tasker []
Add initial implementation.

This gives us a basic tarpit which will write out 10 ascii chars, sleep for 2s and then repeat

It's enough to keep the OpenSSH client tied up, but is fairly formulaic, so I'd like to switch it up a bit in subsequent commits