#modules

1 messages Β· Page 259 of 1

fathom pendant
#

this is definitely one I just googled and found answers for

#

one forum post i found particularly helpful also broke down the command

west canopy
#

or just bruteforce the answer manually πŸ˜‚

fathom pendant
#
for i in range(1, 100):
  print(f"trying {i}")
  input(i)
  print("cry")
#

(yes ik that's not how input() works)

west canopy
#

basically the intended way to solve it is with curl. And noticing that any reference to https://inlanefreight.com/whatever occcurs ||either within a src attribute (src='inlanefreight.com'/whatever) or an href attribute (href="inlanefreight.com/watever ). So basically it always occurs immediately after a single quote or double quote.So from there, we use tr to replace the ' and " with new line characters, and its much clearer to see. ||

#

its a pretty difficult question particularly if someone is truly brand new to linux

fathom pendant
#

well not just linux, HTML as well

#

because if you don't know how html src/href works... oof

west canopy
#

yea its a tough question for sure

fathom pendant
#

so while I may mostly disagree with it's inclusion, I can understand it's importance

west canopy
#

i havent tested it, but we could maybe right click -> view source code, copy/paste into ChatGPT and ask how many unique paths exist

fathom pendant
#

kek would be funny

uneven oracle
#

I see…
The hard part is knowing what question to ask…

west canopy
#

also , even being able to properly identify what the problem is , or the scope of the problem

fathom pendant
#

after nudging a bit, it gets the answer

west canopy
#

For example, i used to teach. And i had a student tell me his "virtual box wasnt detecting VM's". So i have him share his screen to show me. He has windows file explorer open, and he is double clickon on an emtpy directory. The directory happened to have the same name as a virtual machine he at one point had installed.

#

So the situation is, student is unable to recognize a directory in file explorer with size of 0kb

#

and him thinking its a virtualm machine

sharp cove
#

i wouldnt have the patience to handle that

west canopy
uneven oracle
#

β€œLEARN TO HACK”, they said… πŸ‘¨πŸ½β€πŸ’»

β€œIT’LL BE FUN”, they said… πŸ₯³

                  πŸ« πŸ˜΅β€πŸ’«πŸ€¬πŸ˜–
fathom pendant
#

@west canopy getting chatGPT to provide code on how to get the answer, seems to be a painful process in and of itself

#

it keeps getting me ||16 or 19|| results kek

west canopy
fathom pendant
west canopy
#

chatGPT has been running like dog sh*t for me lately though

fathom pendant
#

after asking it how many and nudging a bit, it got to the right answer

west canopy
#

today seems better

#

but last two weeks it would always crash

#

or take forever

fathom pendant
#

but asking it to provide a command to do so seems to be a struggle

sleek moss
#

hi guys is it worth getting sec+ after getting oscp or cpts?
\

west canopy
static moss
#

just realized this might be the wrong spot. ill move my question

cloud urchin
sharp cove
cloud urchin
sharp cove
#

CompTIA is more about broad knowledge rather than specializing

west canopy
static moss
# west canopy maybe an error in your fib.s file?

Copied the example straight from the lesson

global  _start

section .text
_start:
    xor rax, rax    ; initialize rax to 0
    xor rbx, rbx    ; initialize rbx to 0
    inc rbx         ; increment rbx to 1
loopFib:
    add rax, rbx    ; get the next number
    xchg rax, rbx   ; swap values
    cmp rbx, 10        ; do rbx - 10
    js loopFib        ; jump if result is <0
#

it still segfaulting. maybe i am missing a flag

west canopy
static moss
#

it gets a segfault even on the copied code. not sure why

#

i have ran this before i believe

quasi wave
#

hi just got back to HTB after a hectic week. how am I supposed to get the file.txt file with wget? I have the ip address of a server but its not giving it to me even when I specify the port

cloud urchin
#

we would need a lot more information. wget will just download whatever file you point the url argument to

west canopy
quasi wave
#
β”Œβ”€[us-academy-2]─[10.10.14.27]─[htb-ac-605555@htb-9yvrucwdzj]─[~]
└──╼ [β˜…]$ sudo ftp 10.129.201.55
Connected to 10.129.201.55.
220-FileZilla Server version 0.9.41 beta
220-written by Tim Kosse (Tim.Kosse@gmx.de)
220 Please visit http://sourceforge.net/projects/filezilla/
Name (10.129.201.55:root): 
331 Password required for root
Password:
530 Login or password incorrect!
Login failed.
Remote system type is UNIX.
ftp> ls
530 Please log in with USER and PASS first.
ftp: bind: Address already in use
ftp> dir
530 Please log in with USER and PASS first.
ftp> login
?Invalid command
ftp> user ^C
ftp> quit
221 Goodbye
β”Œβ”€[us-academy-2]─[10.10.14.27]─[htb-ac-605555@htb-9yvrucwdzj]─[~]
└──╼ [β˜…]$ sudo python3 -m pyftpdlib -i 10.129.201.55
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.9/dist-packages/pyftpdlib/__main__.py", line 122, in <module>
    main()
  File "/usr/local/lib/python3.9/dist-packages/pyftpdlib/__main__.py", line 112, in main
    ftpd = FTPServer((options.interface, options.port), FTPHandler)
  File "/usr/local/lib/python3.9/dist-packages/pyftpdlib/servers.py", line 118, in __init__
    self.bind_af_unspecified(address_or_socket)
  File "/usr/local/lib/python3.9/dist-packages/pyftpdlib/ioloop.py", line 1018, in bind_af_unspecified
    raise socket.error(err)
OSError: [Errno 99] Cannot assign requested address
β”Œβ”€[us-academy-2]─[10.10.14.27]─[htb-ac-605555@htb-9yvrucwdzj]─[~]
└──╼ [β˜…]$ sudo python3 -m pyftpdlib --port 21 -i 10.129.201.55
#

it won't let me log into IP

#

need to download file

static moss
cloud urchin
#

in ftp you'd just type 'get' or 'mget'

quasi wave
#

I'm on Windows file transfer methods in file transfers section. Its been a hectic few days since I have done HTB Academy challenges.

#

this is for question 1 of the section

west canopy
#

and then use it to analyze whats happening with fib

fathom pendant
#

wget http://ip/file

quasi wave
#

I did that

#

let me try again it didn't work first time

#

didn't work this time either

cloud urchin
#

you were trying to connect via FTP, if it's on the webroot of the server i'd imagine it's http

fathom pendant
#

^

cloud urchin
#

you can get better help if you provide the actual error you're getting beyond "it doesn't work"

fathom pendant
#

ftp might be open

quasi wave
#

β”Œβ”€[us-academy-2]─[10.10.14.27]─[htb-ac-605555@htb-9yvrucwdzj]─[~]
└──╼ [β˜…]$ wget http://10.129.201.55/file
--2024-05-26 02:49:30-- http://10.129.201.55/file
Connecting to 10.129.201.55:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-05-26 02:49:30 ERROR 404: Not Found.

β”Œβ”€[us-academy-2]─[10.10.14.27]─[htb-ac-605555@htb-9yvrucwdzj]─[~]
└──╼ [β˜…]$ wget https://10.129.201.55/file
--2024-05-26 02:50:01-- https://10.129.201.55/file
Connecting to 10.129.201.55:443... connected.
ERROR: The certificate of β€˜10.129.201.55’ is not trusted.
ERROR: The certificate of β€˜10.129.201.55’ doesn't have a known issuer.
ERROR: The certificate of β€˜10.129.201.55’ has expired.
The certificate has expired
The certificate's owner does not match hostname β€˜10.129.201.55’

fathom pendant
#

brother

#

file is a placeholder

cloud urchin
#

do you know what a 404 error is?

quasi wave
#

hold on

#

not found error

fathom pendant
#

replace <file> with the actual file you want to download

cloud urchin
#

correct, so it can't find the file 'file'

quasi wave
#

wait I thought it was file.txt

cloud urchin
#

so the command is actually working, and the server says the file doesn't exist

fathom pendant
#

no

quasi wave
#

I misread its flag.txt

cloud urchin
#

well that's not what you showed us with your command

fathom pendant
#

and even still

#

you would need to specify the extension

#

for all you know there could be file.png, file.jpeg, file.webp

#

the server doesn't know what file you want (unless the file itself doesn't have an extension)

quasi wave
#

it says its a text file but when I do this it won't work either:

β”Œβ”€[us-academy-2]─[10.10.14.27]─[htb-ac-605555@htb-9yvrucwdzj]─[~]
└──╼ [β˜…]$ wget https://10.129.201.55/flag.txt
--2024-05-26 02:51:32--  https://10.129.201.55/flag.txt
Connecting to 10.129.201.55:443... connected.
ERROR: The certificate of β€˜10.129.201.55’ is not trusted.
ERROR: The certificate of β€˜10.129.201.55’ doesn't have a known issuer.
ERROR: The certificate of β€˜10.129.201.55’ has expired.
The certificate has expired
The certificate's owner does not match hostname β€˜10.129.201.55’
quasi wave
fathom pendant
#

πŸ‘

#

now read the instructions above q2 carefully

quasi wave
#

ok got it

#

agreed. had kind of a brain fart because spent entire day at this hacker conerence

fathom pendant
#

xfreerdp has the /drive: option, alongside smbserver being an option

#

in other words many ways to perform the action

cloud urchin
#

real hackers transfer via netcat

fathom pendant
#

i mean

#

that IS an option

west canopy
#

my favorite: Convert the file to a base64 encoded environment variable in powershell , then use an HTTP POST to blast it like a cannonball to a netcat listener . Then decode.

fathom pendant
#

plenty of ways to crack an egg

cloud urchin
#

haha. my favorite is putting the file on a usb stick and moving it over

fathom pendant
#

brb driving out to the datacenter to plug in my USB

west canopy
#

the problem is depending on the size of the file , its all stored in memory so good chance u will just crash your powershell instance

static moss
#

magic wormhole

cloud urchin
fathom pendant
#

porque why

west canopy
#

ahh right

fathom pendant
#

manually frame and segment it

#

true Network Engineer

west canopy
#

xfreerdp /drive: is the the cleanest though

shut quest
#

Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway.

west canopy
sharp cove
#

i mean...if i could, ya. probably...

fathom pendant
#

with the advent of mobile printers

junior helm
#

I feel like spawn targets are getting harder lately

warm portal
#

AD enumeration and attacks have been ridiculous to spawn today

sharp cove
cloud urchin
#

the AD modules always take longer because it's a bigger environment to boot up

warm portal
#

except 30% of the time it's supposed to give you a linux box to ssh to, somehow a windows box appears

junior helm
sharp cove
#

the password attacks module was incredibly annoying because i kept spinning my wheels over targets that were unsolvable. i really wish there was a verification function you could do from the UI to check the target functionality before you just waste your time

cloud urchin
#

the password attack module was fun

shut quest
heavy marsh
#

The module doesn't explain the end of this command, what is the {} ; for?

#

It's the Linux Privesc Capabilites Section

cloud urchin
#

{} is a placeholder that gets replaced by each file found from the find command

warm portal
#

it acts as a place holder for the -exec to run getcap on each file, the ; is to ensure the shell terminates the commands correctly

heavy marsh
#

Okay, thank you

calm abyss
#

hello i am doing LINUX PRIVILEGE ESCALATION Logrotate but the logrotate.conf file is missing on the server.

htb-student@ubuntu:~$ cat /etc/logrotate.conf
cat: /etc/logrotate.conf: No such file or directory

#

anybody dit this module ?

heavy marsh
#

In the Cron Job Abuse section of Linux Privesc, what is this command even doing?!?!

#

They don't really explain it!

calm abyss
calm abyss
# heavy marsh In the Cron Job Abuse section of Linux Privesc, what is this command even doing?...

find /: Start searching from the root directory.
-path /proc -prune -o: Exclude the /proc directory from the search. The -prune option is used to skip the specified directory, and the -o (or) ensures the search continues for other conditions.
-type f: Only find files (not directories).
-perm -o+w: Look for files that have the world-writable permission set.
2>/dev/null: Redirect any error messages (such as permission denied errors) to /dev/null to avoid cluttering the output.

calm abyss
calm abyss
calm abyss
heavy marsh
heavy marsh
fluid quartz
#

is there any native way to execute shellcode from powershell?

cloud urchin
#

yes

fluid quartz
#

how do you do it?

cloud urchin
#

you'd need to write a script for it

#

or just use powersploit's cmdlet

fluid quartz
#

whats the cmdlet

cloud urchin
#

Invoke-Shellcode

junior helm
#

In Module NETWORK ENUMERATION WITH NMAP, Firewall and IDS/IPS Evasion - Easy Lab, is it referring to SMB service? Because I tried, but it didn't work as I thought

#

I tried nmap 10.129.142.149 --script smb-os-discovery.nse -sV, and got the result:

muted kindle
junior helm
sudden salmon
#

ok guys how do u do this?

fluid quartz
#

Windows Evasion Module - is my code correct? keep getting errors when running

#

the shellcode works, tested it with a shellcode loader

#

the reason i ask is that i see these SNIP headings, does that mean i need to include the actual encrypted payload in those locations? (I assumed it meant copy from 'here' to 'here')

heavy marsh
#

The solution in the Logrotate privesc section makes no sense! Nothing to do with the module. Why are we editing an access.log file, I thought we were supposed to make our own payload?

#

Should be a reverse shell too. What is going on here?!

#

There is no config file, how is this supposed to even work?

proud pine
heavy marsh
#

Tried to dm, wouldn't let me

acoustic owl
heavy marsh
#

I've reset the machine multiple times and for some reason my erratum post is not going through

acoustic owl
heavy marsh
#

It shows rotation, but I don't get the flag in my home directory

#

But no flag where it's supposed to be

#

For some reason it's creating a "backups2" folder temporarily instead of overwriting the file in the "backups" folder.

acoustic owl
#

That's what logrotate does. However, your payload is probably not correct.

heavy marsh
#

I'm telling you there's an issue

#

Are you deleting my erratum post?

#

I would like to get this addressed

acoustic owl
autumn pilot
#

Reach out to support if you suspect that there is an issue with the target

autumn pilot
#

The conf file you are looking for is not necessary

compact patrolBOT
heavy marsh
#

So why would the VERBATIM instructions from the solution not work?!

heavy marsh
autumn pilot
#

Again, if you believe there is something wrong with the target you can reach out to support

#

The exercise is solvable without knowing the contents of the configuration file

heavy marsh
#

I have reset the machine twice just to be sure and started from scratch

autumn pilot
#

If that's the case again reach out to support

acoustic owl
#

The task intentionally does not make the config file available. With the knowledge from the module on how Logrotate works, you will be able to find out for yourself how Logrotate is configured on the system

autumn pilot
#

To trigger the log rotation you can also SSH into the target in a separate terminal window/tab

heavy marsh
#

Or the section contents

autumn pilot
#

And this doesn't mean you cannot try that

heavy marsh
#

I knew something was off

lavish mango
#

I'm going to take the above interaction as a case study in how not to ask for support because bleh it must suck being written to like that all day every day. I apologize for when I've written this way myself. πŸ€¦β€β™€οΈ

fleet pawn
#

anyone knows about apparmor ? i created the simplest profile but im getting a parser error

high walrus
#

hello

oak girder
#

I tried, but it didn't seem to work

acoustic owl
oak girder
#

Thanks ( πŸ™ 'n *), is the PSedition

muted jacinth
#

hey guys, if anyone here has completed the secure coding 101 module i would gladly accept some help for the skill assessment question 2, i'm really wrapping my head around this one, any help would be appreciated

iron holly
#

having trouble with a target not being up. have refreshed target 3 times nmap still says target is not up

iron holly
#

I have to use -Pn to get a scan

arctic sentinel
#

Hello everyone! greetings from Belgium

uncut ocean
#

hlo i have a question in The Live Engagement if anyone can solve my dought

arctic sentinel
#

anyone working in the linux priv esc? I

fringe urchin
uncut ocean
#

Not specific but one thing like when i scan the ips i find 4 ip out of which 3 ips are of host but the other one is for what ?

fringe urchin
#

Again which module? There many live engagments?

uncut ocean
#

Shells and Payloads -----> CPTS module

fringe urchin
#

Shells n payload right.
3 machines with already given IP are the machines you attack. The one target you spawn is used as a footprint machine from which you attack other machines

uncut ocean
#

ya but when i try to gain rev shell by upload functionality adn the ip which i am using is the foothold ip but i cant get the shelll

#

here i want to know about the highlited ip

#

when i do ifconfig this ip is also there like i cant understand this

next bronze
#

dual interface, one is the 10.x.x.x network, the other is 172.x.x.x network

#

in the live engagement section

Keep in mind that the Foothold host has access to the Internal inlanefreight network (172.16.1.0/23 network) so you may want to pay careful attention to the IP address you pick when starting your listeners.

uncut ocean
#

yes and 1 also for docker

fringe urchin
uncut ocean
#

yes i gotit like i am confused in those two ip's

uncut ocean
fringe urchin
uncut ocean
#

gotit and other thing like the rdp session is very unstable is there any way to perform all that in my machine ? like using port forwarding?

fringe urchin
#

If its really unstable, some other VPN regions could perform better

uncut ocean
uncut ocean
fringe urchin
uncut ocean
uncut ocean
#

In the host 1 challenge i simply created a shell.war and put the 172.x.x.5 ip and upload it and deploy but i am not getting a shell

#

any reason??

fringe urchin
fathom pendant
uncut ocean
fringe urchin
uncut ocean
uncut ocean
fathom pendant
#

visit the shell in the webroot

#

click on it

#

and it should connect

fringe urchin
uncut ocean
#

a god !

fringe urchin
#

Web server wont load stuff without anyone clicking on it

fathom pendant
#

^

#

like a php-shell

fringe urchin
#

^

uncut ocean
#

Thank you sadglas

fathom pendant
#

also don't forget to check the desktop of the jump host for the credentials needed

#

(for other parts as well)

uncut ocean
#

okay

marble island
#

Hello i was doing the Pivoting, Tunneling, and Port Forwarding skill assessment and got stuck in part where we had to priv-esc on a windows host, i know that because i got stuck and checked the walkthrough and it used many windows priv-esc techniques. The module did not say anything about windows priv-esc, nor i had done any windows priv esc modules before, im doing the CPTS penetrartion tester path in the reccomended order, but im missin out on something , what do i do? Do some windows priv-esc module before continuing this one?

uncut ocean
#

for now run winpeas

dim wolf
marble island
#

Will do, kinda rushed this one

fathom pendant
#

what's this?

undone rain
#

music app

marble island
#

sus

fathom pendant
#

very sus

dim wolf
#

GONE. obliterated.

undone rain
#

?

fathom pendant
#
  1. it's irrelevant to this channel 2) sus random link
#

hence why a mod deleted it

#

i suggest also reading #rules and #welcome to see how to access more of this server, and what this server is about

signal bane
#

is a nmap supposed to take over 5min?

#

taking so long

fathom pendant
#

generally no

signal bane
#

oh did i do something wrong?

fathom pendant
#

especially since it's crawling

#

it's likely a network thing; try adding -sT in your command as it forces it to do the TCP scan

#

instead of a SYN scan

signal bane
#

ahh okay got it thank you πŸ‘

fathom pendant
#

or alternatively -T4 to have it be more aggressive

#

this is due to timeouts and nmap automatically adjusting timeouts and retries when not specified

signal bane
#

yup just added -T4 alot quicker now

#

appericate the help

stable bone
#

Challenge for you guys: split the network 10.200.20.0/27 into 4 subnets and submit the network address of the 3rd and 2nd subnet as the answer

fathom pendant
stable bone
fathom pendant
#

BECAUSE I WAS JUST HELPING YOU WITH IT YESTERDAY??? HELLOOOO???

stable bone
#

I AM STILL STUCK ON THIS THING

stable bone
fathom pendant
#

no.. it's not

stable bone
#

yahuh

fathom pendant
#

LMAO because I even went through the effort of doing it myself

#

and offering you a secondary challenge

#

after you finish this

stable bone
fathom pendant
#

you gooner

#

alright

stable bone
#

you lil silly goose you

storm elk
#

You tell em MarciePedia

fathom pendant
#

so, we know that cidr notation is a representation of bits from left --> right correct?

stable bone
fathom pendant
#

that's a spider dawg

stable bone
#

yeah

storm elk
fathom pendant
#

anyway

stable bone
fathom pendant
#

ANYWAY

stable bone
#

RAWR

fathom pendant
#

to divide a number by four you are dividing by 2^2 which would be 2 bits; you just add that many to your cidr

stable bone
#

yeah so /27 would be 3 bits cuz 4 bits would just make it /28

fathom pendant
#

if you're task with adding x subnets you do the nearest power of 2, even if that means going over

fathom pendant
#

27 + 2 = 28?

stable bone
#

nooo

fathom pendant
#

break down how you got /28?

#

because that's just splitting it in half

shut quest
fathom pendant
#

every division by 2 you move to the right (or add one bit to the mask)

stable bone
#

28/2 = 14

fathom pendant
#

WRONG

#

take a step back for a moment

#

we aren't dividing any pure numbers here

#

/27 is a representation of the subnet

#

if we are splitting it in 4 we need to add 2 bits (2^2) = 4

stable bone
#

yeah so 8 bits in /27, right?

fathom pendant
#

?

#

no

#

one bit to the right is 2^1, two is 2^2...

stable bone
#

3 is 2^3

fathom pendant
#

/28 would be if we were only dividing by 2

fathom pendant
#

since we ONLY need to dived by 4; we only need to move two bits to the right

#

and add that many to cidr

stable bone
#

OHHH

#

so it would be /27 + 4

fathom pendant
#

each WRONG

#

we are adding the POWER

#

not the result

uncut ocean
fathom pendant
#

yes but that doesn't generally answer your question

#

i'm teaching you the shortcut, then explaining how you arrive at the answer

uncut ocean
stable bone
#

so the range is 0-30

fathom pendant
uncut ocean
fathom pendant
#

you can't assign the network address

#

but anyway

#

there is some actual math to arrive at some answers too btw

stable bone
#

pfft math aint got nothin on me

fathom pendant
#
Borrowed bits
When you add bits to a classful mask, the bits added are referred to as β€œborrowed bits” the number of borrowed bits used determines how many subnets are created and the number of usable hosts per subnet
Calculating the number of created Subnets
Number of created subnets = 2^s; s is the number of borrowed bits
192.168.1.0 /28
2^4 = 16
Calculating Number of available hosts
2^h - 2
192.168.1.0 /28 β†’ 32-28 = 4 β†’ 2^4 - 2 = 14

Meaning each of the 16 subnets has 14 usable IPs
172.20.0.0 /16, 47 subnets with max hosts/subnet β†’ /22 ; 32 - 22 = 10; 2^10 - 2 = 1022
172.20.0.0 /16, 100 hosts per subnet, max # of subnets 128 is closest = 2^7, 32 -7 = 25 172.20.0.0 /25 (255.255.255.128)

from my networking class

signal bane
#

yeah sometimes the questions are lowkey hard

fathom pendant
#

the section shows a bunch of different ways to calculate

#

Β―_(ツ)_/Β―

stable bone
fathom pendant
#

again i'm doing it a lot simpler

#

and for ease of simplicity HTB is starting you off with a /27 and asking to divide it by 4

signal bane
dim wolf
#

htb rank

#

gotta play on the main platform

stable bone
signal bane
#

ahahhaha

stable bone
#

like comp?

fathom pendant
#

not asking you how you'd split into max subnets and how many hosts per subnet
or needing x number of hosts with N number of subnets

fathom pendant
#

there is a seasonal element as well, just no time for it rn

#

as you see, i'm in uni and my uni studies are taking prio atm

#

2 courses per term until i graduate

#

because 1 is too boring for me

signal bane
#

your doing 2 courses????

stable bone
#

You're*

signal bane
#

thank you jetpacked

stable bone
#

np broski

dim wolf
#

i had 4 last sem and even that is not a lot

#

2 courses damn

fathom pendant
#

it's a good/bad thing

signal bane
#

wtf im just doing a cybersecurity degree

#

they teach none of this shit aswell htb coming in clutch

fathom pendant
#

at one point I don't have to show up to a class, but at the other it means I don't have a schedule

stable bone
#

wtf im just here cuz im bored and wanna do sum

fathom pendant
#

as you saw they had a /16 example subnet to start with

signal bane
#

yeah fair im first year so they'll probably do more of that in 2nd year

#

rn it was mainly just comp sci

fathom pendant
#

Β―_(ツ)_/Β―

#

my courses are also 5 weeks at a time

stable bone
fathom pendant
signal bane
#

fr he does it quick too

dim wolf
#

/shrug you mean this?

signal bane
#

/shrug

dim wolf
#

WHAT they removed it

fathom pendant
#

/shrug

stable bone
#

(β•―Β°β–‘Β°)β•―οΈ΅ ┻━┻

dim wolf
#

try again. Β―_(ツ)_/Β―

stable bone
#

Β―_(ツ)_/Β―

fathom pendant
#

anywhey

signal bane
#

Β―_(ツ)_/Β―

fathom pendant
#

β”¬β”€β”¬γƒŽ( ΒΊ _ ΒΊγƒŽ)

stable bone
#

/cry

stable bone
#

AYO I THOUGHT WE DID AWAY WITH THAT YEARS AGO

fathom pendant
#

the subnet won't calculate itself

#

also

stable bone
#

alsooo...

fathom pendant
#

to detract from the bit a tiny amount

#

we know that the range of /27 is 32 yes? (subtract two for usable hosts)

stable bone
#

yeah

fathom pendant
#

divide that by 4 to get what your range should be for the subnet you need to divide into

stable bone
#

the range is 1-30

fathom pendant
#

well

#

the step range (or block size) is 32

#

0 would be the network, 31 would be the broadcast

stable bone
#

30/4 = 7.5

fathom pendant
#

wrong

#

32/4

stable bone
fathom pendant
#

you need to use the whole block size

#

or the whole range

#

ignore host amount

stable bone
#

ok ok

#

so now that we found the bits

fathom pendant
#

so you always start at 0

#

and count up by your block size / range

stable bone
#

and 31 will always be the broadcast address right?

stable bone
#

or the last number in the range

fathom pendant
#

the broadcast is always the last number before the next block

#

aka last number in the ragne

stable bone
#

so 33

#

32

fathom pendant
#

extremely loud incorrect buzzer

#

remember you start at 0

stable bone
fathom pendant
#

so in the case of /27

#

each network starts every 32 decimal numbers

#

which is its block size (yes, this is the technical term for that range)

burnt owl
#

Hey anybody having trouble RDPing into the machine for Windows privilege escalation > Windows Server.

fathom pendant
burnt owl
#

Yeah I triple checked my vpn, I check what this remmina tool is

stable bone
fathom pendant
#

the technical block size for those is 256 (2^8) because that's how many host bits (32-24) we have

stable bone
#

oh and then subtract 1

fathom pendant
#

yep

stable bone
#

255

fathom pendant
#

even though technically you start at 0

stable bone
#

question tho: why do we subtract 1?

fathom pendant
#

because you're accounting for starting at 0

stable bone
#

so why not subtract 0

fathom pendant
#

... read that again but slowly

stable bone
#

oh wait

fathom pendant
#

as computer nerds we start counting at 0

#

indexes start at 0

#

stuff like that

dim wolf
#

0-9, 0-F, 0-1

fathom pendant
#

after all 0 is important still

#

as it represents an "Off" signal

dim wolf
#

think of 0 as an item in a set

fathom pendant
#

and binary we don't do 1-2 we do 0-1

dim wolf
#

if you have a set of numbers from 0 to 255, you have 256 numbers total

stable bone
#

so the first subnet would be 255.255.255.224?

lavish mango
#

The cutest amount in computing is the nibble.

fathom pendant
#

it's just determining what network they're in

#

are they in the first, second, third network

stable bone
#

well idk

fathom pendant
#

which is found by simply looking at the last host

sterile epoch
#

Hi I have to find the SAM and SYSTEM hive from a restic backup and I only know how to extract dumps from reg.exe which dumps reg keys from current memory

fathom pendant
#

for instance in /27 the host ending in .33 would be in the second network

sterile epoch
#

where should I look for it in system32/config?

fathom pendant
#

because 0-31 is the first network

fathom pendant
#

does the question tell you where to find it?

fringe urchin
sterile epoch
#

windows priv escalation pillaging

#

I am trying to doing the last task

#

I found the backup and restored the snapshot for C:\Windows\System32\config

fathom pendant
#

and where did say it restored it to

sterile epoch
#

C:\Restore

fathom pendant
#

so in C:\restore are there relevant files?

sterile epoch
#

I only restored the latest snapshot for C:\Windows\System32\config and I cannot find any SAM or SYSTEM folder

#

within config directory

fathom pendant
#

well then maybe that snapshot doesn't have the info you're looking for

stable bone
#

yeah what he said

sterile epoch
#

oh alright I will look for it in others thanks

stable bone
#

im finding the IPv4, right?

#

thats what a subnet is

#

would it be a 255.255.255.x format or a 198.168.x.x format?

fathom pendant
#

so in the case of the networking question

#

10.200.20.0 is net1
10.200.20.32 is net2
10.200.20.64 is net3 ... repeat until you can't add past 255

stable bone
#

i thought net 2 would end in .33?

fathom pendant
#

no

#

think, 0 is start, 31 is end

#

so we tick up to the next network

fathom pendant
#

it's IN the second network

#

i didn't say it WAS the second network

stable bone
#

ierbvouregbv3rfgb3e

fathom pendant
#

.33 --> .62 would be hosts in the second network of a /27

stable bone
#

so it would be 198.168.62.33?

fathom pendant
#

yep or whatever prefix was before it

stable bone
#

INCORRECT ANSWER

fathom pendant
#

because the answer is in relation to two things

fathom pendant
#

dividing the subnet into 4; and 10.200.20.0

stable bone
#

ive been dying to do that to you

fathom pendant
#

so the answer is expecting 10.200.20.x

#

again they want you to divide /27 into 4 subnets

#

meaning you gotta shrink a block size of 32 --> a block size of 8

stable bone
#

i thought the subnet was the IPv4 address, no?

fathom pendant
#

think of it this way; divide the /27 into 4 separate networks

stable bone
#

yes

fathom pendant
#

(aka networks in networks, or subnet)

#

the MASK is the same

#

(the 255.255.255.x)

#

but each subnet will be under different things

#

let's circle back to my example
10.200.0.0/24
10.200.1.0/24
10.200.2.0/24

#

say we wanted to split 10.200.0.0/24 into two networks

#

or two subnets

stable bone
#

where tf are you getting /24 from??

fathom pendant
#

because in this example i'm using a /24 network

stable bone
#

the thingy says /27

fathom pendant
#

ok

#

then let's jump straight into the work

#

10.200.20.0/27 --> 4 subnets

rustic sage
#

It's an extension for connecting to I2P network and changing browser fingerprint

fathom pendant
#

we know we have 5 host bits (2^5) which gives us a size of 32

#

but we need to get a block size of 8, yes?

stable bone
#

yeah so just divide 32/8

fathom pendant
#

so how many host bits would 8 need

stable bone
fathom pendant
#

no

#

close

stable bone
#

wait ik this

#

24

fathom pendant
#

8 = 2^x

#

2^0 = 1, 2^1 =2...

#

(btw i understand where you're confusion is from

stable bone
#

2^2 = 4

#

2^3 = 8

fathom pendant
#

bingo

stable bone
#

LETS GOOO

#

SUCK IT NERDS

fathom pendant
#

so what would the last octet look like in the mask, remember the 0s represent the number of host bits

stable bone
#

the last octet would be the one closest to 27, right?

fathom pendant
#

correct
11100000 is /27

#

so what would it need to look like to have 3 host bits

stable bone
#

so the last octet is /32

fathom pendant
#

wrong

stable bone
#

/26

fathom pendant
#

now you're going backwards

#

write it out

#

11100000 gives us 5 0s or 5 host bits (2^5)

burnt owl
fathom pendant
#

so what do you need to do to make it look like 3 host bits?

stable bone
#

2^3

burnt owl
#

It's an old machine so it doesn't like them fancy TLS connections

fathom pendant
#

well that's how many host bits

fathom pendant
#

but the question is what does the binary mask look like since we need to keep 3 bits "open" or "off"

languid fjord
stable bone
#

idky that pinged that

languid fjord
#

All good lol

fathom pendant
#

if 11100000 keeps 5 bits Open/off what binary octet keeps 3 bits Open/off

stable bone
#

oh oh ik this one min

#

check this out marcie you not read for this

#

1111 1111

#

cuz its the 3rd octet

fathom pendant
#

how does that keep any bits open?

#

nope we are ONLY dealing with the last octet

#

since that's the only one we can manipulate

#

1111 1111 is all closed/on

stable bone
#

3 bits is the 3rd octet??

fathom pendant
#

no

#

an octet simply refers to 8 bits, remember

fathom pendant
#

11100000 is the last octet in /27

#

we can only manipulate this one

stable bone
#

so we have to manipulate it to /24

fathom pendant
#

no

stable bone
#

/32

fathom pendant
#

nope

#

again slow down

#

let's think of this in binary real quick, and my earlier trick will make sense

stable bone
#

this is manipulating me worse than my ex goddamn

fathom pendant
#

so

#

we agree that
11100000 keeps 5 bits open, correct?

stable bone
#

idfk wdym by open

fathom pendant
#

off

stable bone
#

off for what?

fathom pendant
#

they represent the hosts

#

i.e. we can assign hosts in that range

stable bone
#

you cant assign hosts if the binary is off?

fathom pendant
#

you can't assign hosts if the mask has those bits on

stable bone
#

so you cant assign hosts if the binary is open?

fathom pendant
#

you can't assing, for instance, 10.300.20.3 to the 10.200.20.0 networks

fathom pendant
#

2^5 = 32 yes?

stable bone
#

yeah

fathom pendant
#

we have 5 0s

#

in 11100000

#

if you were to add those 0s together (pretending they were all 1s, so 11111) you get...

stable bone
#

0

fathom pendant
#

...

stable bone
#

0+0+0+0+0 = 0

fathom pendant
#

ok

#

read my statement again

#

pretending they were all 1s

stable bone
#

you get 5

fathom pendant
#

in binary?

stable bone
#

...yesss...?

fathom pendant
#

11111 is 5 in binary?

stable bone
#

yes

fathom pendant
#

?

stable bone
#

no

#

5 in binary is 11111

fathom pendant
#

that doesn't make it more correct

#

5 in binary is 101

stable bone
#

HOW TF

fathom pendant
#

2^0 + 2^1 + 2^2 + 2^3 +2^4

stable bone
#

OH

#

HOLY SHI

fathom pendant
#

though you would actually read it left to right as
2^4 + 2^3 + 2^2 + 2^1 + 2^0

fringe urchin
#

What is going on in herepepecoffee

fathom pendant
#

again create a table

#

2^7 --> 2^0; their decimal representations underneath; then the third line would be for 1s/0s

stable bone
burnt owl
fathom pendant
#

it feels like you need a better visual representation

fathom pendant
#

since last night

burnt owl
#

You where going on about this yesterday

fathom pendant
#

but anyway

stable bone
#

thats still less than 24 hours

burnt owl
#

I slept so a day has passed

stable bone
#

diff time zones anyways

burnt owl
#

Well how you calculate subnets is also not how that works

stable bone
#

no shit why you think im getting help captain obvious

burnt owl
#

David Bombal has a good video on it. Used his stuff a lot when I got my CCNA

fathom pendant
stable bone
burnt owl
#

I don't really enjoy the networking youtubers it always feels like they dance around the topic.

fathom pendant
#

Β―_(ツ)_/Β―

stable bone
#

(β•―Β°β–‘Β°)β•―οΈ΅ ┻━┻

fathom pendant
# fathom pendant

@stable bone create this table, make copies of it whenever you need to calculate

stable bone
#

so to find the binary just add each one up to the number

#

like the binary for 6 would be

#

2^0 + 2^1 + 2^2 + 2^3 + 2^4 + 2^5 = 63

fathom pendant
#

incorrect

#

break down 6 into what you'd add in this chart

#

also handy notes

stable bone
#

ohhh the binary for 6 is just five zeroes

#

00000

fathom pendant
#

is number >= my current number in the chart? yes? it gets a 1;
subtract that value from my current, continue until 0

#

no

#

00000 is 0

#

so is 6 >= 4?

stable bone
#

yes it is

fathom pendant
#

so, put a 1 where the 4 in binary would be

#

now we subtract, 6-4 = 2

#

is 2>= 2

stable bone
#

10000

stable bone
#

not 1000

#

10000

fathom pendant
#

wait

#

no i was wrong again

#

100

fathom pendant
#

we will iteratively go back through this until true

stable bone
#

yk theres ppl reading this chat losing braincells

fathom pendant
#

remember any odd number will end in 1

#

that's at least an easy one

#

but again; refer to the chart

#

and these steps
Is my number >= where I am in the chart? yes - 1 no - 0

dim wolf
#

the path to certification is lined with occasional brainrot

fathom pendant
#

subtract whatever value you just put in the table from your number

#

repeat until number = 0

fathom pendant
#

6 > = 4, 1 in 4 spot; subtract 4 from 6 --> 2; 2>=2 : true, 1 in 2 spot; subtract 2 from 2 --> 0

#

is my number >= where I am on the table is the important bit here

#

you basically said 6 >= 8 with 1000 which is where you went wrong

#

remember bits are a series of adding powers of 2

#

from highest --> lowest

#

for n number of bits your first bit (the one all the way on the left) will always be 2^(n-1) since we go all the way down to 1 (2^0)

#

since we are dealing with computers and octets

#

our last bit in any octet (the one to the far left) is 2^7

stable bone
#

just gonna ss all this rq...

fathom pendant
#

we get 255 because (2^8) - 1 is 255

#

it's still 256 numbers because the range is 0-255

stable bone
#

holy shit i think it just clicked maybe

rustic sage
#

Linux Priv Esc Skills Assessment

  • flag4 . I know || tomcat || is running and I can || visit the webserver on port 8080 ||. I tried bruteforcing, going through /var/log, checking crons, checking the wp-config.php file I don't have access to, scripts, generic config files, but I still can't find the creds (I'm assuming I have to find them b/c bruteforcing is not working). I'd greatly appreciate any help.
#

nvm finally found it

stable bone
#

oh yeah i was just about to help you too

#

you just have to check the thingy but make sure the thingy next to the thingy has been checked

rustic sage
#

appreciate it

#

real

stable bone
#

see chat thats a real g

#

ong gngstashit

fathom pendant
stable bone
fathom pendant
#

:(

stable bone
#

NetworkChuck

rustic sage
#

gotta do Windoows Priv Esc P2 now...

bold sinew
#

Is there an equivilent to shh2john for .docx files?

fathom pendant
#

i believe it's office2john or docx2john

stable bone
#

oh no way i dont believe it

fathom pendant
#

*python2.7 i believe

stable bone
#

does he believe it tho chat

bold sinew
#

Its real (REAL)

#

ty

fathom pendant
#

i mean you can do find / -name *2john 2> /dev/null

fathom pendant
#

or if you have locate installed and updated, locate *2john though sometimes it can miss files

stable bone
#

marcie are you a dude

bold sinew
#

Ticket closed, not an IT Support Issue

fathom pendant
#

I am an entity

stable bone
#

so a woman? cuz we all know they dont exist

rustic sage
#

just got 500 cubes what T3 module should I buy?

stable bone
fathom pendant
#

whatever one interests you

rustic sage
#

fair enough thx

fathom pendant
#

a variety of options Β―_(ツ)_/Β―

stable bone
#

i have 70 cubes 😎

#

im goated

dim wolf
#

i still need to spend my 800+ cubes

stable bone
#

thats it?

#

i have 70

dim wolf
#

it's not like i'm buying cubes

fathom pendant
#

pika_sip i had some cubes before I won the silv annual

dim wolf
#

complete module free cubes

fathom pendant
#

like ~1k

dim wolf
#

from referrals?

stable bone
#

i can get more cubes if i just get past this subnetting but i want to give up

dim wolf
#

it's that fucking vercel.app link again

stable bone
#

<@&861185840277487616>

fathom pendant
#

<@&861185840277487616>

dim wolf
#

<@&861185840277487616>

fathom pendant
#

fuckin nonce

stable bone
#

yh you tell em marcie poo

rustic sage
#

<@&861185840277487616>

fathom pendant
fathom pendant
fringe urchin
stable bone
#

it wont let me do a second g

signal bane
#

the question is one of the services contains a flag? im unsure what it means by flag if anyone knows

dim wolf
#

the dude is on intro to networking i dont think he can help you

signal bane
#

ah shit

stable bone
stable bone
dim wolf
#

delete this pic

stable bone
signal bane
#

what does a flag mean am i looking for a physical flag emoji or

dim wolf
#

because it contains the answers to the section

signal bane
#

🚩 like that?

stable bone
dim wolf
signal bane
#

ohhhh thats helpful thanku

dim wolf
stable bone
#

i was excited bro

signal bane
#

w

fathom pendant
#

another thing is the text says Nmap might not be able to gather all the information

#

maybe manually connecting to a port will reveal the answer

#

maybe the one with the least info you have

signal bane
#

ahhh okay

#

you should be promoted to moderator fr

fathom pendant
#

but I see it in your screenshot, and you'll see it as well once you connect

fathom pendant
signal bane
tacit stump
#

im seriously stuck with the wordpress hacking -skills assesment i can't get a shell uploaded to /home/erika directory

fathom pendant
#

that's revealing the answer

#

also copy/paste HTB{..}

signal bane
#

ah shit ill delete it

fathom pendant
#

220 is the status code

signal bane
#

ohhh

#

appericate it

tacit stump
#

i think im gonna give up on the wordpress hacking module and continue with nmap wordpress made me waste alot of hours

fathom pendant
# signal bane appericate it

A 220 code is sent in response to a new user connecting to the FTP server to indicate that the server is ready for the new client.

signal bane
#

ah right thats strange ive been connected to that linux instance for awhile

fathom pendant
#

it can take a bit for it to respond

signal bane
#

got it πŸ‘

signal bane
fathom pendant
#

with the second part being "to indicate that the server is ready for the new client"

#

so you're waiting for it to tell you "ok, i'm ready for commands"

signal bane
#

ohh rite okay

tacit stump
#

@signal bane exactly happy you understand πŸ™‚

stable bone
#

new life goal chat: create a dope ass video game with jets that go pew pew kapow boom

exotic lion
#

Extract and scrutinize the memory content of the suspicious PowerShell process which corresponds to PID 6744. Determine which tool from the PowerSploit repository (accessible at https://github.com/PowerShellMafia/PowerSploit) has been utilized within the process, and enter its name as your answer.

Guys I need help with this

cedar void
#

I don't know why my burp suite tool isn't intercepting the CHANGES I made with the html text using DEV TOOLS in firefox(but its only capturing the original html text before I made the html changes in DEV TOOLS)

fathom pendant
# cedar void

the "click for a chance to win a flag!" is the last step

#

you don't need to intercept any more after this

#

just keep clicking until the flag appears

#

it really is about getting lucky

fierce mason
#

is the exploit in the skill assessment for command injection supposed to be a cve

fathom pendant
#

also changes in dev tools aren't persistent

#

and will only be client-side and don't require any interception

honest gyro
#

Good evening everyone I’m stuck at command injection β€”>skills assessment I found the vulnerable parameter I found the working operator but I can’t read the flag
I tried using $[PATH:0:1] and tried to encode with base64 and I tried using use ' but it always show me Malicious request denied!

any help?
EDIT:SOLVED
anyone stuck there fell free to dm

exotic lion
fathom pendant
#

that way we don't tell you to do something you already did

#

as it stands it looks pretty straight forward

#

check the memory related to PID (Process ID) 6744; then based on that see what PowerSploit command was used

dim wolf
stable bone
#

i went to build steve and i got a warning for too many emojis

#

why do we have steve if i cant give him a life

#

this is how i spend my time chat bin_joy

fathom pendant
#

@ SERIOUS RULE BREAK

stable bone
#

boi nah lets go right here rn

#

take you to da pavement

fathom pendant
#

this isn't a gen chat

stable bone
#

are you mod now or sum

fathom pendant
#

also have you finished the subnetting section?

stable bone
#

OH OH MARCIE LET ME TELL YOU

fathom pendant
#

:(

#

bruh

#

spoiler/answer

stable bone
#

look at all those tabs 😭

fathom pendant
#

ya goon

stable bone
#

it took a couple hours but lets goooo yessirrr

fathom pendant
#

but congrats

#

i hope you now somewhat better understand how networks are separated

#

that depending on the mask two computers might not be in the same network

stable bone
#

i made drill seeargent proud chat fingerguns

fathom pendant
#

did you wanna take on my little challenge? (10.10.14.33/28, network, mask, broadcast)

#

you can dm me the answer if you work it out :)

stable bone
#

your challenge aint got shit on me boiii

#

bet give me like

fathom pendant
#

fine, /30 instead of /28

stable bone
#

a couple days lmaooo 😭

fathom pendant
#

talk shit get hit

fathom pendant
#

nah

stable bone
#

yahuh

fathom pendant
#

once you get one the others kinda fall in

stable bone
#

how many subnets you want?

fathom pendant
#

Q: identify the network, subnet mask, and broadcast address of 10.10.14.33/28

rustic sage
#

**Windows Priv Esc Part II Question II **
Escalate to SYSTEM

  • I found || a hijackable dll via sharpup || but honestly I'm at somewhat of a loss. I've tried looking at msf at the dll injection section but so far nothing. any help would be appreciated
sharp nexus
#

Can someone help me get the ZAP and Burp SSL Certs? I think the guide is a little outdated because the option "Dynamic SSL Certificate" has either been rename/move or removed.

shut quest
fathom pendant
sharp nexus
sharp nexus
fathom pendant
#

i was able to find it just fine from the menu Β―_(ツ)_/Β―

#

but maybe this will help

rustic sage
rustic sage
#

I've tried googling for it but idk

fathom pendant
#

sometimes restarting msfconsole fixes those issues

shut quest
sharp nexus
#

Okay so I got the Certs for both Burp and ZAP, and I imported them into my browsers trusted certificates. But the foxyproxy extension is either not working on firefox, chrome (I think, I can't verify that because their installer is broken), or opera... or the guide's out-of-date

sharp nexus
#

The directions given under the error, is to go to my Browser's proxy settigns, however it's not my browser I'm running the proxy through, but foxyProxy. So I'm not sure exactly what I need to do.

knotty ember
#

Anyone able to help out with the broken authentication predictable reset token question ? please do let me know

sharp nexus
# sharp nexus Okay so I got the Certs for both Burp and ZAP, and I imported them into my brows...

The only thing I was able to find when google dorking ( "Burp", "FoxyProxy", "v8.9" ) was that chrome and firefox found a way to bypass the "IP" field so it was removed(?) https://github.com/foxyproxy/browser-extension/issues/134

GitHub

[ENV] Firefox Dev v127.0b1 FoxyProxy v8.9 Windows 10 22H2 v19045.4412 [ISSUE] The requests made by Firefox extensions (Zotero Connector, Eagle) to localhost clients are proxied through SOCKS5 proxy...

heavy marsh
#

In the Linux Privesc Shared Libraries section, what is the C binary saved as? This section is really vague towards the end.

#

Doesn't say to save the binary as anything in particular and doesn't explain the components of the gcc command

shut quest
heavy marsh
#

Also, that command doesn't work

shut quest
#

root.c is the code above

heavy marsh
shut quest
#

We can compile this as follows:

#

and the compiler informed you that root.c: No such file or directory

heavy marsh
#

So I have root.c in there, now I'm getting a new error

rustic sage
#

I'm still trying to Building the solution for the || CVE-020-0668 ||

shut quest
heavy marsh
#

Okay, so apparently that's not an error? I was able to run the rest of it

heavy marsh
#

This doesn't really explain, it's just telling me "hey copy and paste this command with no context"

fathom pendant
#

Likely some weird shenanigans

rustic sage
fathom pendant
rustic sage
sturdy otter
fathom pendant
#

As long as ffuf and such can find it

sturdy otter
#

true

rustic sage
#

and omg windows priv esc to ez, it's not the CVE

#

literally took me two seconds the other way

proud pine
#

Has anyone actually finished the "Introduction to Evasion Techniques" module yet? I can't tell if the last 3 sections are a skill issue, or a module issue.

shut quest
sharp nexus
shut quest
shut quest
sharp nexus
#

Okay so it's not a foxyproxy issue then it's the certificates

limber river
sharp nexus
#

I imported the certs to the wrong tab instead of importing them to Trusted Root Certification Authorities

shut quest
# heavy marsh So why am I using the root.so when the c file is what I compiled?

the root.c file is what you created, it's what you can read. the compiler gcc in this case, converts the code into machine code and creates the root.so.

When you ran the sudo -l command in the matching defaults entries, you'll see that ld_preload environment is kept. ld_preload loads shared objects before any other libraray. The malicious shared object you created does a system call to /bin/bash, thus when you run the sudo LD_PRELOAD=/tmp/root.so /usr/sbin/apache2 restart you are elevating to root and creating a shell as root.

Hopefully that helps some understanding than just copy/paste

heavy marsh
#

On the Python section of Linux Privesc I'm not sure why I have to run as sudo here

#

Also, it didn't work that way, I had to run mem_status.py with the full path /home/htb-student/mem_status.py

#

If I have sudo what is the point of getting privesc?!

fathom pendant
#

Hence the full path

#

Usually if you have sudo perms of a path you need to specify the fill bin path

rustic sage
#

windows priv esc - dns admins
I'm trying to restart the dns service but for some reason it won't start I tried using sc and net cmd to start but the net start can find the module and sc doesn't start the dns server. any help would be appreciated

cloud urchin
#

looks like it's working to me when you start the service

rustic sage
cloud urchin
#

it says "start_pending" under the state

rustic sage
cloud urchin
#

did it escalate your privs?

rustic sage
#

I loaded the malicious dll to add me to the group

cloud urchin
#

right, so did it work? nothing looks wrong with your command

rustic sage
#

nope

cloud urchin
#

can i see a screenshot of the domain admin group members

rustic sage
#

it should have netadm included

cloud urchin
#

did you log out and back in

rustic sage
#

yes

cloud urchin
#

okay, my next step would be to look into the dll to make sure it's correct

#

i was able to follow all the steps and it worked

rustic sage
#

alr

#

msfvenom -p windows/x64/exec cmd='net group "domain admins" netadm /add /domain' -f dll -o adduser.dll

#

that's what I used

cloud urchin
#

send me a DM

fierce mason
#

for the skills assessment on command injection, was the only way to find the vulnerable parameter to send the request twice

cloud urchin
#

don't think so

fierce mason
#

whats the other way

cloud urchin
#

i just injected into it and it worked first time, didn't have to do anything special

#

maybe you're doing something different

lofty token
#

Can someone help me with file uploads skill assessment, I've tried so many things. If anyone has completed it please do lemme know of any tips or suggestions

fierce mason
cloud urchin
fierce mason
cloud urchin
verbal shell
#

Hello, im currently working on the Linux fundamentals module and having an issue with the filter contents section. The questions is: Use cURL from your Pwnbox (not the target machine) to obtain the source code of the "https://www.inlanefreight.com" website and filter all unique paths of that domain. Submit the number of these paths as the answer. I followed one of the guides on meduim.com, but it says the answer is wrong. Please help

sharp nexus
#

What am I doing wrong? Red: Where is this location, here? Green: If the location is this do I have to enable the two "Or request" options?

fathom pendant
#

Disable the "and does not match" part

#

Also you can scroll in that menu

sharp nexus
#

oh

fathom pendant
#

But yes, the descriptions seem to match up

#

Β―_(ツ)_/Β―

#

I suggest: trying it, seeing if it works as expected

sharp nexus
#

I'm not sure I'm doing this right (Before and after hitting forward)

fathom pendant
#

Forward until you see the response

sharp nexus
#

das all I get

#

only one forward

fathom pendant
#

Is your proxy running?

#

Go to the base webpage where it asks you to input something

#

You should see the request there

#

As it says: after enabling intercept - refresh the page

sharp nexus
#

nothin

#

oop

fathom pendant
#

Then it sounds like something isn't set up right

sharp nexus
#

It's not what I need, but it's something

fathom pendant
#

It can't intercept if you're not making a request kek

#

Click forward now

sharp nexus
fathom pendant
#

Are you only hitting it once?

sharp nexus
#

mhm

fathom pendant
#

Do you have intercept response enabled in the proxy settings?

sharp nexus
#

Oke

#

here's what I changed

fathom pendant
#

Don't enable anything else

#

Turn those off