#modules

1 messages · Page 394 of 1

white junco
#

I appreciate your input !

spice bolt
#

Please anyone help

#

I found the login admin page but it has Wordpress security plugin

#

And I got only 3 attempts left

wooden seal
#

Thanks

lusty thicket
nimble scroll
#

hi, I am struggling to find the answear of this and I don t know if I am not looking where it should be the answear, I tried over 10 attempts to answear and nothing... " According to the paypal.com website in October 1999, what could you use to "beam money to anyone"? Answer with the product name, eg My Device, remove the ™ from your answer. "

#

I used internet archive and looked to all topics and nothing...

nimble scroll
#

yea... 20 attempts now, I looked all the way on the website, wtf

#

still didn t find the answear

#

nevermind.... fixed

lusty thicket
#

awesome

spice bolt
#

Please anyone help how to bypass Wordpress security plugin

#

Im on admin login page

#

But I have 3 attempts left

lusty thicket
surreal chasm
#

Hey, i need some help with skill assessment on the pivoting & tunneling section
Can I DM someone?(I've this diagram and I dont want to spoil anything)

spice bolt
limber fog
#

Hi, quick question for the Wordpress module
I'm the skill assessment and there is the "Use a vulnerable plugin to download a file containing a flag value via an unauthenticated file download." question.
I have done every question but this one.
Am I complicating things ? Or is there something I have missed ?
Thank you

ancient niche
#

Good Afternoon guys what do you think about this?

cerulean hinge
#

Hello, i'm stuck on the logrotate module of the linux privesc.

I found a writable log file, and tried to follow the step to obtain a shell however it seems that the only log file I have write permissions on it is never rotating.

Edit : I managed to solve the issue. For those who are stuck at the same step than me you need to append something into the log file so logrotate will be trigger.

bright coral
harsh gorge
#

What you’re gonna want to do instead is specify an api key for wpscan

#

This will be a lot more fruitful then just your normal scan as you’re querying wpscans api for possible vulnerability matches and other curiousa

limber fog
#

I'll look into it again

#

Thank you for your answers

harsh gorge
#

You’ll be able to find em that way

acoustic owl
spice bolt
#

Can u help me

#

How to find the password

#

I’ll appreciate it

harsh gorge
#

@acoustic owl dude I think this guy might be doing some illegal shit

spice bolt
#

Wtf no

harsh gorge
#

Or something unrelated to the platform

spice bolt
#

Im just trying to get pass of admin panel

#

But there 5 attempts

harsh gorge
#

Uhhh there’s no box that does that please read #rules

acoustic owl
# spice bolt Wtf no

Do you have written permission to attack the website? If not, don't do it! It is illegal

spice bolt
#

I have small question

#

Does brute force work at login pages that have 5 attempts?

limber fog
harsh gorge
limber fog
#

Yea sorry I just edited it

#

cause I was trying without the ' and I thought it was just not the correct request

#

as it didn't work

harsh gorge
acoustic owl
spice bolt
#

Yes I have

#

My friend made website and chanlleged me

#

To hack it

harsh gorge
#

Hey no problem

limber fog
#

I feel dumb but thx ^^

acoustic owl
spice bolt
#

Aight

flat lark
#

Hey

#

Finally someone available to talk 😂

#

Have you got the error destination host unreachable.
This is becoming a thorn in ass with time.

acoustic owl
flat lark
#

No I just do I ping to my local device connected to the same network.

acoustic owl
#

Not every device responds to a ping

flat lark
dull carbon
#

Im tearing my hair out trying to get chisel and proxy chains to work on the last question of Pass the Ticket (PtT) from Linux (pentest job path)

I has no issues wtih the rest of the questions, frustrating that I cant get this part to work, no matter what I do I can get the machine to connect back to my Kali VM

acoustic owl
prime dust
#

Hello everyone, I am facing an issue while debugging a .NET web app (advanced deserialization module) with dnspy. My breakpoint are not hit. Do you know what could be my issue ? thanks

candid elk
#

Hey everyone.

prime dust
median gale
#

Could anyone help on essid stripping on evil twin module?

#

Seems pretty straightforward yet after setting up the rogue ap just like the module says and sending deauth packets nothing seems to happen

lunar flicker
#

Hi guys, I ask again, maybe someone have solved this lab.

Hi guys, can someone please help me with CWEE - Advanced Sql Injection - Read and write files?

I’ve created a payload working just to pg_sleep(15) but I cannot go for more that it

I’m really frustrated actually

olive fiber
#

Hey Guys,
anyone is having issues with MFA connecting to htb?

compact patrolBOT
vocal galleon
#

Where can I get a tip/help with zephyr initial foothold?

cloud urchin
#

if you can't access that channel you need to follow the instructions in #welcome

hardy cloak
#

I have a question. If I get hired as a Security Analyst, or whatever what do they expect ? When I do the labs I tend to hit a roadblock and use the writeup. When I read the writeup it makes sense, but I am unable to figure out most of the box myself.

cloud urchin
vocal galleon
#

Hi i have some problem abour zephyr initial foothold
where i can ask some hint

high citrus
#

Hi guys, i have some issue with the footprinting module, with Oracle TNS, i'm not able to install odat in my VM, i tried everything i found on the internet but nothing

#

"libaio1" has no installation candidate, and i get "externally-managed-environment" error using pip

cloud urchin
high citrus
#

Yes, i just did a copy paste of the script given in the module

#

Also tried to do things manually with the github repo u just sent

cloud urchin
#

it's just a python file you run

high citrus
#

Dont i need the entire repo to run that file, like, doesnt it have required packages or something

cloud urchin
#

yeah you need the whole thing but the script clones the repository

#

do you get errors running the script?

high citrus
#

"Traceback (most recent call last):
File "/home/kali/Desktop/odat/./odat.py", line 54, in <module>
from CVE_2012_3137 import CVE_2012_3137,runCVE20123137Module
File "/home/kali/Desktop/odat/CVE_2012_3137.py", line 9, in <module>
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
"

#

I get this while running odat, after cloning the git repo

cloud urchin
#

pip3 install pycryptodome

high citrus
#

If u do such things i get the error "externally-managed-environment", same with the htb module script

cloud urchin
#

try running it in a virtual environment

#

you could also use --break-system-packages with the pip command, but it could break other stuff idk.

#

better to use a virtual environment

high citrus
#

Trying with the venv, as u suggested, seems to be working, pycrypto installed

dark hedge
#

venvs are a pain in the ass. see if you can install odat.py with pipx

high citrus
#

Ill try with this method to install the rest, thank you

high citrus
dark hedge
#

curses

high citrus
#

Still same error tho, " File "/home/kali/Desktop/odat/./odat.py", line 54, in <module>
from CVE_2012_3137 import CVE_2012_3137,runCVE20123137Module
File "/home/kali/Desktop/odat/CVE_2012_3137.py", line 9, in <module>
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'" even tho i installed the required packages in the venv

safe star
#

Just get the venv bro 😭

#

I just make an alias called venv to activate it and have all my tools there

high citrus
#

I'm in venv now, i installed everything, but it says no module named crypto, i tried pip3 install pycryptodome and it says i already have it...

#

Am i stupid or this is fucked

fathom pendant
#

Crypto and pycryptodome are different

#

By technicality

high citrus
#

Says i already have Crypto too, just find out that this command line "sudo pip3 install colorlog termcolor passlib python-libnmap" isnt working due to the external env error, even tho im in a venv

cloud urchin
#

if all else fails, you may be able to use the pwnbox

high citrus
#

Yeah, i think ill just use the pwnbox, btw thanks for the help u all

quartz lagoon
#

hi, do you know if we were meant to look at the hint here? Like to show us that we sometimes need to rely on our coworker's findings?

nimble scroll
#

Hi guys, I got the module Information Gathering - Web Edition and I struggle with this, What is the API key in the hidden admin directory that you have discovered on the target system? I tried with SecList gobuster with top1million and did not get anything to help me get the api , can anyone help me ?

gleaming haven
#

Hi
How in Windows Attack and defense Connect Kali? Any help

cloud urchin
bright ridge
gleaming haven
cloud urchin
#

then you should be able to RDP into the host

bright ridge
#

if you dont know how to rdp/ssh into a target you should learn basic networking and kali linux

gleaming haven
bright ridge
#

honestly i dont underand you

#

we need more information

nimble scroll
#

"What is the API key in the hidden admin directory that you have discovered on the target system? "

#

what I might do wrong :/ I tried several ways and still nothing

gleaming haven
#

I used pwnbox , connectwd Windows Machine

#

Thanks gyus i fix it

gilded pivot
#

If anyone can help me out that would be greatly appreciated. I have installed parrot and updated it. When I enter cat tool.list it says "no such file or directory" . I have the security version so I don't know what I'm doing wrong.

worn dove
#

If anyone can help me out as well it’s a very simple thing I just am not experienced in the field

cloud urchin
#

your other post makes it seem like you want a hacker for hire or something

rain fulcrum
#

Did anyone have a problem with
Lab3?

obtuse sphinx
#

I didn't what problem are you having?

wooden perch
#

Why nmap doesn't work well with tunnelling like sshuttle and Ligolo? It's a good practice to run nmap over tunnels?

cloud urchin
#

nmap relies on raw sockets for many of its scans, things like proxychains route traffic through a user-space proxy which doesn't support raw sockets

wooden perch
#

A for loop with ping works great for host discovery over tunneling on the other hand

bleak grail
#

Try hack me or hack the box?

waxen totem
#

This is Hack The Box discord mate...

bleak grail
#

No I mean what's better

waxen totem
waxen totem
wooden perch
#

💯

bleak grail
#

Is it free?

cloud urchin
#

Honestly HTB better than all of them

rain fulcrum
waxen totem
bleak grail
#

What's cheaper hack the box or try hack me

waxen totem
waxen totem
#

but simply doesn't compete with HTB content 💪

bleak grail
#

Btw are you the only person here?

waxen totem
#

No...

bleak grail
rain fulcrum
cloud urchin
#

This channel is for discussion about the HTB Academy modules.

bleak grail
#

Oh I thought this was the general

cloud urchin
waxen totem
bleak grail
#

What language?

waxen totem
#

English...?

bleak grail
#

Your a bot?

waxen totem
#

Yes swag

#

Seriously though go get verified, instructions here: #welcome, cos this isn't the channel for this

bleak grail
#

Bro when I click general it puts me here

waxen totem
#

Cos you need to be verified to access... Instructions here -> #welcome

bleak grail
#

Bro

#

It won't work

waxen totem
#

@fathom pendant you still active? come help this fool get verified prayge

bleak grail
#

Fool?!?

cloud urchin
bleak grail
#

Idk

cloud urchin
#

as 0xW1LD said, follow the instructions to link your HTB account then you can access those channels.

#

sounds like you didn't even try

bleak grail
#

I don't know where to find account verifiyer

cloud urchin
#

it says where in the instructions

#

did you read the whole thing?

bleak grail
#

No

cloud urchin
#

read the whole thing.. it links it

bleak grail
#

I can't find account identifyer

cloud urchin
#

it's on the right side, to the right of your avatar

#

there's even a nice little copy button for you

broken star
#

@cloud urchin was a syntax error, took a few hours to figure it out, won’t make that mistake again. Thx for the help!

round marten
#

I tripped over this same issue and fix. It seems to be a really common stumbling point. What I'm interested in is why is needed. Does anyone have an explanation of why "sudo" apparently doesn't run as root "enough" to make this work?

silk stirrup
#

Hey guys. Is there any module that’s teaching how to bypass Protected management frame enabled access points?

fathom pendant
#

no

normal thorn
#

hello

#

how to chat in general server

cloud urchin
heavy fable
#

Hello everyone, someone help me with the phase of obtaining /admin.php in the xss and csrf skill assessment. Im already a moderator, but I can't get /admin.php

cloud urchin
#

There are a few sections that go over enumerating API's and web applications, have you read over them again?

sterile furnace
#

can anyone point me in the direction of a channel to find prolab help?

quasi wave
#

hi I am on the last question of the hard assessment for Attacking Common Services module. I am able to RDP into the system and log in as the one female user out of the three users. That's the only user I can RDP in as. I have to get the flag from the Administrator's Desktop folder and I found an unattended file that looked like it had the admin file but it didn't. I need to escalate privileges. I'm trying to use PowerShell or CMD to escalate privileges but I don't think its working. Can someone help me out here?

#

I have been stuck on this last question for now its the third day in a row.

cloud urchin
#

@heavy fable Try to ask your questions without revealing stuff that could be on the SA please

#

@heavy fable Think about what the module is about (xss and csrf) and what you can do with your new found mod powers

heavy fable
#

sry my bad

cloud urchin
quasi wave
#

ok thanks

lost kiln
#

Hey all. I'm in the GPP-Passwords Section of the Windows Attacks and Defense Module of the SOC Path. I ran the command to bypass the execution policy, imported the script to an admin PS terminal, but when I run the script, I get nothing printed to the terminal (no results or error). Suggestions?

cloud urchin
#

Did you execute the function or try to run the ps1 script after importing?

lost kiln
#

Yes. I ran the three commands in the cheatsheet, and some variations I researched.

cloud urchin
#

well, it worked for me, you may want to reset the target and try again.

lost kiln
#

OK. I did that too a few times 😛
Moving on for now, will return to it. Thanks for verifying.

valid viper
#

@proud pine Sorry to hear about your job hunting troubles.

digital steeple
#

My ssh command never works

quasi wave
#

can someone help?

cloud urchin
#

remember you're talking about a skill assessment you don't want to reveal any details about it

cloud urchin
#

you do it like every day man

quasi wave
#

I was trying to be vague. Can someone DM me?

#

I know I do that its an autistic habit. I'm working on it I have trouble with stuff like that.

#

I say too much

#

I have a hard time with that kind of habit

#

its an impulse thing

#

wait ok someone is dming me over it

prisma turtle
#

What is the command we need to run in order to display the 'ftp' client help menu?

#

I keep putting ftp -h but its saying im wrong

#

nvm tutorial was outdated

solar vale
#

Hello ..in Binary Fuzzing section Sanitizers when I try to solve the last question and run asan_demo executable file, I get get this error "./asan_demo: error while loading shared libraries: libasan.so.6: cannot open shared object file: No such file or directory
" .. but this shared library wasn´t in the zip folder that I downloaded from HTB Academy! There was only this executable file

quasi wave
#

hi I almost have the the flag but I am running into an error with one last step from one of the assessments. I do not think I can explain what's going wrong without giving away details. Can someone please DM?

#

I'm 99% of the way there

#

or 95% or whatever

#

like I have one last step and then I know what the next thing to do after that is and then I get the flag

#

this is for the hard assessment for Attacking Common Services

#

I don't know if this is an HTB problem but I think I almost have the right command

#

its absolutely not possible to tell you what's going wrong without giving away details

#

I literally am just getting a specific command wrong

cloud urchin
#

review the module for the commands

quasi wave
#

I am

#

I am using the exact command from the module and its not working

#

I even ran it by another guy who told me I'm looking in the right section

#

and the right subsection

#

its literally like one command I am typing and based on output from another command

cloud urchin
#

if you're on the last step like you say, then it should give you an error and you may be able to figure out what's wrong with that. i didn't have any issues and i used the command directly from the module.

quasi wave
#

ok thanks

#

ok I think I copied the command and got something right so I think I know what server to access by name I just its not showing anything meaningful in the results

#

so like I run the command and its valid but it won't do anything

#

unless I try a different server but then I get an error I also can't post here without revealing details

#

but same command from the module

#

I'm sure I'm very close now

#

wait I think I got it

long flint
#

hey guys for the Whitebox Attacks - User Enumeration via Response Timing section, is there a smaller wordlist? the web app keeps crashing when trying to bruteforce enumerate

quasi wave
#

I found the flag

storm elk
karmic dirge
#

Running into a bunch of problems with Advanced Sql Injection SA2.
Create Function seems to be failing, with the failure being blind its very hard to debug what is going wrong. Ive tried different file paths and I compiled the code on one of the other test boxes with the correct version.
Any tips?

storm elk
karmic dirge
daring tundra
storm elk
#

It’s been quite some time since I did that module. I remember that I respawned and the script I wrote instantly worked

#

I’m about to head out soon, but if you don’t mind waiting a few hours for a response, send me your script and I’ll have a look when I get a chance

karmic dirge
long flint
dreamy vector
deep needle
#

I just completed that module and I can’t understand answers for the skill assessment questions that what particular are the answers and even in that practical scenario, 2nd question was nightmare

I can locate ip_scanner with volatility and timeline explorer but the correct exe is nowhere nearby to ip_scanner.exe

I tried every exe was ran and I don’t understand what that exe is the answer

There was so much time between correct exe and ip_scanner.exe and in between that time there were many more exe available so how we supposed to know which one is correct?

Can anyone help me understand this SOC path question?

bleak grail
#

It's me again it still won't let me in

waxen totem
bleak grail
#

Idk

#

Can you tell me what to do?

waxen totem
#

no... go follow the instructions in #welcome

#

if you encounter an error contact a mod

fathom pendant
lusty thicket
fathom pendant
#

also spoiling an active machine

#

/drive:sharename,/path/to/directory/ in xfreerdp

#

or one of the multitudes of methods mentioned in the file transfer module

daring tundra
#

I Found something lol

Literally same command except using nxc vs Netexec... Netexec fails to execute properly while nxc does execute

fathom pendant
#

pipx --ensure-path iirc

daring tundra
#

Not sure if it is pipx, I tried and there was an error... netexec comes pre-installed in my parrot os

fathom pendant
#

ah yeah forgot they did that

daring tundra
#

but at least now i know, the devil is in the details.. Notice how when the system notifies me of the error, it quotes "nxc", not "Netexec"

fathom pendant
#

eh that's more likely how netexec is coded than anything else

#

you'd have to test on a system that installed via pipx versus install via apt

daring tundra
#

yea it's probably that, but hey! I got it working!! woots

fathom pendant
#

if the issue is with netexec:
the issue would persist with pipx and apt install
if it's with apt, may have to raise the issue with parrot devs

daring tundra
#

Oh.. is there any parrot devs here?

fathom pendant
#

not as far as i'm aware but they have their own discord server

#

but issues would be best raised on the gitlab

daring tundra
#

alright, thanks, I will raise it to them soon when I have the time

nimble scroll
#

hi , I got this and I struggle by 2 days and I couldn t resolve, I tried go buster and I don t have vhost directory on SecLists , What is the API key in the hidden admin directory that you have discovered on the target system?

#

I couldn t find anything on scan, If I put the port it just finds /index.html :/

fathom pendant
nimble scroll
#

I did ok on /etc/hosts, I don t find vhost file on SecLists

fathom pendant
#

you'd still use the DNS subdomains list

#

it's just how it performs the request will be different

nimble scroll
fathom pendant
#

i'm sure the module went over vhost scanning

nimble scroll
#

I will run the command again...

fathom pendant
nimble scroll
#

here I also specified the port..

fathom pendant
#

reset the target, update your hosts file, try again

nimble scroll
#

ok

unborn path
#

Huh

fathom pendant
#

also

#

--append-domain

#

you may find that more helpful first

#

i suggest researching how tools work before just copy/pasting what you may see; sometimes a tool may have updated since a module released and the time you get around to it

nimble scroll
#

after the scan I added into the /etc/hosts , but couldn t connect to what I found...

nimble scroll
#

my bad...

#

I did to find admin...

fathom pendant
#

robots are helpful

nimble scroll
#

but now I need to get the api...

fathom pendant
#

that's all i'll say on the matter

#

the other thing being: if you don't find info on one subdomain, keep digging further

nimble scroll
#

It says that it couln t connect

#

when I curl the admin

#

or that it is moved permanently

fathom pendant
#

-L to follow links

#

or just visit in a browser

nimble scroll
#

unable to connect

#

curl
curl: (7) Failed to connect to port 80 after 1 ms: Couldn't connect to server

#

finally done

#

:))

urban elk
#

anyone up for a quick sanity check on a step on AEN ? It will be a yes or no question, I don't want to be spoiled by the walkthrough and I'm just afraid I'm blocked by something silly (instability)

long flint
#

looking for some assistance on User Enumeration via Response Timing
tried different thresholds, amount of threads to enumerate, seems nothing is coming back. when i use the valid account to test response timing, its always inconsistent, so its very hard to set a proper threshold without potentially missing it...

low threshold, high speed =every username comes back as valid,
high threshold, high speed = site unstable and lot of invalid usernames
low threshold, low speed = lab times out
high threshold, low speed = lab times out

pls help lol

acoustic depot
#

I'm embarrassed to even ask this but I think I need a sanity check, I'm certain this flag should be accepted on the windows CLI skills assessment.
I've made sure I'm not copying any whitespace by accident so I figured either it's a red herring or an issue with the answer submission

[Get-Flag, Get-Flag]
PS C:\Users\user7> Get-Flag
The
Flag you are looking for is {Not_giving_out_spoilers!}```
lusty thicket
acoustic depot
#

legend, thank you

lusty thicket
#

awesome

tranquil axle
long flint
#

hmm im not using a vpn to connect. can you use a vpn for a better connection if the lab doesn't require it? lol

tranquil axle
#

oh its one of those setups, nevermind then

#

so yea I'd try going the "only print username if the response took longer than 100ms 10 times in a row" route I guess

#

If you want a hint to get through the list faster, the username starts with the letter ||f||

long flint
#

sad part is the text file is like 600,000 lol

lusty thicket
#

browsers don't allow direct access to file:// uris like that

#

even if it did work why would a remote servers flag file be accessible in your local browser?

lean rune
lean rune
lusty thicket
#

debug properly

#

try a harmless payload to see how entities are processed

lean rune
#

2 days on this, already modify with a harmless payload

#

Idk what im doing wrong

feral adder
#

hello guys in the phising/ in XSS module is it normal that the website won't work? it says:
Not Found

The requested URL was not found on this server.
Apache/2.4.41 (Ubuntu) Server at 10.129.200.177 Port 80

#

yeah I was wrong the f i was lack of h in the spelling.

dire granite
#

Hello can someone please explain me in the Windows PrivEsc module. How is it possible to launch elevated powershell and cmd ? And what is the purpose of escalating privilege since we are admin if we can launch elevated powershell and cmd
Typing the command whoami /priv will give you a listing of all user rights assigned to your current user. Some rights are only available to administrative users and can only be listed/leveraged when running an elevated cmd or PowerShell session.
In all the examples we have to open elevated powershell or cmd . And when i do that i understand that the user is already administrator so i don't really understand what is happening

lusty thicket
#

because of the different integrity levels

#

and certain actions require a high integrity level

dire granite
#

So when we can open the elevated powershell on the host it's mean we are already administrator ?

lusty thicket
#

yes

gray yacht
lusty thicket
#

but SYSTEM is still a step above you

dire granite
lusty thicket
#

lower privileged will need to escalate to admin before escalating to system

dire granite
lusty thicket
#

you're the one doing the module buddy

nimble scroll
#

can anyone give me some tips ? I tried the admin and could not access to get this question , 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.

long flint
fathom pendant
#

i gave you a hint earlier regarding this assessment @nimble scroll ; dig deeper into subdomains if it's not on a.inlanefreight.htb maybe it's on b.a.inlanefreight.htb

nimble scroll
#

ok, I will try

lusty thicket
#

looks like it didn't find any emails or links

nimble scroll
#

same here

#

I don t find any clue with crawling :/

zenith pike
#

I don't know too

nimble scroll
#

:/

zenith pike
#

what should we do?

nimble scroll
#

still no luck even with chatgpt...

#

I also looked in the cheating sheet, still no clue

zenith pike
#

maybe I find something

#

let me try

nimble scroll
#

ok

#

also refuses the connection

#

I checked the hosts , I changed the targed and same...

zenith pike
#

nothing

#

still stuck

nimble scroll
#

there were some guides on youtube but they were taken down by HTB :/

fathom pendant
#

@nimble scroll Careful with spoilers, AGAIN

nimble scroll
#

but now what spoilers I gave ?

fathom pendant
fathom pendant
nimble scroll
#

ok

#

but still could not get the emails :)))

fathom pendant
#

if i get a non-empty results.json you owe me a beer

nimble scroll
#

it doesn t gave us that much details :/

#

so we can get results.json

#

we can get, but empty :/

#

that s our frustration

#

what clue we could use to finish at least ?

#

even burp suite shows blank info :/

nimble scroll
fathom pendant
#

skill issue tbh

nimble scroll
#

welp, I want to improve my skills but without having an clue I can t correct what I am doing wrong :/

#

I wouldn t be here if I was with skills

fathom pendant
nimble scroll
#

I did the port but it shows refused, I checked also hosts and same

fathom pendant
#

not empty

#

if it shows refused then you likely typed the port wrong

nimble scroll
#

congrats but that doesn t help me to understand what I do

fathom pendant
#

as a note you don't put the port in the hosts file

#

it's always in the request you send

nimble scroll
#

I did not

indigo mirage
#

nobody could help me with this : Using the skills acquired in this and previous sections, access the target host and search for the file named 'waldo.txt'. Submit the flag found within the file.

zenith pike
#

wait

indigo mirage
#

I am on stuck on that since two weeks

fathom pendant
#

python3 ReconSpider.py http://x.y.inlanefreight.htb:42203 worked for me

zenith pike
#

i find it

nimble scroll
#

ok, I will retry

fathom pendant
#

i just spawned a fresh target and it worked like a charm

zenith pike
#

@fathom pendant thanks for your help i find the email i'm amazing

fathom pendant
#

if all else fails and YOU'RE SURE you did it right, reset the target

#

otherwise not sure what else to tell you aside from

#

and @zenith pike

#

the only other random thing i've seen people have issues with is if they're using a personal vpn, sometimes that messes with things (note not the academy vpn, but a vpn service like Nord, Mullvad, etc.)

fathom pendant
indigo mirage
#

I am really strefull with that and anything is working

#

stressfull

nimble scroll
#

python3 issue

#

on htb machine, wonderfull

nimble scroll
#

Seems like you haven't installed Requirements or You are not using python3 version, Please install using: python3 setup.py install

#

python3 setup.py install
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'console'
warnings.warn(msg)
error: Multiple top-level packages discovered in a flat-layout: ['core', 'plugins'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

  1. set up custom discovery (find directive with include or exclude)
  2. use a src-layout
  3. explicitly set py_modules or packages with a list of names

To find more information, look for "package discovery" on setuptools docs.

fathom pendant
#

what are you even trying now lol

nimble scroll
#

I tried to run the command

#

and it fails due python

fathom pendant
#

the ReconSpider i'm referring to is the one from the creepy crawlies section, it's not the same as on github

nimble scroll
#

:/

fathom pendant
#

¯_(ツ)_/¯

fathom pendant
#

and adding -example gives you a few examples of what you may do

zenith pike
#

what is the "help Get-ChildItem"

#

how to change my nickname?

nimble scroll
#

I ran the command and the results.json are blank

#

I did not find anything....

zenith pike
#

add the port at the end of your command

nimble scroll
#

I did

fathom pendant
#

to get your username the same as your htb account name read and follow #welcome

zenith pike
#

ok i'll try

fathom pendant
#

but that message wasn't originally for you

#

it was for the person having issues with the windows CLI fundamentals module

#

:)

nimble scroll
#

I still did not solve :(((

#

I resolved with spider

nimble scroll
#

but did not get anything in results,json

fathom pendant
#

¯_(ツ)_/¯

#

at least almost correct

nimble scroll
#

:/

fathom pendant
nimble scroll
#

I did that, I also checked hosts ip , subdomain

#

and still nothing :/

fathom pendant
#

and you have the x.y.inlanefreight.htb in your hosts file?

nimble scroll
#

yes

fathom pendant
fathom pendant
#

if you're in CMD, then yeah help get-childitem won't work

#

because that's a powershell command

indigo mirage
#

I am in Introduction to Windows Command Line
Page 7
Finding Files and Directories

fathom pendant
#

i'm aware of where you're at

#

lol

#

i'm trying to figure out what you're saying "isn't working"

indigo mirage
#

I am using dir

nimble scroll
#

solved the question after 1 more target

fathom pendant
#

so you're in a CMD prompt; not powershell

indigo mirage
#

ls and all of that buy anything is showing my the path to acess on waldo

fathom pendant
#

do you see PS C:\current\directory> ?

indigo mirage
#

xD

fathom pendant
#

i'm making sure we're on the same page

#

and there's no language barrier

indigo mirage
#

JAJAJAJA

#

I was on power shell

fathom pendant
#

ok

indigo mirage
#

My mistake

fathom pendant
#

do help get-childitem -example to see examples of how you can use get-childitem

indigo mirage
#

But, How can i get access on the cmd

fathom pendant
#

if you're in a command prompt (not powershell) you just type powershell

#

and it'll drop you into a powershell prompt

#

if you're already in a powershell prompt; just type it in

#

if you don't even have a powershell prompt or command prompt open, wtf are we doing here

indigo mirage
#

I was verifying and yes I was on the right place

rain fulcrum
#

Still have a problem with Lab 3 of "Enumeration with nmap" Did anyone have had issue with it?

lusty thicket
#

yeah

rain fulcrum
#

I might didn't understand question right...

fathom pendant
indigo mirage
#

I get it

#

It is the best way to learn

#

but is the same, is not working

fathom pendant
rain fulcrum
#

for sure

rain fulcrum
#

let me ask this, are they talking about DNS in lab 3?

fathom pendant
rain fulcrum
#

that will be big help

#

cos Im looking in wrong place...

fathom pendant
#

but again start with my initial hint and read the IDS/IPS evasion section and re-attack the host (replacing specific -p XXXX with -p- for nmap)

indigo mirage
#

I am trying since the very begginning

fathom pendant
#

read and follow #welcome to see how to do that

indigo mirage
#

Ok

fathom pendant
#

if you've been trying to send screenshots alongside the comments of

is not working

#

that's what's leading to the extra confusion

rain fulcrum
#

and they were talking about DNS in a lab before (2)

fathom pendant
#

:)

fathom pendant
#

consider each one a blank slate

#

this is helpful for many modules beyond nmap

indigo mirage
fathom pendant
#

but each skill assessment is their own entity

rain fulcrum
indigo mirage
#

O, yes is working now

fathom pendant
#

lol

fathom pendant
indigo mirage
#

I am here

fathom pendant
#

though the reading uses CMD and not powershell; powershell can do similar enough

fathom pendant
#

ffs

#

i was missing the s from the end on previous bits

indigo mirage
fathom pendant
#

for christs sake

#

i'm walking you through how to do it in Powershell

#

the reading refers to using CMD

indigo mirage
fathom pendant
#

if you want to switch to cmd from powershell you just type in cmd

#

ah it doesn't pull the examples

#

ok

indigo mirage
#

got it

fathom pendant
#

now you should be able to run the cmd example (modified to fit your needs)

#

note: if it doesn't return anything go one directory back
C:\Users\htb-student --> C:\Users\

indigo mirage
#

ok

#

thanks for your patience

fathom pendant
#

you should find the flag quickly from this point

indigo mirage
median gale
#

Need nudge on SA evil twin

urban elk
lost kiln
#

Hi I'm on the Windows Attacks & Defense module in the Print Spooler & NTLM Relaying section.

I have executed "impacket-ntlmrelayx -t dcsync://172.16.18.4 -smb2support" on Parrot
and "python3 ./dementor.py 172.16.18.20 172.16.18.3 -u bob -d eagle.local -p Slavi123" on Kali

with different combinations of sudo, and multiple restarts of each system.

Would someone confirm for me that this is the correct method and that it works for them?

indigo mirage
fathom pendant
indigo mirage
#

am doing that, where is not working and gonna try with find

gray yacht
fathom pendant
#

it's not on C:\users\student, if that file location even exists

#

with HTB academy you often need to modify the commands they give you to work with the situation presented in the question

#

i can tell you with certainty that the string "waldo" doesn't appear in waldo.txt btw

indigo mirage
fathom pendant
#
find /?
Searches for a text string in a file or files.
FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "string" [[drive:][path]filename[ ...]]
/V         Displays all lines NOT containing the specified string.
/C         Displays only the count of lines containing the string.
/N         Displays line numbers with the displayed lines.
/I         Ignores the case of characters when searching for the string.
/OFF[LINE] Do not skip files with offline attribute set.
"string"   Specifies the text string to find.
[drive:][path]filename  Specifies a file or files to search.
If a path is not specified, FIND searches the text typed at the prompt or piped from another command.
fathom pendant
indigo mirage
#

men challenges like this are so great for me I really enjoy this, but this is making me crazy

fathom pendant
#

where is for locations
find is for text in files

indigo mirage
#

There are some things that I dont understand yet

fathom pendant
#

the EXAMPLE is just that, an example

#

you need to work it to fit what you need

indigo mirage
#

I am trying just with where

fathom pendant
#

you don't need to change much about the where command given to find what you're looking for

indigo mirage
#

ok ill try something

#

I think that I got it

#

I am on it

#

but, what is the flag?

fathom pendant
#

if only there was a way to type out the contents of a file 😉

#

cat isn't a CMD command

#

nor is it aliased

lusty thicket
#

it's also case sensitive

near rock
#

My bad.

indigo mirage
#

I got it

#

I just learned a lot

#

thanks, thanks a lot

indigo mirage
#

I spent two weeks on this and finally, I really learned a lot.

lost kiln
#

Just giving myself a bump now 😊

Hi I'm on the Windows Attacks & Defense module in the Print Spooler & NTLM Relaying section.

I have executed "impacket-ntlmrelayx -t dcsync://172.16.18.4 -smb2support" on Parrot
and "python3 ./dementor.py 172.16.18.20 172.16.18.3 -u bob -d eagle.local -p Slavi123" on Kali

with different combinations of sudo, and multiple restarts of each system.

Would someone confirm for me that this is the correct method and that it works for them?

signal hound
#

Hi im doing attacking commin services SQL databases
The question is "what is the password for mssqlsvc user"
I loged in with the creds that were provided but i couldnt find mssqlsvc user in the database to impersonate to and get the pass
Any tips?

fathom pendant
#

😉

left jungle
#

hi guys, no voice chat here?

#

i need help im a gold member and i need voicechat support can someone help me somehow? its a simple thing

hasty mauve
fathom pendant
left jungle
fathom pendant
hasty mauve
fathom pendant
#

though it doesn't teach anything

#

just goes through step by step; the teaching is done by reading the module

left jungle
left jungle
#

this is why i need help in vc

fathom pendant
#

it's likely in the reading or known via some pre-requisite, it helps to know what module and section you're on

left jungle
#

please create a vc channel here it would be great

fathom pendant
#

there is an academy vc

left jungle
#

where?

fathom pendant
#

or there used to be

cloud urchin
#

It's still there

fathom pendant
#

but tbh you're not gonna find much help without actually saying what you're working on

left jungle
#

why i dont have access to this?

#

im a gold member

fathom pendant
#

ah; likely tied to account linkage -- read and follow #welcome

left jungle
fathom pendant
#

just say the module name and someone may be more amicable to helping you

#

instead of just saying "i'll say in VC"

#

or they can explain in chat or via dm if it's a spoiler

#

also you wouldn't have access to screenshare in the vc i believe that's tied behind another thing

#

and yes even though you're a gold annual member on academy that doesn't magically unlock everything, they're working on getting things set up for academy verification so you don't have to jump through a million hoops

left jungle
#

wait what? isnt the academy gold gives me also subscription to to the HTB app labs? why it says im free subcription type on there?

fathom pendant
#

no it doesn't

#

gold annual is only for htb academy

#

it doesn't translate to htb labs

#

separate platforms, for all intents and purposes

signal hound
# fathom pendant did you try being a thief?

I suppose i need to get the hash for the user and crack it but i cant find the user
Im loged in as "htbduser", i already have his password since they were given to me.
Why do i need to get the current user's hash
How is it gonna help me?

fathom pendant
#

not to mention it's not a listed perk of the silver or gold annual sub

fathom pendant
#

:P

fair ore
#

Hey guys anyone has solved Escapetwo HTB active machine?

left jungle
#

is the vip annual for labs worth it?

#

what will i gain from it if i have academy?

fathom pendant
fathom pendant
left jungle
#

ok i now linked my discord to here. what now? how i gt access to vc?

fathom pendant
#

nope you haven't linked

#

unless dc is bugging

#

yep haven't linked

left jungle
#

i did

fathom pendant
#

the instructions to link are in #welcome <--

left jungle
#

oh

#

idontfind my acc identifier

left jungle
signal hound
fathom pendant
crystal wasp
#

Hi to everyone

left jungle
#

none can come to the vc? its better than typing

#

but it says:

Now our client wants to know if it is possible to find out the version of the running services. Identify the version of service our client was talking about and submit the flag as the answer.

fathom pendant
left jungle
#

how the h am i suppose to know what type of scan should i perform out of all nmap features?

fathom pendant
left jungle
#

i read it

#

but what is mentioned there?

fathom pendant
#

Due to misconfigurations and trusted ports

lusty thicket
crystal wasp
#

I have a silly question.

fathom pendant
left jungle
#

i thought i just need to scan using -sV for version

#

then in the solution i see big mess for a beginner

fathom pendant
#

And I don't do deep dives for free

lusty thicket
left jungle
#

damn

#

really?

#

all they said in the question is:

Now our client wants to know if it is possible to find out the version of the running services. Identify the version of service our client was talking about and submit the flag as the answer.

#

how out of all the features i have learned in the module i need to guess what to choose. i thought only -sV needed

#

cuz they only say version check

fathom pendant
fathom pendant
#

Also nmap doesn't always have the ability to get all the info

left jungle
fathom pendant
#

Sometimes you need to be more manual, for instance nmap wouldn't tell you all the subdomains and directories on a target

left jungle
#

im trying to understand the logic

fathom pendant
lusty thicket
#

there're specific options

fathom pendant
#

It just makes a guess, and can be wrong

left jungle
fathom pendant
#

You're also given the info that the sysadmin attempted to implement a firewall/ids/ips system

#

So there's other info given to you

#

The module is above t0 please don't share answers

#

And it's a skill assessment

lusty thicket
fathom pendant
#

@lusty thicket I'm going to ask nicely to not be so passive aggressive

timid mountain
#

any good way to reliably speed up brute forcing stuff in CPTS, the spawned machines are mindnumbingly slow to respond to ftp attacks for example, and/or end up dying on me for no reason.. and I've been trying to add threads, break up lists to 8 and then 64 files and launch 8 x 1 thread processes at once to keep things flowing, adding some monitoring and sending results back to a non-ephermal netcat listener, but I keep getting stopped by machines stopping responding, dying on me killing my processes. I know I can hydra resume for example, but then if the pwnbox dies the restore file is gone.. this reliability issue is really starting to get to me trying to get thru low level stuff, I've been very VERY patient with it so far ..

fathom pendant
#

48 is most reliable for the password attacks module, for instance

timid mountain
#

i.e: on a multi hour medusa brute force attack in 'Attacking FTP' where I am patiently adding time to my pwnbox and target, not running anywhere near the limit, eventually came to a failure deep into the attack just using the basic instructional material :

ACCOUNT CHECK: [ftp] Host: 10.129.20.33 (1 of 1, 0 complete) User: florence (25 of 79, 1 complete) Password: simple (268 of 333 completeERROR: [ftp.mod] failed: Server sent unknown or no response. Server may have dropped connection due to lack of encryption or due to anti-bruteforce measures. Enabling EXPLICIT mode may help with the former cause and increasing the socket check delay (e.g. -c 1000) may help with the later.
CRITICAL: Unknown ftp.mod module state -1
[..]

I know I can add threads but this doesn't increase the speed for these attacks. I've been going up to -t 100 or so , but instead concurrency seems to improve speeds more with these boxes, which is what I've been doing.
I know this can happen irl and we should plan for failure, but if there is no ratelimiting or no blue team stopping you etc you generally won't see this kind of failure rate irl. this is driving me literally insane and makes the content feel unusable.

fathom pendant
#

Sometimes less is more

#

I don't recall if I needed to mess with the threads too much for common services -> ftp section though

#

I'd say make sure you're using the tcp vpn download

vital zephyr
#

Good evening everyone, I am in the bug bounty section, Side server, in particular SSRF Blind, the question says:
Exploit The SSRF TO IDENTIFY OPEN PORTS ON THE SYSTEM. Which port is open in addition to port 80?
I tried ffuf, but each 65k door tells me '' State 200 '', can you tell me how to solve this module politely?

left jungle
#

so i read the thing also

timid mountain
#

Yes and I haven't found the sweet spot i guess, I've tried default 16 32 64 and 100 commonly and speeds don't seem to increase much on ftp brute force IME.. where running multiple processes on a split list DOES seem to work much faster. If t48 is the one sweet spot that just works without machine failing I guess I will try but I feel like reliability is my biggest complaint here. Machines dying on me before their limit is up.. really kills my desire to proceed.
I have used pwnbox and UDP VPN so far, idk if ive tried TCP, maybe that will help.. appreciate it

fathom pendant
#

But none of the modules require you to bruteforce more than 30 minutes at most

left jungle
#

i dont undertsnad when should i know when to disable arp and when to disable icmp or stcmp etc?

#

and what are the effect? their dfirene

fathom pendant
#

Disabling icmp means nmap doesn't send the "you up" icmp echo request [ping]

vital zephyr
#

Marcielee, you who always give me excellent suggestions, would you give me help please?

vital zephyr
#

really???? omg

vital zephyr
#

a myth falls

fathom pendant
#

ICMP is its own thing. Whenever you ping something you send an echo request, when it comes back -- thats the echo reply

vital zephyr
vital zephyr
#

really? 😦

gray yacht
fathom pendant
#

I haven't dove into web stuff

#

Shhh don't spoil

fathom pendant
#

@vital zephyr stop lol I removed the first time

fathom pendant
#

(Among other things)

left jungle
#

so why would we disable it though?

#

so IDS wont detect us?

#

and IPS

fathom pendant
left jungle
#

oh i see

fathom pendant
#

Ids and ips can still detect

left jungle
#

and how we know it is up though without pinging?

vital zephyr
fathom pendant
vital zephyr
#

and I don't know if I bother the Lord

left jungle
#

ok. am i begginner or advanced right now?

vital zephyr
#

that's why i'am writing here

fathom pendant
#

Beginner

left jungle
#

lollzz

left jungle
#

shame on me bb

gray yacht
fathom pendant
#

And the new Networking Foundations module

left jungle
#

i started from nmap that was my first course

#

is there more begginer path?

fathom pendant
#

Well you're putting the cart before the horse if you don't know the basics of networking

left jungle
#

yeye i know but it didnt show me the real beginner path

#

where is it?

#

Basic Toolset
is the first module in the path i have

left jungle
#

how do i get into it?

#

on site

fathom pendant
#

Like how you got to the basic toolset path

#

But instead scroll to find the information Security Foundations path

vestal jasper
#

hi, i am trying to do the 'Nibbles - Initial Foothold' task from the Getting Started of Penetration Tester path but the IP is unreachable (I tried to reset the target and change the vpn server but still don't work) and the target resets itself after 10-15 minutes, do you have an idea ?

left jungle
#

oh ok

fathom pendant
left jungle
#

the info security is the most beginner path module?

fathom pendant
weary stream
#

I am busy with the Understanding Log Sources & Investigating with Splunk, Using Splunk Applications but the lab should have Sysmon App for Splunk installed but I only see this. Am I doing something wrong here?

fathom pendant
#

Nope, nothing wrong

#

Maybe > find more apps ?

weary stream
#

But the question reads as follows:
Access the Sysmon App for Splunk and go to the "Reports" tab. Fix the search associated with the "Net - net view" report and provide the complete executed command as your answer. Answer format: net view /Domain:_.local

So it should be installed on the VM but it's not so I can't go through the lab/questions.

#

VMs on Hackthebox aren't connected to internet right so I won't be able to download new apps.

cloud urchin
#

they are, but if you haven't spent money on the site they are limited

median gale
#

Anyone finished the Evil twin module?

weary stream
cloud urchin
#

then your pwnbox should be able to get online i believe

median gale
#

Try other ways of stripping

fathom pendant
#

The targets aren't internet connected

fathom pendant
weary stream
terse quiver
#

Hi guys. I'm working on Nmap module, Firewall and IDS/IPS Evasion - Medium Lab. During my first scan (sudo nmap <target_ip>), port 53's state was filtered but after some attempts like changing the source port nothing changed. so I did a new basic scan (sudo nmap <target_ip>) and port 53 was open. I don't know why

fathom pendant
#

Labs can sometimes spawn bugged out

terse quiver
#

I feel like, I was so wrong that htb helped me complete the lab hhh

limber fog
#

Hello !
I'm doing the FootPrinting module, and I encountered the following question in the DNS part:
Identify if its possible to perform a zone transfer and submit the TXT record as the answer. (Format: HTB{...})
Have you got any indication ? I tried the dig axfr command but it doesn't seem to do anything.
Thank you !

cloud urchin
fathom pendant
#

or even subdomains of subdomains

#

or even of the main domain

gleaming haven
#

Hi fam
Windows Event Attack and defense, in Kerberostring.
I've Connection with pwdlab in Windows Machine and after i cant smbclient dont Connect. Any help

limber fog
karmic dirge
#

After completing the exam are there walk thoughts for the module sections that you completed? For a few of them I wonder if I did the intended solution.

cloud urchin
#

no

karmic dirge
#

Ah bummer. Thanks

#

Do you know why enterprise admins need to approve exam vouchers? I thought there were unlimited vouchers per academy seat.

cloud urchin
#

I do not know, probably have to reach out to support on the site for that.

fathom pendant
cloud urchin
#

well there ya go

fathom pendant
#

since for EP plans, you don't get an email with your result (i'm assuming your EA gets the email)

#

reach out to support though to get the full info

#

i'm just going off broad assumptions and logic

karmic dirge
fathom pendant
#

(but the turn around is much quicker for EP)

karmic dirge
fathom pendant
#

it makes sense since businesses pay the big bux for it all

karmic dirge
#

being able to move around seats between users is really neat though

digital steeple
#

...

#

yall I need help with Find Files and Directories for Linux Fundimentals

waxen totem
fathom pendant
#

wait

waxen totem
fathom pendant
waxen totem
#

DW I've done it before too kek

fathom pendant
#

tbf i just saw them asking for help in #general and have been tabbing back and forth (excuses)

waxen totem
fathom pendant
waxen totem
digital steeple
waxen totem
fathom pendant
#

yes

#

ctrl-f for find

#

it's on the page

digital steeple
#

I tried this tasty command
find / -type f -name *.conf -user root -size +20k -newermt 2020-03-03 -exec ls -al {} ; 2>/dev/null

waxen totem
#

This dude gonna struggle on the next section fr

fathom pendant
digital steeple
#

ah

fathom pendant
#

also your size range is hitting too much

waxen totem
fathom pendant
#

almost

#

the big thing with academy is adapting a given command to fit your needs

#

also not all config files are .conf

#

sometimes they're .cfg

#

or .config

#

but i can't recall the answer exactly

#

and i believe they updated the fundamentals module, so some answers may differ from when i messed with it ages ago

digital steeple
#

find / -type f -name *.conf -user user -size 25k -size -28k newermt 2020-03-03 ls -al [] \; 2>/dev/null

fathom pendant
#

also that

digital steeple
#

dear lord, I'm brand new to this

waxen totem
#

dear lord think about each flag

fathom pendant
#

-user <username> you don't know which user the conf file belongs to

#

so you shouldn't include it

#

find is very powerful if you know how to use it

waxen totem
#

honestly though never used any of those flags in any box kek
only:
find / -perm 4000 2>/dev/null

digital steeple
waxen totem
#

go type it in a terminal, we can't evaluate it kek

digital steeple
#

would it be that, I ddi it in terminal, nothing came back.

fathom pendant
#

did you do it in the ssh session?

waxen totem
digital steeple
#

Yes

fathom pendant
#

-4000 matches files with any permissions that include SUID

digital steeple
fathom pendant
digital steeple
#

Yes

fathom pendant
#

not in your own pwnbox/vm terminal

#

so if you look at the username of the user it says htb-student?

digital steeple
#

Yes @nixfund

fathom pendant
#

👍

waxen totem
#

welp time to spawn the target and confirm

fathom pendant
#

+N is greater, -N is less than

digital steeple
#

ah

fathom pendant
#

N is exact

#

man find is helpful

waxen totem
fathom pendant
#

then type
/size and hit enter

digital steeple
#

So, man find /size?

#

I do suck at this tho

fathom pendant
#

man find is to open the man page for find

waxen totem
#

man find
/size

#

btw you misspelled: -newermt and are trying to ls a file

fathom pendant
#

then once it's open /size
within man / is a search operator and everything after is the pattern

fathom pendant
#

if you ls -la a file it'll give you the filepath iirc

waxen totem
digital steeple
#

I did /size and it worked

fathom pendant
#

there you go, now you know how to search man pages for useful information

digital steeple
#

so, I would (from what i just read) -size +25k -size -28k

waxen totem
fathom pendant
#

and it seems like you had some other misspelling

waxen totem
#

yeah oughtta escape the ;

fathom pendant
#

yeah that's important

waxen totem
#

can't understand why the semicolon is needed

digital steeple
#

so, no ;

waxen totem
#

I just don't know why

fathom pendant
fathom pendant
digital steeple
#

So, it would be find / -type f -name *.conf -size +25k -size -28k -newermt 2020-03-03 -exec ls -al {} \; 2>/dev/null

waxen totem
#

I would've just yeeted in some quotes

fathom pendant
#

otherwise it treats it as a regular ; that would end the command

#

but it doesn't know where to end the exec part

#

it's a bit tricky

waxen totem
#

just triple checked

digital steeple
#

wait, the * in the -name *.conf means all files? right? but I don't use -user root

fathom pendant
waxen totem
fathom pendant
#

* is a greedy bastard, it matches any and every character it can

digital steeple
#

but the command find / -type f -name *.conf -size +25k -size -28k -newermt 2020-03-03 -exec ls -al {} \; 2>/dev/null should be right

waxen totem
digital steeple
#

It worked but im still confused a but

waxen totem
#

so ask a question, don't just say you're confused, tell us what you're confused about

digital steeple
#

With the command that I used, it says the -exec ls -al {} \;, what is that used for?

fathom pendant
#

^

digital steeple
#

for some reason I don't get tha stuff.

waxen totem
#

you can also try ls -la on it's own to see what it does

digital steeple
#

But, then to find all files with the .bak extention, I would do the same exact command but without the -size filters

fathom pendant
#

if you do
man find
then search for -exec you can find what it's doing

digital steeple
#

what wwould I change?

fathom pendant
#

more than just the -size filters

waxen totem
#

to find the .bak files you oughta just use the flags you NEED, you have already identified that you don't need the size filters, what else don't you need?

digital steeple
#

the -user, oh, the -newermt

fathom pendant
#

yup and yup

#

there's a flag that specifies the name

digital steeple
#

so it would be `find / -type f -name *.bak -exec ls -al {} ; 2>/dev/null

waxen totem
#

; 👀

digital steeple
#

oh

#

typo

fathom pendant
digital steeple
#

well, i used ls -al and it worked

waxen totem
fathom pendant
#

i mean yeah

digital steeple
#

Now, one more, the xxd binary

fathom pendant
#

this one is by far the easiest

digital steeple
#

Clearly not for me, you are experianced

fathom pendant
#

don't overcomplicate it; there's a command at the top of the section

waxen totem
digital steeple
#

Still using the find command

fathom pendant
waxen totem
#

there's more than one command covered in the section you know

fathom pendant
#

as i said a handy command is given at the very top of the section

digital steeple
#

which, but I would not see that to find the xxd binary.

waxen totem
#

I probably use this command much more than find lmao

digital steeple
#

which

fathom pendant
#

man which if you're confused

digital steeple
#

ah

fathom pendant
#

but it tells you xxd is a binary aka a command

waxen totem
digital steeple
#

dear hanna, that took way too long

fathom pendant
waxen totem
#

Nice, please don't come back later with a question about curl kek

fathom pendant
#

don't reveal answers while the module isn't above t0; revealing answers is still against the rules

waxen totem
#

This is tier 0...

fathom pendant
waxen totem
#

I know... I'm foreshadowing

fathom pendant
#

got bored

digital steeple
#

So I did the find command to find stuff for .log. but now its asking how many packages are installed on targer system

fathom pendant
#

dpkg (common on debian distributions) or apt (a common package manager) will be your friend here

digital steeple
#

no, not which either

#

I would either do apt list or apt show

fathom pendant
#

well apt list might list all packages not just all installed packages

#

and i would be careful that the command doesn't print extra lines, those can be tricky

digital steeple
#

I can notice

fathom pendant
#

but def don't wanna count by hand, you'd be here till next teusday

digital steeple
#

would I do atp list installed or something like that

#

hehe, now to man apt

waxen totem
#

man apt ...

digital steeple
#

hehe

digital steeple
#

hmh

fathom pendant
#

@digital steeple i challenge you to go 10 minutes without rushing in here for help

#

gotta figure out how to unstuck yourself

#

this isn't just to be a dick

digital steeple
#

ah, thanks.

fathom pendant
#

employers, and coworkers, don't generally like people that have to ask for help every 5 minutes

#

we're trying to teach you the ways of searching yourself so you don't end up in the skiddy pool

digital steeple
#

I know, I have over 2500 lines of notes in obsidian with commands

fathom pendant
#

but do you actually know what those commands do?

#

or did you just copy because you saw it once

digital steeple
#

I have a small desc and a example, no, I wrote them all down

fathom pendant
#

for me i have a rough idea of what the commands i typically use do; as far as drilling into syntax i only really keep note of obscure syntax stuff

digital steeple
#

Ah

fathom pendant
#

like for instance @waxen totem bringing up -perm -4000 i noted it down because it's interesting because it means that if i find an executable file with that permission, that i can run, i can look for ways to break out of that command with GTFObins or some other CVE related thing