Brainfk

thorny rabbit hole

My brain was raw and spongey after Arctic. I gained insight into the following topics:

All it cost was my sanity. I also tackled Grandpa and gained experience with the following skills:

Ok, let’s dive into madness.

Arctic

The NMAP came back with interesting results. scan.png

Port 135 (RPC) but 445 (SMB) and 137-139 (NETBIOS) are filtered. MS17 and other SMB exploits would not work. Only a couple of modules could run on port 135.

search_135.png

ms03_26_dcom didn’t create a session but endpoint_mapper returned interesting information.

I desperately tried to find the relevancy of port 49154 by comping endpoint_mapper. I read on SE that it “allows remote viewing and administration of Scheduled Tasks”. This led me to installing Windows 10 Pro for RSAT tools. Ultimately, I couldn’t find a way to exploit port 49154; it was probably a red herring.

After two days of showering RPC and other ports with remote exploits, I decided to read:

I can’t believe I didn’t try accessing port 8500 as an HTTP service. I even looked into Flight Message Transfer Protocol (FMTP) before Coldfusion web administration! I tried the Coldfusion Local File Inclusion…

arctic_administrator

And logged in as admin and navigated to Task Scheduler. From here, I could upload and run files, managed to get a backdoor .cfm shell.

task_schedule

arctic_backdoor

But it didn’t work! After a lot of testing and trying different .cfm shells, I found out that the <cfexecute> functionality was broken/disabled, preventing my .cfm shells from starting any program. I couldn’t easily run Cmd.exe or uploaded Msfvenom payloads.

This is where I got stuck. I frankly didn’t have the knowledge base to move forward. Ippsec’s writeup pointed me in the right direction. Instead of using a .cfm shell, I could run more privileged code with a .jsp backdoor.

I had upload access through web administration login, but I followed their Burp Repeater method of uploading the file. Seeing the data going through HTTP and crafting it was very interesting.

arctic_burp_repeater

BOOM! We got a Meterpreter shell. I can take it from here.

arctic_shell

I had to get an x64 shell to run certain 2012.1 R2 x64 exploits; inject_payload did the trick. After that, ms13_081 gave me the root shell!

root_exploit

After…

I did it.

Grandpa

Grandpa was easy unlike Arctic. The Nmap scan came back with just port 80 open so no red herrings.

grandpa_scan

A Nikto scan discovered that dangerous HTTP methods were available and the server was hosting Frontpage with potential RPC exploits.

grandpa_nikto.png

I played with these vulnerabilities but the permissions seemed to be locked down, so I went the IIS 6.0 route:

grandpa_search.png

Easy user shell!

grandpa_userexploit.png

I think the shell was degraded by UAC. I couldn’t run getuid or any exploits suggested by local_exploit_suggester.

grandpa_accessdenied

Injecting a payload with payload_inject for a new shell fixed this. ms10_015 worked from this new shell.


Overall, I feel much more familiar with the Kali/hacking environment. I have many knowledge gaps but they are getting steadily getting patched with every completed box. I’m optimistic: after I get more “Easy” boxes under my belt and read the PWK course materials, I might be able to solo some Medium and Hard boxes.

*****
Written by Nibs on 15 July 2019