summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
HEAD
⋅
prev
⋅
next
B Tasker [Mon, 04 Jan 2021 09:37:20 +0000 ]
Add timestamps to output
I'm toying with running some stats at some point
B Tasker [Mon, 04 Jan 2021 09:04:00 +0000 ]
Output how long a client was tarpitted for
B Tasker [Sun, 03 Jan 2021 13:09:52 +0000 ]
Correct command
B Tasker [Sun, 03 Jan 2021 13:07:35 +0000 ]
Correct repo link
B Tasker [Sun, 03 Jan 2021 13:02:01 +0000 ]
Update with details of how to run on a Pi (guess what I'm currently setting up....)
B Tasker [Sun, 03 Jan 2021 12:25:14 +0000 ]
Update README and comments
B Tasker [Sun, 03 Jan 2021 12:10:09 +0000 ]
Add README, File header and License
B Tasker [Sun, 03 Jan 2021 11:44:29 +0000 ]
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
B Tasker [Sun, 03 Jan 2021 11:40:31 +0000 ]
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
B Tasker [Sun, 03 Jan 2021 11:34:15 +0000 ]
Fix whitespace
B Tasker [Sun, 03 Jan 2021 11:28:46 +0000 ]
Detect when the client gives up, and close the connection our end to prevent file-descriptor leaks
B Tasker [Sun, 03 Jan 2021 10:52:39 +0000 ]
Output who we're tarpitting
B Tasker [Sun, 03 Jan 2021 10:41:54 +0000 ]
Oops, remove unused function.
I started writing it, then decided it added more overhead than just restating in the places I was using it
B Tasker [Sun, 03 Jan 2021 10:37:51 +0000 ]
Randomise the length of the strings we output on each iteration
B Tasker [Sun, 03 Jan 2021 10:30:06 +0000 ]
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
B Tasker [Sun, 03 Jan 2021 10:22:07 +0000 ]
Don't re-seed on each iteration
B Tasker [Sun, 03 Jan 2021 10:19:15 +0000 ]
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