summaryrefslogtreecommitdiff
path: root/posts/2021-11-28-write-your-own-ssh-tarpit-in-rust-with-async-std.php
diff options
context:
space:
mode:
author53hornet <atc@53hor.net>2021-12-10 23:17:42 -0500
committer53hornet <atc@53hor.net>2021-12-10 23:17:42 -0500
commitde9bbfdb8f0d3b366e76a5cc775690f7315c740f (patch)
treece5dd65c507ce5db6382665d824ef163e47e8d0f /posts/2021-11-28-write-your-own-ssh-tarpit-in-rust-with-async-std.php
parente68127a6ff2428657b8dab0b90cd16bf1dd99dad (diff)
download53hor-de9bbfdb8f0d3b366e76a5cc775690f7315c740f.tar.xz
53hor-de9bbfdb8f0d3b366e76a5cc775690f7315c740f.zip
feat: custom routing, no required php in posts
Diffstat (limited to 'posts/2021-11-28-write-your-own-ssh-tarpit-in-rust-with-async-std.php')
-rw-r--r--posts/2021-11-28-write-your-own-ssh-tarpit-in-rust-with-async-std.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/posts/2021-11-28-write-your-own-ssh-tarpit-in-rust-with-async-std.php b/posts/2021-11-28-write-your-own-ssh-tarpit-in-rust-with-async-std.php
index 1bce63d..9a58b6c 100644
--- a/posts/2021-11-28-write-your-own-ssh-tarpit-in-rust-with-async-std.php
+++ b/posts/2021-11-28-write-your-own-ssh-tarpit-in-rust-with-async-std.php
@@ -1,10 +1,5 @@
-<?php
-$title = "Write Your Own SSH Tarpit in Rust with async-std";
-if (!empty($early)) {
- return;
-}
-include($_SERVER['DOCUMENT_ROOT'] . '/includes/head.php');
-?>
+<h1>Write Your Own SSH Tarpit in Rust with async-std</h1>
+
<p class="description">
A software tarpit is simple and fun. Long story short, it's sort of a reverse denial-of-service attack. It usually works by inserting an intentional, arbitrary delay in responding to malicious clients, thus "wasting their time and resources." I recently learned about <a href="https://github.com/skeeto/endlessh"><code>endlessh</code></a>, an SSH tarpit. I decided it would be a fun exercise to use Rust's <code>async-std</code> library to write an SSH tarpit of my own, with my own personal <em>flair</em>. If you want to learn more about <code>endlessh</code> or SSH tarpits I highly recommend reading <a href="https://nullprogram.com/blog/2019/03/22/">this blog post</a> by the <code>endlessh</code> author.