#modules

1 messages · Page 292 of 1

dim wolf
#

that's because ippsec's playbook hasn't been updated in a while

#

you're better off installing what you need as you go through Academy

#

some tools may also be deprecated at this point, for example CrackMapExec, which was succeeded by NetExec

viral lotus
#

yeah I heard about CME being deprecated

#

is it worth still using the htb version or does it not make much difference?

dim wolf
#

the only difference i've seen is some very minor visual changes

#

the tools are what you find in Security edition

#

it's not like the Pwnbox on HTB

viral lotus
#

I have been running kali for as long as I can remember I only moved to parrot for ease of assistance in here

storm elk
#

I use -fs a lot. If you don’t want to send your command in public, feel free to dm me and blur out part you don’t want to share

viral lotus
spare fossil
spare fossil
storm elk
#

Glad you figured it out 👍

spare fossil
naive sage
novel parrot
#

past 2 problems on bash seem imposible

#

i know my code is right, even copied it from the guide through

rare swan
#

Cant establish a reverse shell on host-01 on Shells & Payloads assessment
Crafted a war shell with msfvenom and uploaded it on tomcat interface - no sure about LHOST - has it to be ens192? - any hints

novel parrot
#

but it just wont budge (the following picture is the problem, although others have also been not possible)

naive sage
#

Bash one I think.

next bronze
#

yeah I just want people to incude it as a habit so I don't have to keep asking

next bronze
novel parrot
#

and its comparison operator

novel parrot
supple sparrow
#

iirc in the SSTI section in module 145 there used to be a part guiding you to achieving RCE with string and it is gone. Did the section get removed or relocated elsewhere?

novel parrot
#

its the correct one

#

i even had the step by step thing, the same code

wraith pelican
novel parrot
#

but i removed them

#

before base64

novel parrot
#

still nothin

#

what do i do 😭

bright coral
novel parrot
#

i even copied the step by step one, i have it right

wraith pelican
#

but u did echo -n and the exercie script is var=$(echo $var | base64)

bright coral
novel parrot
#

alr tried with out it

novel parrot
#

im so puzzled

wraith pelican
novel parrot
#

its so wierd

wraith pelican
#

did you read the hint?

novel parrot
#

yep

#

i tried that 2, i tried that way

#

i even tried "echo "ANYTHING", it just dosent

#

whats the procedure here

wraith pelican
#

when you do echo -n, your first $var may not be correct to find the $value inside it

novel parrot
#

i removed the -n

#

still nothin

#

i feel like the htb excersise is wrong

#

like, its outdated or smthing idk

wraith pelican
#

so now you have to review your if-then statement

novel parrot
#

its correct, i know its correct

next bronze
#

if it's correct then how are you not getting anything

#

so it's incorrect

novel parrot
#

the actuall answer, and nothing

next bronze
#

wdym you copied the answer

novel parrot
#

from the guidethrou

#

the detailed explination

#

i feel like even if i did the decoding by hand, i wouldnt find the substring

next bronze
#

well, in the provided script is there echo -n?

novel parrot
#

but again, i tried without it

novel parrot
#

ik what i can do

next bronze
#

that does output things

novel parrot
#

ima cat the var into a file, and ctrl-f

novel parrot
next bronze
#

I just ran it

novel parrot
novel parrot
#

is it actually my hardware?

fathom pendant
#

Mac terminal isn't bash afaik

next bronze
#

why are you running it on mac tho, there's a pwnbox for you to use

novel parrot
#

ima run it online

#

dude it works

#

for once in my life my code was actually right

#

thank you 2

wraith pelican
#

ow, when they say "i got nothing".. it was literally nothing.. I didnt think about that

#

so that's why ISP support always ask: is your router on?

fathom pendant
#

Turning it off and on again is actually a legit troubleshooting step

wraith pelican
#

yeah but i guess they start with the most basic thing

#

are you on a bash shell?

fathom pendant
#

Apparently Terminal does run bash fwiw. But it's also Mac

#

So...

next bronze
#

mac defaults to zsh now but with the shebang it should be bash

#

idk what's the problem

#

just mac things ig shruge

hoary vine
#

Sup guys

hot owl
hoary vine
#

Now I have nothing to do

#

I hacked all my friends already

next bronze
#

sure thing bud

hoary vine
#

Hi 👋

hot owl
#

Hack me then

#

😂

analog dock
#

That bio 🥲

dim wolf
#

i don't even want to think about whether it's bait or not

bright coral
#

ah lol, the experience dropped from 10 to 7 years. Probably too obvious to have experience >= age

fathom pendant
hoary vine
fathom pendant
#

Anyway not a gen chat, I suggest reading and following #welcome to access more channels and be able to type in #general

hoary vine
#

Okay I am 20 bro

fathom pendant
#

But hacking others isn't what we do here

fathom pendant
#

K so I suggest following rules

hoary vine
fathom pendant
#

And taking conversation to the relevant place, not a channel that's for helping with htb academy

naive sage
#

@hoary vine Sir Be a good guy or PayloadBunny on the way with utilitybanhammer !

fathom pendant
#

Let's not continue this @naive sage

hoary vine
#

Is he a mod

fathom pendant
#

No

hoary vine
#

Okay

fathom pendant
#

But again, let's not continue this conversation

#

And stop flooding this channel with useless chatter

#

There's an appropriate channel for just chatting

hoary vine
#

How many people are here

fathom pendant
#

If you can't read and follow #welcome then that's a you problem

crisp torrent
#

Guys did anyone hear about tracker.qu.ax?

As far i can tell it's trying to infect my PC and i'm planning to revenge the cybercriminals

#

It's trying to connect the worm

#

On port 6969

#

Very adultlike btw

#

And i did a nmap scan and it's leading me to all sorts of hosts including a bitcoin adress

#

What are the ethical boundries?
Can i just attack a black hat org?

I don't see why not

round epoch
#

Hi, I'm having difficulty finding the right answer to the question of total number of installed packages in target system (Mod: Linux Fundamentals; Section: File Descriptors and Redirections).

I have tried to use the knowledge provided in the section and have researched other ways of find the required information, but I just keep coming up with all but the right integer. I would appreciate some guidance.

What have I done?
Listed all installed packages using APT commands and piping result to wc -l;
used find to list all files and filter through wc -l (here, it is not possible for me to know how to filter file-types, so the total for number of installed packages will be incorrect).

next bronze
fathom pendant
#

Read and follow #welcome to access more channels

round epoch
#

@next bronze I shall do as you suggest, but how do I count what may be 'extra lines' with wc?

crisp torrent
next bronze
fathom pendant
crisp torrent
fathom pendant
#

This conversation isn't for this channel

crisp torrent
analog dock
fathom pendant
#

Still illegal

#

I suggest stopping this convo

#

:)

analog dock
#

If I murder a murderer I will still go to jail

hot owl
crisp torrent
analog dock
#

Two wrongs don’t make a right

fathom pendant
crisp torrent
fathom pendant
#

Still the same thing really

analog dock
fathom pendant
#

Anyway; <@&861185840277487616> before this continues off rails

crisp torrent
analog dock
crisp torrent
analog dock
#

Like I said it’s illegal, idgaf

#

Have fun getting caught

crisp torrent
analog dock
crisp torrent
#

Anyways

fathom pendant
#

Just trying to keep this channel on-topic

crisp torrent
#

You're right

#

I'll just get infected

#

And do nothing

#

Like cowards

fathom pendant
#

Report the domains to the feds

#

But if you got infected 9/10 times you downloaded and ran something you shouldn't

west rampart
#

Please keep the topic according to the channel description

round epoch
#

@next bronze I'm saying 'sorry' to myself, but, I tried your suggestion, but it yielded nothing. I tried APT with and without options; I do not get the correct figure. I'm missing something outside of the package manager installations, but I don't know what.

next bronze
round epoch
#

@next bronze I have used those commands several times; they provide the wrong answer. So, I'm missing something, but what?

next bronze
#

well as I've said, look at the start of the apt command without wc -l , there are extra lines you need to account for

round epoch
#

@next bronze I did as you suggested and could find no extra lines. sudo generates an incident report, as I am not in the sudoers file.

reef frost
#

@naive field Were you talking about the last question in Windows event-logs and finding evil? last question of second section is saying to replicate the attack

fathom pendant
#

You don't need sudo to list

round epoch
#

@next bronze I'll just have to leave the question and unfortunately, fail the module. Such is life.

boreal token
#

Hey gents any dark websites

reef frost
naive field
#

but nnorhing pops up in sysmon

fathom pendant
#

Just apt list --installed

reef frost
#

Have you gone to the C:\Tools directory and ran mimikatz? @naive field

next bronze
fathom pendant
crisp torrent
# fathom pendant Report the domains to the feds

Well i'm just watching the pirated Netflix because f$ck Netflix & all their other milking companies.

I lost all the respect because of their latest monstrosity with the Avatar the last airbender.

I give 0.000000000 cents for greedy cancer pigs

fathom pendant
#

pirated

#

Yep that'll do it

supple sparrow
#

iirc in the SSTI section in module 145 there used to be a part walking up the import chain and achieving RCE that is gone. Did the section get removed or relocated elsewhere?

urban sage
fathom pendant
urban sage
#

Yeah. Scrolling up and I can see that. pepeban

crisp torrent
idle bridge
#

Hi there. I'm new to the community here. I have a question regarding the assembly module skills assessment task 1. Is there anything with the shellcode values I extracted? The syntax is in Python btw
shellcode = [
'4831c05048bbe671' ,
'167e66af44215348' ,
'bba723467c7ab51b' ,
'4c5348bbbf264d34' ,
'4bb677435348bb9a' ,
'10633620e7711253' ,
'48bbd244214d14d2' ,
'44214831c980c104' ,
'4889e748311f4883' ,
'c708e2f74831c0b0' ,
'4831c05048bbe671' ,
'014831ff40b70148' ,
'31f64889e64831d2' ,
'b21e0f054831c048' ,
'83c03c4831ff0f05'
]
I combined them and using ''.join() and all I get is a dollar sign and exit after entering anything. I also tried to order each extracted shellcode in little endian yet not working. I set a break after the xor and checked the value of rdx each time to get the shellcode. This is my assembly code:

global _start

section .text
_start:
mov rax, 0xa284ee5c7cde4bd7
push rax
mov rax, 0x935add110510849a
push rax
mov rax, 0x10b29a9dab697500
push rax
mov rax, 0x200ce3eb0d96459a
push rax
mov rax, 0xe64c30e305108462
push rax
mov rax, 0x69cd355c7c3e0c51
push rax
mov rax, 0x65659a2584a185d6
push rax
mov rax, 0x69ff00506c6c5000
push rax
mov rax, 0x3127e434aa505681
push rax
mov rax, 0x6af2a5571e69ff48
push rax
mov rax, 0x6d179aaff20709e6
push rax
mov rax, 0x9ae3f152315bf1c9
push rax
mov rax, 0x373ab4bb0900179a
push rax
mov rax, 0x69751244059aa2a3
push rax
mov rbx, 0x2144d2144d2144d2
mov rdx, rsp
mov rcx, 14

loopXOR:
xor [rdx], rbx
add rdx, 8
loop loopXOR

#

anything wrong*

fading oracle
#

is there any staff here?

idle bridge
#

unfournatly the support chat is ofline

#

offline*

fathom pendant
#

If you read and follow #welcome you can wrap command blocks in ```

#

And automod won't get mad at you

#

(It also makes it easier to parse)

fathom pendant
fading oracle
#

i wanna report a broken module

#

but on the site its offline

#

and i want to move forward

urban sage
idle bridge
#

I sent a one hopefully getting a reply. Thanks anyways

round epoch
#

@fathom pendant In future, I won't.

fathom pendant
#

Some commands do and some don't need sudo

round epoch
#

@fathom pendant As a 'free' subscriber, I have very few privileges; sudo being one, and getting help (not that you and the forum community are not helpful - you all are).

fathom pendant
#

It's just the way the lab is designed

round epoch
#

@fathom pendant I get it. (Not remaining too long off-topic) I would get the hints and tips that you can only vaguely suggest, were I a paid subscriber.

fathom pendant
#

Your hints and tips have nothing to do with subscription level lol

round epoch
#

@fathom pendant If so, why am I not able to switch on the in-section help?

fathom pendant
round epoch
#

@fathom pendant It's useful for beginners.

fathom pendant
#

Not really

#

The walkthroughs/guides don't really explain much

#

So you're not learning anything except copy/paste

#

As the walkthrough is assuming you read the content/did some research

#

This module's sublesson is all about research. Linux is well documented, you can generally ask Google a question of "how to <do thing> in Linux" and you'll get a lot of results

round epoch
#

@fathom pendant Indeed. The expectation is to have done some work before reaching out for the available help, otherwise, as you say, you're not learning anything.

fathom pendant
#

There's only one question in the module that's a curveball, as it requires a bit of html knowledge, alongside regex

#

But there's a forum answer that details the steps

round epoch
#

@fathom pendant I think you underestimate the amount of learning, researching to be done and the number of curveballs thrown.

fathom pendant
#

The question I'm referring to requires a bit more knowledge

#

It involves curl

round epoch
#

@fathom pendant You're very experienced; I'll have to take your word on it and apply myself a little more to the tasks. Good chatting with you.

fathom pendant
#

Almost everything else is about as straight as it can be given to you

fathom pendant
#

The modules also tend to make you use your brain to apply what you just learned to the situation

round epoch
#

@fathom pendant You have a wealth of knowledge and experience; I started a few days ago.

fathom pendant
#

Not everything is as simple as copy/paste from examples

round epoch
#

@fathom pendant Very much like coding then: the skill is in problem solving.

vernal pebble
#

Anyone who can help me with a problem?

acoustic owl
vernal pebble
#

Attackin Common services - easy

#

It's not something about knowledge, or how to solve. I am sure that I found the correct solve, but pwnbox is not working, neither do my kali...

#

Basically, I get an error when running hydra, changed the command multiple times, still not working.

#

Let him help me first man xD

fading oracle
#

i am waiting here 2 hours ago but fine

#

show me your hydra syntax

fathom pendant
acoustic owl
fathom pendant
vernal pebble
fathom pendant
#

Didn't read as a joke

vernal pebble
acoustic owl
#

Sorry, I haven't worked through the NTLM Relay module yet

fathom pendant
#

Again, still doesn't make it read as a joke

#

But that's detracting from the point

#

Command/error

#

We need those to effectively help you

vernal pebble
#

Anyways, i used smtp-user-enum, i found a user. Now i am trying to run the command "hydra -l <user> -P /usr/share/wordlists/rockyou.txt ftp://<TARGET-IP>" I also tried "hydra -l <user> -P /usr/share/wordlists/rockyou.txt -f <TARGET-IP> ftp/smtp

vernal pebble
fathom pendant
#

Try less threads

vernal pebble
#

I let it with default. I tried multiple walkthroughs for this exact challenge, and none of them worked. I tried one posted yesterday...

fathom pendant
#

try less threads

#

Leaving @ default isn't trying less threads

acoustic owl
#

Do you really have the correct user name?

vernal pebble
fathom pendant
#

And you dropped the @domain from the user retrieved?

vernal pebble
fathom pendant
#

For ftp, drop it

#

Smtp also doesn't have much auth usually, you'd want to sign in to imap(s)/pop3(s)

vernal pebble
#

For FTP i use only the user, for SMTP i try user@domain 🙂

fathom pendant
#

Either way

vernal pebble
fathom pendant
#

Try ftp with less threads

#

As in less than default

#

Keep going lower

#

Like 1-2 threads

vernal pebble
fathom pendant
#

Yes

#

As I've repeated. Multiple times

vernal pebble
#

Wow, next time, if you want to help someone, try to be a little bit less aggressive. Thank you, I will figured it somehow. Have a great night!

fathom pendant
#

...dude I repeated it like 3 times

#

The error is the ftp service shutting down due to too many connections

#

If you want the reason why it's failing

acoustic owl
#

@fading oracle If something is not working properly, try the PwnBox. Or change the VPN server and then try again. This way you can rule out the possibility that something is not working properly with the combination of server and attack box.

fading oracle
#

Did all that

#

and i already verified with @next bronze that the commands i use are the ones

#

i have no clue

#

and tbh i am fed up that this happens every week

#

it just takes away the fun from the learning

#

i changed vpn 3times

#

used the pwnbox too and restarted the server 12 times

silk anchor
#

Anyone that can help with Server Log Poisoning in the 'File Inclusion' module?

Whenever I am adding my php shell code into the server log via my user agent it seems to be bricking it for some reason.

I can add something like "test123" as my agent and still read it fine but as soon as the php shell is put it I cant get it to come back or get any output.

Tried using browser/burp/curl... I'm probably missing something dumb but no idea at the moment.

acoustic owl
fading oracle
#

he solved it yes

acoustic owl
silk anchor
wet finch
#

Howdy, I could use some help please.
I'm trying to finish up AD Enumeration & Attacks - Skills Assessment Part II

||I have c*, am logged into ms01 as that user. Whenever I try to run any commands against the domain they fail, I have tried using powerview, it fails, tried changing password with net user, it fails, tried adding users to the domain admins group, fails. winrm & rdp fail for dc01 with that user.|| I'm not sure what to shoot for now.

fathom pendant
wet finch
#

I edited it. I had it in spoiler tags, so I thought that was fine.

fathom pendant
#

Spoiler tags don't really do much

#

As anyone can click them anyway (or even turn them off in settings)

hollow furnace
#

is anyone else having trouble spawning targets? Active directory and enumeration attacks - dcsync. Its been trying to spawn for over 30 minutes. I have tried logging out and back in, didnt help...

hollow furnace
#

Doesnt seem to be working....

silk anchor
wet finch
silk anchor
wet finch
gusty zinc
#

Module Shells and Payloads, Infiltrating Unix/Linux - Question: Exploit the target and find the hostname ....

The step by step solutions doesn't include the solution for this question.

cloud urchin
#

are you looking for someone to give you the answer or are you stuck on something and have a question?

round epoch
#

@next bronze Just an update. I followed another path to listing installed packages and to my surprise, the amount had changed! Now I have to wait until later this morning to find out if it is the correct answer.

Regardless, thanks for your help.

next bronze
#

hmmm? the command I gave you earlier definitely works, you'll just need to -1 from the result

rustic sage
#

i'm taking the InfoSec Foundations path and i'm in the Setting Up module. Are we supposed to be creating our file tree in bash, downloading all these apps, and preparing everything mentioned here now?

#

i'm asking becasue it's not explicitly telling us to...it's just mentioning these tools

next bronze
rustic sage
next bronze
#

but I'd highly recommend start taking notes right now, it's the most important thing you can do

rustic sage
#

thank you!

next bronze
rustic sage
#

makes sense

#

appreciate your help

timber quail
#

hi everyone, i have a question about "AD Enumeration & Attacks - DCSync" module.

Where is the password provided for the RDP connection to ACADEMY-EA-ATTACK01?
I have already been given that password but was not sure where it is provided.

fathom pendant
north bramble
#

hello what am I doing wrong?

dense eagle
#

Hi, can i please DM you?

spark spruce
olive slate
#

Is there a way to make responder work over a pivot? Say I can reach MS01 directly but not DC01. After setting up a ligolo agent on MS01 to get access to the internal network, is it possible set up listeners to capture any NTLMv2 hashes from a DC01 user using responder on my attack machine?

next bronze
#

?????? what does it got to do with indeed

next bronze
#

if you want to capture ntlm

#

<@&861185840277487616>

fathom pendant
olive slate
fathom pendant
#

Whatcha got there @next bronze

next bronze
autumn pilot
#

move on

fathom pendant
#

Istg if you don't finish the reference I'll be sad

next bronze
#

oh yes a smoothie of course

olive slate
# next bronze Inveigh would be easier

Yeah, that's my usual way to do it. But what about in a situation where I need to to a ntlm relay attack? I won't be able to just run ntlmrelayx on my attack macine

fathom pendant
#

There's a whole setup section that gives it

next bronze
rose compass
#

Does HTB Academy not have a Singapore VPN?

next bronze
#

nope

fathom pendant
#

only US and EU; they do have SG Pwnbox Locations though

#

likely something to do with the hosts/providers for them and costs

#

¯_(ツ)_/¯

rose compass
#

I see.
I'm extremely frustrated today because RDP and SSH access is so slow.

fathom pendant
#

try changing the vpn region and seeing if that fixes, is it a consistent slow or like randomly slow

glad sand
#

hey, im at Information Gathering - Web Edition Skills Assessment, and im stuck
i cant find any subdomain

fathom pendant
#

if it's consistent, that might just be latency; though i've heard some people have had minor success using a vpn to access a region, then using the openvpn config through that

glad sand
fathom pendant
#

add -ac

#

wait that's gobuster

#

why is gobuster showing 400s?

#

lol

#

gobuster should be discarding those responses

glad sand
glad sand
#

i tried ffuf but it returns all of them as valid subdomains

fathom pendant
#

ffuf add -ac

#

also with gobuster ig you can add -b "400" for it to blacklist the 400 errors

#

weird that it's not there default

fathom pendant
glad sand
fathom pendant
#

hmm

#

not too familiar with gobuster tbqh

fathom pendant
#

also dnsenum won't work as it requires DNS to be running for it to work

fathom pendant
#

and the scope of this host is ONLY the port given

sterile solstice
fathom pendant
#

@rose compass @sterile solstice there is the /feedback command that sends a message directly to the HTB slack for more staff to see :) (note you won't receive much in terms of feedback on your feedback)

glad sand
#

btw this is my ffuf command , am i doing it right?

ffuf -w /usr/share/wordlists/amass/subdomains-top1mil-110000.txt -H "Host: FUZZ.inlanefreight.htb" -u http://inlanefreight.htb:30951 -fc 405 -fs 120

glad sand
fathom pendant
#

but at the same time you can also instead just do -ac

#

-ac autocalibrates ffuf

glad sand
#

oooooh

#

thats nice

fathom pendant
#

so it will automatically adjust its filters

sterile solstice
next bronze
fathom pendant
sterile solstice
next bronze
#

but yes do ask them more

sterile solstice
#

doing it now kek

fathom pendant
#

as most of their acad customers are in US/EU, however since it's been gaining more traction -- it never hurts to nudge them on it

#

also as a fwiw; the reason the pwnbox has AUS/SG servers, is because acad and lab pwnbox are both hosted via the same provider

#

so they already have those servers ready (on the backend) as opposed to the vpn hosting provider and such

sterile solstice
#

i do love the platform, and i do hope it'll gain more traction. i know plenty who do cybersec but stick more to the typical OffSec type stuff ...

glad sand
#

found the subdomain thanks @fathom pendant

fathom pendant
#

:) and ofc don't forget everything that was taught in the module, most come into play in some form or another

rose compass
fathom pendant
#

@old haven we don't do voice notes here

#

please type out whatever you're having issues with in academy

next bronze
fathom pendant
next bronze
#

yeap kekw

fathom pendant
#

as a side note i've been too lazy to switch back to US kek

sterile solstice
fathom pendant
#

I believe US-3 or 4 might be located in a server farm on West Coast fwiw

#

might be geographically closer

#

but i'm not geographist

sterile solstice
#

i'm pretty sure they're similar distance tbh.

#

i submitted feedback. will see what happens :). won't hold my breath

sterile solstice
#

that module wasn't too bad

next bronze
#

thanks

#

wait why is eu latency suddenly ~100ms lower

glad sand
#

After crawling the inlanefreight.htb domain on the target system, what is the email address you have found? Respond with the full email, e.g., mail@inlanefreight.htb.

i used the tool in the module ReconSpider but the results are empty

sterile solstice
next bronze
sterile solstice
#

yea ive used it more with finance type stuff. so im used to seeing pandas and dataframes. even with the project i want to do, i have the temptation to package results into a df and then write to a csv as thats whatyou do with finance data .... lol

glad sand
sterile solstice
#

ive never followed through with a proper project which is why i thought small tools would be good to work on, to improve. even some of the POCs i've seen have been basic, and some also just dont work (older versions of python usually)

rustic sage
#

What is "!rank"?

next bronze
#

I mean the best way to start is just when you see something that can be automated/improved on, write a script for it

sterile solstice
#

yea, like dnspython. which is a large and well constructed library.

#

i also did the bash scripting module recently too. that was maddening tbh. i found it super sensitive and no easy way to debug.

next bronze
#

write it in an IDE with linting

#

vscode would be the easiest but I use nvim

soft reef
sterile solstice
#

i used vscodium in my VM, but i still had issues.

#

i rencently installed pycharm (i've had it before but didnt have it in this VM). and since im still a student, i got free professional license. so now ill be using that.

#

installed the C and Java IDEs that come with it as well, incase i need it in the future

next bronze
soft reef
sterile solstice
#

oh, i have CS50 on my list! heard its great. but as Xre0uS says, do a project of some kind. which i know can be hard, but even doing a little bit for my own i feel like ive improved heaps.

next bronze
sterile solstice
#

yea im not surprised. its rated highly. i heard that even seasoned programmers get stuff out of that course, despite being beginner friendly

#

ive used anaconda for my windows machine. but i think ill just switch to pycharm, im liking it.

#

@soft reef if you like to tinker, you could get a raspberry pi or ardunio and make a project in micropython. if you want something cybersec related, you could build some badUSBs for future pentests.

next bronze
#

I did one of those, very fun, would recommend

sterile solstice
#

if you're lucky enough to have your own place, you could also go the homelab route (i dont own but i do have a homelab, its just downsized). i havent done it yet, but automating things at home or even standing up services can also help.

#

i got sidetracked when i saw a youtube video on HTB and said "hey ill do CPTS", otherwise i shouldve been fixing my homelab. haaha

soft reef
sterile solstice
#

yea! thats something ive also wondered about doing too. there'd be a million of them out there on github, but building something your own is good. try the 'python for dns' module. i got a few ideas from that.

sterile solstice
fathom pendant
#

go a little deeper

pseudo kiln
#

I got an issue with sqlmap module, section attack tuning, first question. sqlmap can dumps the contents of everything but the content of table flag5.....I tried to use the switches in the hints section too, no luck, all the other tables are dumped

zealous rune
#

why would a file on an SMB share not be "get'able" when we have read permissions to the file and the share?

#

surely read is all the permissions you need to download files from smb shares

robust quartz
#

I read slowly first section on the Windows Event Logs and Finding Evil.
Try understand it hard as much as I can

But I can't understand it. Can someone give me some tips?

next bronze
midnight galleon
#

hello
is there any tool to make a list of directories by scraping the website

#

i remember reading about it in the academy but not really sure where

pseudo kiln
next bronze
#

Information Gathering - Web Edition probably

next bronze
midnight galleon
sterile solstice
#

i mean, CUPP does that for passwords .... but not sure about directories

ocean night
#

I know what you're talking about

#

Starts with a c..

midnight galleon
fathom pendant
#

crunch?

ocean night
#

Yeah possibly

zenith vale
ocean night
#

No, maybe not

next bronze
#

they want web diectories tho, not wordlists

#

I mean the Creepy Crawlies section has a few

ocean night
#

CeWL

zenith vale
#

my bad

ocean night
#

That's the one

fathom pendant
#

CeWL that's it

#

yeah

#

l337_h4x0rs_R_cewl

#

anyway i just finished the Dom Based XSS section

#

feels like an erratum is needed on it

ocean night
fathom pendant
#

you can get the Reflected XSS flag alongside the intended DOM one

#

unless it's intentional and I'm dumb?

ocean night
#

Must be

#

(sorry)

fathom pendant
#

¯_(ツ)_/¯

midnight galleon
fathom pendant
#

que sera, sera

pseudo kiln
zenith vale
#

im not sure why i cant post it in erratum

midnight galleon
zenith vale
#

nvn im an idiot 😂

fathom pendant
fathom pendant
analog dock
fathom pendant
#

¯_(ツ)_/¯

#

probably my cache being weird

ocean night
#

I'll take the credit

#

Sure

#

(did nothing)

zenith vale
#

HTML encoding to user-controlled output

The application should encode user-controlled input in the following cases:

Prior to embedding user-controlled input within browser targeted output.
Prior to documenting user-controlled input into log files (to prevent malicious scripts from affecting administrative users who view the logs through a web interface)

can someone please explain this to me

fathom pendant
#

basically: always sanitize user input

zenith vale
#

i get the second part, which is regarding server log poisoning

fathom pendant
#

before input is embedded via the text input, and prior to logging

zenith vale
#

buit the " Prior to embedding user-controlled input within browser targeted output"

fathom pendant
#

yes

#

as in before it gets sent back

zenith vale
#

the mixage of the statements here is a bit confusing to me

fathom pendant
#

before it's shown back to you

#

prior to showing the output

zenith vale
#

ok so im user, and i input data of a sort, the data needs to be encoded before it is reflected back to me

fathom pendant
#

embedding is just saying "putting it on the page"

#

yes

#

it'll html encode special characters such that what's sent back is the literal string <script>alert(window.origin)</script> instead of executing it

zenith vale
#

ahhhhhhh

#

so instead of embedding it in the html it will input it as plaintext to prevent it from executing

fathom pendant
#

when you view page source you'll see those characters would be the <script>...

zenith vale
#

so make it plain text rather then an executable script

fathom pendant
#

basically, yes

zenith vale
#

great , thank you

fathom pendant
#

<script>alert(window.origin)</script> <-- this is what html encoding would do

zenith vale
#

so i guess the typo should be regarded as HTML encoding to user controlled input rather then output i guess

fathom pendant
#

no?

zenith vale
#

i mean the web app do need to encode the user input before it is being reflected

fathom pendant
#

it's telling you when you would use HTML encoding in this subsection

#

but yeah not a typo

#

just a misunderstanding

sacred ermine
#

is anyone got to the skills assessment in api attacks?

fathom pendant
#

just ask your question

acoustic owl
naive sage
sacred ermine
#

nvm will figure it out

next bronze
#

section?

zenith vale
fathom pendant
#

@rustic sage we don't botnet around here

zenith vale
fathom pendant
rustic sage
fathom pendant
#

we still don't spread botnet info around here

next bronze
#

the stack is first in last out, so the order is reversed, check for each push and get each 8 bytes and work from there

rare swan
#

Windows machines suck - very poor connections - cant establish shell with eternalblue - any hints beside changing vpn

next bronze
#

there's no hints for that, find a server that works for you

rare swan
#

in general are udp or tcp connections prefearable?

fathom pendant
#

one is just a flood attack

fast epoch
#

Hi, I cannot ssh to htb-student, it says connection timed out

#

can someone help me

acoustic owl
#

Are you connected via VPN?

fathom pendant
#

it also helps if you provide the module and section name

fast epoch
#

im not connected via vpn and im on the linux fundamentals: "working with files and directories"

glad orbit
#

Someone can help me for DOCUMENTATION & REPORTING Q1?

fast epoch
#

but also this problem has been happening since even the first module. I just straight up cannot connect using ssh

fast epoch
#

yes, Im on parrot OS

next bronze
#

well then you'll need to connect to the academy vpn

fast epoch
#

oh ill try this right now

fast epoch
next bronze
#

it's installed by default in parrot

fast epoch
#

it says "options error: In [CMD-LINE]: 1 : Error opening configuration file: academy-regular.ovpn"

next bronze
#

did you download the file?

fast epoch
#

yes, its saved in documents

next bronze
#

is your current directory in documents?

jolly yacht
#

Hey, In Introduction to Windows Command Line Module's Managing Service Section. As mentioned in the section to|| stop windows defender service we need to be on Local System account ||So i gained a reverse shell from the windows target to get the Local System level permission shell on my Attacking Host. But if i tried to stop the service using sc stop windefend even though Iam having the System account still it denies me, why's that?

fast epoch
next bronze
jolly yacht
sweet epoch
#

Hi ! I have been stuck on : INTRODUCTION TO WINDOWS COMMAND LINE : on the question : For this level, you must successfully authenticate to the Domain Controller host at 172.16.5.155 via SSH after first authenticating to the target host. This host seems to have several PowerShell modules loaded, and this user's flag is hidden in one of them. I Can't Find a way to find the DC host Password. Thanks in advance ❤️

jolly yacht
sweet epoch
#

Skill assessment

fast epoch
jolly yacht
next bronze
candid lily
#

need help with http attackx TE.CL desync attack

sweet epoch
candid lily
#

idk whats happening i think i payload is correct but not getting the correct response

sweet epoch
next bronze
#

you can just ssh to dc with the same account

next bronze
jolly yacht
sweet epoch
fast epoch
# next bronze what's the problem

connecting to this vpn is timing out. Its stuck on the lines that say "Timers: ping 10, ping0restart 120" & "Protocol options: explicit-exit-notify 1"

next bronze
#

no it's meant to be running, open another terminal to do your things

fast epoch
#

oh wow it worked

#

okay thank you so much

next bronze
#

so no

jolly yacht
# next bronze it's blocked by defender itself

Sorry for asking so many times. I spent a lot of time trying to get a system-level account's reverse shell from my target since I had no prior experience with getting a shell. I was so excited that I was able to implement that step. That's why I asked this time. Thanks for your response.

candid lily
#

BRUH wth, i was trying with my burpsuite for 2 days but now i tried with pwnbox and got in single attempt

next bronze
#

also futher modules will teach you how to get system shells and whatnot, but good job researching that yourself

elder kraken
#

For the File Transfers section, I have very high latency. Do you know how I can fix it?

acoustic owl
#

Use a different server

elder kraken
#

thxs

atomic arch
#

hello on the module 176 section 1778 I'm trying to find the password of the svc-iam user but when I put it in the answer box it tells me it's incorret even tho it's the only password I get from hashcat, anybody can help me?

fathom pendant
atomic arch
#

sure one second I'm sorry

#

I'm on WINDOWS ATTACKS & DEFENSE/Kerberoasting

#

basically I'm stuck on "Connect to the target and perform a Kerberoasting attack. What is the password for the svc-iam user?"

slate halo
#

can i DM someone for the Bypassing Web Application Protections case#11?

fathom pendant
#

the section sounds like it should be telling you how to do so

atomic arch
#

yes I've also transferred the spn.txt file to my vm

#

and allegedly cracked the hashtags with hashcat

fathom pendant
#

hashes*

#

not hashtags

atomic arch
#

but maybe I'm just looking in the wrong place

fathom pendant
#

well if it's cracked then do --show

#

the password will appear after the given hash

atomic arch
atomic arch
fathom pendant
atomic arch
#

maybe I'm just missing some steps

atomic arch
shut quest
#

So calling them hashtags now.

Did you attack the correct user?

fathom pendant
#

also be sure there's no extra spaces/whitespace in your copy/paste

atomic arch
atomic arch
#

sorry for mispelling hashes with hashtags it won't happen again

#

have a nice day

timber hatch
#

lol
WINDOWS PRIVILEGE ESCALATION / Miscellaneous Techniques
i escalated privileges, copied the sam, security and system reg to my attack host, used secretsdump, cracked it with hascat, and in the end all they wanted was another easy command...alright....

eager ledge
#

Hi,

Module: ACTIVE DIRECTORY ENUMERATION & ATTACKS
Section: AD Enumeration & Attacks - Skills Assessment Part II

So far, I have managed to get R** access to Mxxx server. However, I am unable to import active directory in it. This means I cannot use PowerView functions. This is creating a lot of problem for me. I am not able to perform right/permission enumeration. Is it intended? Or am I missing something while importing Active Directory module?

olive fiber
eager ledge
#

Does PowerView not have dependency of Active Directory module?

olive fiber
olive fiber
next bronze
#

hey that's me POGGERS

shut quest
#

It is you

olive fiber
#

also updated the content of that bat file but cannot get the reverse

next bronze
#

how are you updating it?

olive fiber
#

putting it again with the same name

#

and it gets replaced

next bronze
#

just edit it then

olive fiber
#

i will try that, but at the end it will have the same content inside, both if it gets modify on the same file as also if it is gets updated with the same name. When i check the content then it is modified, so had no sense to me that i could not take the rev shell.

i will try to just modify it and let you know

rare swan
#

Just redoing Password Attacks Skill Assessments because of lack of documentation - can i DM someone who has the solutions documented? - I just know it takes a long time to crack and i dont want i to do it again 😦

olive fiber
#

👀

silver iris
#

Hey guys,

does anyone know a good resource that talks about upgrading web shells to reverse shells? I mean usually it´s not that complicated, but i would like to look at it a little bit more.

next bronze
next bronze
eager ledge
eager ledge
olive fiber
# next bronze I mean replacing and editing can be pretty different

why in this case? the file is already in the logon script path, so it's content should be executed at logon. I the file has the same content but in one had it has been modified, in the other it has been replaced with same name, same position and content is in the same

next bronze
#

different metadata for one, if it's replaced

eager ledge
next bronze
#

well look at the errors, you don't have the rights to load them

eager ledge
#

😭

next bronze
#

you can use another host where you have admin on

eager ledge
#

Sure.

next bronze
#

unless there's some specific edge you want to abuse, where you're using powerview from generally does not matter as long as the machine is in the domain

eager ledge
#

Need to enumerate a little more.

#

Before I can do what you are suggesting. Thanks though, appreciate it 🙂

silk minnow
#

Module: Advanced Deserialization Attacks
Section: Example 1: JSON

Trying to use System.Windows.Data from PresentationFramework as per instructed in the section but does not seem to be working for me

native turtle
#

finally finished the penetration tester path fingerguns

celest atlas
wraith pelican
#

i guess some things will stick and with practice it will add up, but imo it is kinda not beneficial to try to retain 100% of that information. I feel like it is a better memory usage to recognize patterns and to know where to quickly find the info you need. Or at least that's what i say to myself to reassure me : D

quasi jungle
#
ffuf -w /opt/useful/seclists/Usernames/xato-net-10-million-usernames.txt -u http://94.237.59.199:41739/index.php -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "username=FUZZ&password=invalid" -fr "Unknown user"```
Just keeps running without a result
Tried the smaller Seclists user lists also the names one with no results
Checked that it uses the same "Unknown user" response and the data format is  the same.
https://academy.hackthebox.com/module/80/section/772
wraith pelican
native turtle
# celest atlas How do you feel after completing the path and how confident are you in pentestin...

Thanks for the question. I will say that I learned a lot with the HTB academy. I started almost 3 years ago with other hacking platforms but I never take good notes. Instead in this path I take notes of almost every module with relevant commands and description so now I feel very confident in doing challenges/boxes because I know what to try and what looking for. I give you an example of the last module (AEN) I was able to compromise the AD environment ALMOST blindly, I stuck only on some edge case but I will say 95% I did it without solution. My next step will be Dante Pro Lab always on hackthebox for OSCP preparation

P.S. I work as a penetration tester, and I will say that this path (along with the bug bounty hunter path) helps me a lot in my job, especially the web attacks part and attacking common applications.

#

If you have some questions dm

#

by the way if someone has some advice for the OSCP preparation I'm all ears 🫶

topaz zenith
#

Is there a reason I cannot comment on the pro-labs discussions? Dante is not working correctly.

quasi jungle
junior fox
#

Hello, I'm having trouble with initial access in the Advanced XSS and CSRF Exploitation skill assessment.

I'm currently attacking the ||/files.php page. Looking at the dialogue "Your personal file storage (Note: Admins are able to access your files for security reasons)", I assumed there might be an admin bot scraping the uploaded files on this page. Trying XSS, I uploaded one text file with Javascript to exploit a CSRF vuln on the user promotion GET endpoint and another file to execute that Javascript from within the webapp to bypass CSP.|| The execution of this JS works from my side if I access the file, but I'm unable to escalate my rights through this vector via XSS -> CSRF.

Also tried sending payloads from exploitserver.htb/exploit the for mutiple endpoints on vulnerablesite.htb but I can't get around the the ||Strict SameSite cookie. To achieve XSS from the upload page.||

Sanity check, am I hyper focused on the wrong thing?

silk anchor
#

Five hours later the file inclusion skills assesment is done.
Brain is fuzzed after 4 hours of getting nowhere only to realise I had been looking at the info I needed for the intended path for about 3.5 of those hours.

zealous rune
#
└──╼ $smbmap -H 10.129.203.6 -r GGJ
[+] IP: 10.129.203.6:445    Name: 10.129.203.6                                      
        Disk                                                      Permissions    Comment
    ----                                                      -----------    -------
    GGJ                                                   READ ONLY    
    .\GGJ\*
    dr--r--r--                0 Tue Apr 19 23:33:55 2022    .
    dr--r--r--                0 Mon Apr 18 19:08:30 2022    ..
    fr--r--r--             3381 Tue Apr 19 23:33:03 2022    id_rsa
#

if i look at this output. Am i mistaken in thinking that id_rsa should be downloadab le?

#

world has read permissions on it and therefore if i can log on with smbclient. a simple "get id_rsa" should dowlnload the file?

#

in any case file is not downloadable. going to try a different server

karmic girder
#

hello guys

#

I have one question in module API ATTACKS - skill assessment

#

aaboout the content flag, Is it going to be in file:///flag.txt?

acoustic owl
zealous rune
karmic girder
solid moth
#

ATTACKING COMMON APPLICATIONS-Other Notable Application

#

i am stuck at the 2nd question

#

i open the url but its a 404 page i don't know what to do

faint hazel
#

where can i find the Portswigger Labs course

#

someone recommended me the course last week and i wanted to search it but didnt find it

acoustic owl
ocean night
faint hazel
#

oh😅
is it for free?

ocean night
#

Oh man

#

Have a look 🙂

#

👁️

faint hazel
#

well give me a sec

#

looks like it is for free 🙂

mystic steeple
#

Htb offer students discount? Or any other discount

acoustic owl
ocean night
#

⚡ 👈

#

"types fast"

mystic steeple
#

I am asking about certificate discount

ocean night
#

I'm afraid not, to my knowledge

mystic steeple
acoustic owl
#

Currently only the Academy Student Subscription is available. As far as I know, there are no discounts for students for anything else

zenith vale
#

im doing the skill assessment of the session attacks

#

i dont wanna write something that will spoil anyone

mystic steeple
#

Alright, so can anyone tell me if i pick cpts as my first certification it will be right decision?
I have some knowledge but just a some basic level.
I want to be a pentester

earnest sequoia
mystic steeple
#

I want to clear it as my first certificate and step in to industry level pentesting.

acoustic owl
#

CPTS is certainly a very good choice for knowledge. If it is about having a certificate that is often asked for by HR, then OSCP might be the better choice.

earnest sequoia
#

Tons of comparisons on youtube. You can do some research there before committing

mystic steeple
#

I want a good knowledge

acoustic owl
#

📣 #HTB has now launched its very first Penetration Testing certification! In this AmA, we are hosting mrb3n and Dimitris Bougioukas, 2 accomplished and high...

▶ Play video

Recently I passed the CPTS exam by HackTheBox. In this video I discuss my experience with the course and exam, as well as how it differs from the OSCP.

HTB Discord: https://discord.com/invite/hackthebox

Chapters:
0:00 Introduction
0:29 The Course
3:35 The Exam
5:38 The Report
8:11 Tips & Tricks
11:46 FAQ: How does CPTS compare to OSCP?
18:55 O...

▶ Play video

My review of the new @HackTheBox Certified Penetration Testing Specialist (CPTS) certification - Hope you enjoy 🙂 #HackTheBox #HTB #CTF #Pentesting #OffSec #CPTS #Certification #Course

Sign up for HackTheBox: https://hacktheboxltd.sjv.io/xk75Yk

↢Social Media↣
Twitter: https://twitter.com/_CryptoCat
GitHub: https://github.com/Crypto-Cat
HackThe...

▶ Play video

This video is basically for educational purposes and it's my own review and opinion.

▶ Play video
#

How I prepared for Hack The Box’s Certified Penetration Testing Specialist exam.

Medium

A review from a modern day penetration tester :)

Review and comparison between the CPTS and OSCP certifications, and some tips on passing the exam.

mystic steeple
#

But i directly want to do CPTS

earnest sequoia
mystic steeple
#

Bunny can you tell me the cpts whole package which contain module + cert
That is for lifetime access to module or for just cert.

mystic steeple
#

It teach from beginner to advance?

zenith vale
#

can someone help me figure out something in private regarding the skill assessment of session hijacking?

acoustic owl
faint hazel
#

how can i get cubes

acoustic owl
dim wolf
#

you can get cubes by purchasing them directly, from one of the monthly subscriptions (except student sub), or from referrals

dim wolf
#

if you have an annual sub, completing modules will give you cubes

faint hazel
#

hmm i understand 🙂

#

ty

rough flame
#

Did u manage to solve WSUS part?

near night
#

Hello there! I found a broken box in the module "Windows Privilege Escalation" of the academy. Where can I report it???

fathom pendant
near night
#

Thank you @fathom pendant!

junior fox
faint hazel
#

does the course "introduction to web applications" reward more than 10 cubes?

rare swan
#

Module: Attacking Common Services
Easy Assessement; how to approach it - fuzzed domain --> no promising results; ports ftp, smtp, mysql all need creds --> bruteforcing?

fathom pendant
faint hazel
#

yea

fathom pendant
fathom pendant
#

All other module tiers give 20% back

faint hazel
#

are there any tier 0 module that gives back more than 10?

fathom pendant
#

No

faint hazel
#

i want to get the tier 2 XSS module course but i dont have enough cubes 😦

fathom pendant
#

Then buy a sub

#

¯_(ツ)_/¯

#

Plat monthly is $68 for 1k cubes/month

faint hazel
#

is there no other way? because i dont know if i want to spend 5$ yet...tbh if its possible im trying to avoid it, at leas t before i spend money i want to check if i even have the patience and can succeed in this.. 🙂

fathom pendant
#

You can buy cubes outright, but at a significantly higher cost

fathom pendant
#

No other way to gain cubes

faint hazel
#

well thats a bummer

fathom pendant
#

I mean, htb wouldn't make money that way

#

¯_(ツ)_/¯

#

And comparatively, it's on the cheaper end of learning platforms

faint hazel
#

yea true 🙂 , just checked if perhaps there was a way but you are right its true that they give us a lot of courses with good information

fathom pendant
#

And the t0 modules build solid foundations

faint hazel
#

then ofc they should receive a certain profit

fathom pendant
#

The t0 modules would be considered the "free" tier

faint hazel
zealous rune
#

I think I need a hint on the Attacking Common Services. FTP section

#

I have tried bruteforcing services I have found with the username and password list in the resources

fathom pendant
rare swan
fathom pendant
zealous rune
#

There doesn't seem to be an ftp service running on the box

fathom pendant
fathom pendant
#

As you can't attack FTP if FTP isn't running

zealous rune
#

i guess... :). I thought maybe there was an ftp server behind the main machine

fathom pendant
#

Or if it is running, you might need to specify the alt port

zealous rune
#

or ftp running on localhost

#

hmmm

fathom pendant
#

All the stuff in this module (not skill assessment) should be outward facing

zealous rune
#

ok thank you for th hint

fathom pendant
#

Are you only scanning for port 21?

zealous rune
#

└──╼ $sudo nmap -p- 10.129.203.6

Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-07-23 00:09 CEST
Nmap scan report for 10.129.203.6
Host is up (0.085s latency).
Not shown: 63906 closed tcp ports (reset), 1625 filtered tcp ports (no-response)
PORT STATE SERVICE
22/tcp open ssh
53/tcp open domain
139/tcp open netbios-ssn
445/tcp open microsoft-ds

zealous rune
#

ok thnks

fathom pendant
#

The ftp service is on an alt port (indicated by Q1)

zealous rune
#

yh i figured

#

but i guessed that I had scanned all ports

fathom pendant
#

You did -p- yeah?

zealous rune
#

mind u i didn't scan for udp ports but I was expecting ftp to be using tcp

#

yeah i did -p-,

fathom pendant
#

It'll be tcp

zealous rune
#

mind u there are implementations of ftp over udp as a transport

fathom pendant
#

Ftp doesn't use udp in this instance

#

Assume some level of Defaults

zealous rune
#

ok thanks for the hint

#

box is reset

#

let's see how we go 🙂

fathom pendant
#

Iirc this one can take a few resets sometimes

zealous rune
#

hmm

#

think u r right

#

gonna switch regions too

fathom pendant
#

As a note, when using ftp on an alt port the syntax is
ftp [ip] [port]

zealous rune
#

yep thanks

#

i just need to find the service first 🙂

#

ahahaha

fathom pendant
#

👍

zealous rune
#

found it

#

all done and moved on from attacking ftp service

#

That's a bit furustrating though

#

Might be worth having a tip saying to reset machine if don't find ftp service

civic hamlet
#

python3 -m http.server --directory /home/kali/file.txt
Trying to upload a file on the python webserver I just created, But im recieving error messages

#

Network services module, linux fundamentals

sterile solstice
#

Everything in that tmp folder will br available for download, so put whatever files you want available

raw hornet
#

Hi everyone! Please i need help with a question with DACL 1, The question Is: "Using Pedro's account, submit the password of Moly's account.". I dont understand The part 'using Pedros account' From the Kerberoasting attack I sent Moly's password, which is Passw@#$...etc, but what I don't understand is that I don't speak English very well, it's the part about: sending from Pedro's account. Can you please help me with that, which means sending from Pedro's account. Thank you so much.

solid quarry
#

I'm stuck tried everything but for some reason I can't get a revshell on backup server

civic hamlet
gloomy lichen
sterile solstice
civic hamlet
#

what if I was in root

sterile solstice
#

i.e. if you start the server from the /tmp/www folder, and there are files and folders in there, everything in /tmp/www will be available

#

well i wouldnt recommend that, but i assume so. tbh, ive never tried seeing what you can do with folders in the webserver

civic hamlet
#

I see, thanks

#

yeah I did do it in root and this leaves me a bit concerned

sterile solstice
#

i just do it from my users home folder, but some will create a directory in tmp

civic hamlet
#

Im getting the adress already in use error

sterile solstice
#

obviously you start a webserver to open access to things in that folder, so you can upload. but that would also leave your folder exposed. during a skills assessment/HTB question, or a box, you'd be fine. but it obviously goes both ways

civic hamlet
#

I see

sterile solstice
#

what do you mean?

civic hamlet
#

OSError: [Errno 98] Address already in use

sterile solstice
#

that means the port youre trying to use is already in use

#

python -m http.server <port>

#

i usually just use 8000 or some variation of it

#

i think if you use anything within 1-1000, you need sudo as you usually need elevated privileges to forward packets to those protected ports

civic hamlet
#

Thats interesting

#

Thanks, i made a website on port 8989

#

I can see the infromation on my home directory

rustic sage
# civic hamlet Thats interesting

Use a different port, maybe start the http server in the users home directory, not in root. Also make sure whatever you're trying to host is in the same directory where you're starting your http server

civic hamlet
#

Alright

#

blood for the blood god

#

or not

rustic sage
#

Bro got banned 💀

ocean night
#

ty @sterile solstice

civic hamlet
#

blood sacrafice

ocean night
solid quarry
#

did you used powershell or the PsExec binary? And the host with nc was on windows or on your linux?

gloomy lichen
solid quarry
civic hamlet
#

This is a somewhat flawed queston im aware, but how long should a module take?

#

Im going through the linux fundamentals at about 2-3 sections a day with notes

#

Should I be going faster?

dim wolf
civic hamlet
#

Understood

fathom pendant
vague osprey
#

I'm currently in Linux Fundamentals. I have supplied the correct command and syntax for this question - How many total packages are installed on the target system? The command I used is apt list --installed | wc -l and the answer is 3218, but it's incorrect. Could anyone provide some help?

fathom pendant
vague osprey
#

How do I ssh to the target?

#

New to this - trying to learn...

rustic sage
fathom pendant
vague osprey
#

Ok, I'll read back through the module again Thank you!

fathom pendant
civic hamlet
#

"Find a way to start a simple HTTP server inside Pwnbox or your local VM using "npm". Submit the command that starts the web server on port 8080 (use the short argument to specify the port number). "

#

ive tried downloading npm but it seems to be irrelevant in answering the question

fathom pendant
civic hamlet
#

most likely npm -m https.server

#

missing the port part

#

ill fix that

raw hornet
#

Hi everyone! Please i need help with a question with DACL 1, The question Is: "Using Pedro's account, submit the password of Moly's account.". I dont understand The part 'using Pedros account' From the Kerberoasting attack I sent Moly's password, which is Passw@#$...etc, but what I don't understand is that I don't speak English very well, it's the part about: sending from Pedro's account. Can you please help me with that, which means sending from Pedro's account. Thank you so much.

rare swan
#

Got a question regarding php web shell; no matter which command i input it always prints out a lot of stuff - can someone hellp me out with this?

rare swan
#

Module: Attacking common services - easy lab

next bronze
rare swan
#

<?php system($_REQUEST['cmd']); ?>

#

is this wrong?

#

should it be; <?php system($_GET['cmd']); ?>

next bronze
#

yes

rare swan
#

doesnt make a difference; outputs the same

fathom pendant
#

Did you upload to a new location/name?

#

Depending on configuration, it won't overwrite a file that exists

fast epoch
#

hello, I am getting this issue when trying to use ssh. It says "...port 22: connection refused"

#

help

fathom pendant
#

Or the port shown with ip:port

fast epoch
#

nah it doesnt say to use a specific port

fathom pendant
#

Did the target spawn as such; ip:port?

#

If so, then you use the port shown

fast epoch
#

no the target just spawned as ip

rare swan
#

and second on INTO OUTFILE 'C:\xampp\htdocs\shell.php';

next bronze
fathom pendant
fast epoch
#

yeah im connected to the vpn

#

its weird that this is happening

fathom pendant
#

Otherwise I suggest restarting target with a blank slate and try again

rare swan
#

ok ill try it out - thx

#

same issue

fast epoch
#

nvm i got it working, thank you

rare swan
#

@fathom pendant does it make a difference which table to use for union injection?

#

or do the columns just has to match?

cloud urchin
#

a sql database can have multiple tables. so if you're looking for something specific (like a flag) then yes, you must be in the correct database

oak lance
#

I'm stuck on the Linux Privesc logrotate question. I've found the config file, and created a logfile greater than the maxsize in the config but it doesn't seem to rotate. I'm not sure how to get this to trigger.
Edit: Config file was a furphy, found the right logfile, triggered the payload and waited quite a time to get a shell. Only realised after I'd given up and started looking elsewhere and then went back to see a # prompt in the terminal scrollback.

rare swan
#

@cloud urchin dont want to look up a flag - just want to use table for union injection

#

for uploading a webshell

fathom pendant
rare swan
#

so it does - otherwise it wouldn work...

fathom pendant
#

But you don't need it if you have full access to the db

#

Union select is generally if you only have input form access and SQLi

rare swan
#

so i have to find the flag in the db?

fathom pendant
#

Read the question carefully for what it wants

rare swan
#

wants the content of the flag.txt - arent it?

#

nevertheless - the web shell doesnt work - even if i change to: <?php echo shell_exec('whoami'); ?> --- it always prints out the same stuff

fathom pendant
#

You're thinking too hard

#

But also webshell should work

#

<?php system($_GET['cmd']); ?> should work just fine

#

Also make sure you put the select command in double quotes

#

So it doesn't break your quotes in the php command

rare swan
#

dont understand - select command in double quotes?

fathom pendant
#

Select "<?php ...?>" into outfile

rare swan
#

it is

#

can i post the whole command?

fathom pendant
#

Wrap it in ` so it formats

#

like this

rare swan
#

test

#

SELECT help_topic_id, name, help_category_id, description, example, url FROM mysql.help_topic UNION ALL SELECT 0, "<?php echo shell_exec('whoami'); ?> ", 0, '', '', '' INTO OUTFILE 'C:\\xampp\\htdocs\\b.php';

fathom pendant
#

But it should work

fathom pendant
#

You don't need to do a union select with it

#

That's why you're getting a bunch of extra shit

rare swan
#

its a cooperation with gpt - lol

fathom pendant
#

Just select "<?php ...?>" into outfile 'c:\\xampp\\htdocs\\shell.php'

rustic sage
#

yea gpt usually tends to do way to much

fathom pendant
#

The output of the cmd is likely buried somewhere in the output

#

As you're selecting a bunch of extra shit

#

Btw I believe this command for a shell is given in some form in the sql section

vague osprey
#

Good night all!

rare swan
fathom pendant
#

It's in the common services module

#

Has nothing to do with the methods of sqli, which your payload also would have the same difficulties with

#

Well, at least the same result

fathom pendant
next bronze
#

you don't need to do sql injection when you already have a sql shell

fathom pendant
#

Yep

rare swan
#

yep works fine - the easy way - but how should you now this stuff if its mentioned just in the sql module?

#

for me its not that easy - lol

#

i mean easy assessment

fathom pendant
#

Specifically subsection; MySQL -- write local files

rare swan
#

just saw it in my cheatsheet

fathom pendant
#

The example is for a linux machine, but I mean the concept is the same

fathom pendant
#

As that module you linked was specifically for sql injection; which is different

rare swan
#

how do you say - the devil is in the details - lol

fathom pendant
#

In other words; reading is hard

rare swan
#

there is so much stuff in the modules - how to now where to look...

rustic sage
stark edge
#

I

#

Can someone help me with opening a app on school mac that’s blocked

fathom pendant
fathom pendant
#

Take it up with your school

stark edge
#

Well I didn’t ask for ur input I asked if someone can help