3 months agoAdd timestamps to output master
B Tasker []
Add timestamps to output

I'm toying with running some stats at some point

3 months agoOutput how long a client was tarpitted for
B Tasker []
Output how long a client was tarpitted for

3 months agoCorrect command
B Tasker []
Correct command

3 months agoCorrect repo link
B Tasker []
Correct repo link

3 months 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....)

3 months agoUpdate README and comments
B Tasker []
Update README and comments

3 months agoAdd README, File header and License
B Tasker []
Add README, File header and License

3 months 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

3 months 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

3 months agoFix whitespace
B Tasker []
Fix whitespace

3 months 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

3 months agoOutput who we're tarpitting
B Tasker []
Output who we're tarpitting

3 months 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

3 months agoRandomise the length of the strings we output on each iteration
B Tasker []
Randomise the length of the strings we output on each iteration

3 months 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

3 months agoDon't re-seed on each iteration
B Tasker []
Don't re-seed on each iteration

3 months 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