> For the complete documentation index, see [llms.txt](https://abdulazim.gitbook.io/write-up/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abdulazim.gitbook.io/write-up/hacksmarter-write-up/edge.md).

# Edge

Windows Box- Easy Rated. Simulate client want to do 'assumed breach' scenario.

Credential Provided:

```
Username: jmorris
Password: Fabricat!on2024
```

#### #Step 1 Nmap Scan Result

```zsh
# Nmap 7.99 scan initiated Tue Jun  2 02:10:24 2026 as: /usr/lib/nmap/nmap -sS -sV -sC -oN nmap_result.txt 10.0.27.83
Nmap scan report for 10.0.27.83
Host is up (0.30s latency).
Not shown: 996 filtered tcp ports (no-response)
PORT     STATE SERVICE       VERSION
135/tcp  open  msrpc         Microsoft Windows RPC
445/tcp  open  microsoft-ds?
3389/tcp open  ms-wbt-server
| rdp-ntlm-info: 
|   Target_Name: VANTARAOPS
|   NetBIOS_Domain_Name: VANTARAOPS
|   NetBIOS_Computer_Name: VANTARAOPS
|   DNS_Domain_Name: VantaraOps
|   DNS_Computer_Name: VantaraOps
|   Product_Version: 10.0.26100
|_  System_Time: 2026-06-02T06:11:08+00:00
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=VantaraOps
| Not valid before: 2026-05-08T12:26:38
|_Not valid after:  2026-11-07T12:26:38
5985/tcp open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Not Found
1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service :
SF-Port3389-TCP:V=7.99%I=7%D=6/2%Time=6A1E73EE%P=x86_64-pc-linux-gnu%r(Ter
SF:minalServerCookie,13,"\x03\0\0\x13\x0e\xd0\0\0\x124\0\x02/\x08\0\x02\0\
SF:0\0");
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows

Host script results:
| smb2-security-mode: 
|   3.1.1: 
|_    Message signing enabled but not required
| smb2-time: 
|   date: 2026-06-02T06:11:09
|_  start_date: N/A

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
# Nmap done at Tue Jun  2 02:11:50 2026 -- 1 IP address (1 host up) scanned in 86.74 seconds

```

#### #Step 2 Enumerate SMB Shares Folder.

<figure><img src="https://2918211013-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJAG015FJfI6GuIB6PzJ6%2Fuploads%2FXplZOq8G2NpwQJj6HJcz%2Fsmb%20enumeration%20nothing%20found.png?alt=media&amp;token=57149f8e-ace5-4754-888e-9f43d6557a60" alt=""><figcaption></figcaption></figure>

When enumerating the SMB Shares folder using provided credential nothing interesting.

#### #Step 3 Evil-WinRM

<figure><img src="https://2918211013-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJAG015FJfI6GuIB6PzJ6%2Fuploads%2F5Twll8HK6Cp0ya1iBioS%2Fchecking%20user%20privilege_nothing%20special.png?alt=media&amp;token=02001da1-97c0-4fb9-b1f2-c9232457804e" alt=""><figcaption></figcaption></figure>

Try using Evil-WinRM tool with provided credentials. Get access. Try checking user privilege nothing interesting.&#x20;

#### #Step 4 Checking Machine Process

<figure><img src="https://2918211013-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJAG015FJfI6GuIB6PzJ6%2Fuploads%2Fl8wGEI1P6PW2J3Ufvb56%2Ffind%20edge%20process.png?alt=media&amp;token=429a5265-496e-4522-a6e9-36539a78f714" alt=""><figcaption></figcaption></figure>

Checking the machine process and found "msedge" which is Edge running in that machine.

After googling around probably we can try use EdgeSnapper.

{% embed url="<https://github.com/Dragkob/EdgeSnapper>" %}

#### #Step 5 Creating the EdgeSnapper.&#x20;

<figure><img src="https://2918211013-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJAG015FJfI6GuIB6PzJ6%2Fuploads%2FclaOjjGmECUHJ2MnkJ0L%2FedgeSnapper.png?alt=media&amp;token=88c63527-8570-451d-bdf4-fce61f667060" alt=""><figcaption></figcaption></figure>

Use that command to build the EdgeSnapper.

```zsh
// To compile on Linux:
x86_64-w64-mingw32-g++ edgeSnapper.cpp -o edgeSnapper.exe -static -static-libgcc -static-libstdc++ -ldbghelp -lpsapi
```

#### #Step 6 Uploading the EdgeSnapper

<figure><img src="https://2918211013-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJAG015FJfI6GuIB6PzJ6%2Fuploads%2F12iyEGfPxhyopWHRWIIu%2Fuploading%20edgesnapper.png?alt=media&amp;token=41f2f02d-cae2-4399-b9cb-37ec71b60460" alt=""><figcaption></figcaption></figure>

Uploding the EdgeSnapper using Evil-WinRM

#### Step 7 Running the EdgeSnapper

<figure><img src="https://2918211013-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJAG015FJfI6GuIB6PzJ6%2Fuploads%2Flcf1gQDzKzbPaQgcbiGQ%2Frunning%20edge%20snapper%20and%20found%20credential%20that%20stored%20in%20the%20edge.png?alt=media&amp;token=5ef54ded-c5bc-4cfe-bc4d-bc8bf227ae8a" alt=""><figcaption></figcaption></figure>

Running EdgeSnapper and found creds that stored in the edge. Attacker found another interesting account which is 'svc\_vdi'

#### Step 8 Authenticate the svc\_vdi account

<figure><img src="https://2918211013-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJAG015FJfI6GuIB6PzJ6%2Fuploads%2FNQACd9HmDV7VEGkXkv4i%2Fautheticate%20using%20smb.png?alt=media&amp;token=f94bbd60-4ae0-4d1e-bf8e-c9639f997ef8" alt=""><figcaption></figcaption></figure>

Authenticate the svc\_vdi account using nxc against smb service. legit creds we have here.

#### Step 9 RDP with svc\_vdi account

<figure><img src="https://2918211013-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJAG015FJfI6GuIB6PzJ6%2Fuploads%2F00euv6T2Rk6aBN9oY3Ps%2Fsuccessful%20rdp%20using%20cred%20found.png?alt=media&amp;token=5a6c115e-b678-4609-bb97-2cf126b00963" alt=""><figcaption></figcaption></figure>

Successful RDP with the new creds. Seems like kind of portal. Using that creds attacker can login to the portal.

#### Step 10 Download cmd.exe

<figure><img src="https://2918211013-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJAG015FJfI6GuIB6PzJ6%2Fuploads%2F2Y3V9Vp4Gw4ZIGs4TSae%2Fcan%20download%20cmd%20and%20get%20run%20the%20cmd%20as%20svc_vdi.png?alt=media&amp;token=c8133f63-c087-4908-a290-024c9ea3c2a9" alt=""><figcaption></figcaption></figure>

In portal earlier, scroll down and will found support url. Need to click a few times until it pop up edge browser.&#x20;

At the address bar we can enter something like:&#x20;

> `C:\windows\system32\cmd.exe`

After that, open the cmd.exe and we will have terminal as svc\_vdi.

#### Step 11 Enumerate Inside svc\_vdi

<figure><img src="https://2918211013-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJAG015FJfI6GuIB6PzJ6%2Fuploads%2FfTi4QuYB53MO8m8PjNyz%2FFound%20another%20creds.png?alt=media&amp;token=a544e722-5c55-4428-8cea-a78d09e9e93b" alt=""><figcaption></figcaption></figure>

Enumerating the svc\_vdi account. Can use command&#x20;

```
tree /f
```

This command will list out all the directory and file inside an account.

Found interesting file called putty.conf. After check that file and found another creds.

#### Step 12 Authenticate the new creds

<figure><img src="https://2918211013-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJAG015FJfI6GuIB6PzJ6%2Fuploads%2F07UN8O46p1LgPVZGRaqv%2Fgot%20admin%20account.png?alt=media&amp;token=ec2129c6-0a46-49a9-99ac-acf5f0bce231" alt=""><figcaption></figcaption></figure>

Authenticate the new creds using nxc. And surprisingly, we have admin account.

#### Step 13 Using Evil-WinRM with admin creds

<figure><img src="https://2918211013-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJAG015FJfI6GuIB6PzJ6%2Fuploads%2FFJkTW42E6aaEfHMtufSa%2Fgot%20flag%20inside%20admin%20directory.png?alt=media&amp;token=bbe3ba82-c8c6-4049-bb92-bbb815602b55" alt=""><figcaption></figcaption></figure>

Evil-WinRM using admin creds. Moving and enumerate to Adminstrator account. And got the flag.
