#modules

1 messages · Page 330 of 1

cloud urchin
#

without port forwarding?

foggy monolith
#

Anyone?

olive slate
#

I used the dev box to compile the binary, ran it and caught a shell from the pwn box. Copied the exe to the pwnbox, terminate the dev box, start the target box and transfer the exe to the directory stated. I don't see why any port forwarding is needed.

cloud urchin
#

how are you encrypting the payload

olive slate
#

Anyway I'm gonna re-do it from scratch and try again

olive slate
foggy monolith
limpid frigate
#

anyong help me with Intro to Whitebox Pentesting SA2, i keep getting "code injection should not be possible, even without sanitization or validation"

river spear
#

I am currently working on the following question in the Footprinting > SMTP: Enumerate the SMTP service even further and find the username that exists on the system. Submit it as the answer. I thought the following would be it: ||nmap -v -p25 -n --script smtp-enum-users --script-args smtp-enum-users.methods={VRFY} 10.129.42.195|| However, this returns no accounts. I also tried ||smtp-user-enum -U usernames.txt -t 10.129.42.195 -m 150 -M VRFY||, but this too returned no results. Note: usernames.txt contains the same contents as the given file

fathom pendant
#

Don't know what -m does

#

But you might wanna increase the wait time to 20+ seconds

#

It's because your scanning is too fast

#

You may also need to attach the inlanefreight.htb domain

river spear
#

-m adds a max number of processes. I removed that, and tried adding a wait time of 20s. I'll see what happens.

#

Yep, an increased wait time ended up working. Why would an enumeration going too fast result in a no positive results? Does it just not have time to establish a connection, and so it times out?

river spear
fathom pendant
#

It depends

river spear
#

Well, just one more thing to consider I guess

spare path
#

Hey currently stuck on this one any help for how to progress for the final skill assessment? I've got to the /SECRET/secret.xxx part and not sure how to progress.

fathom pendant
#

You'll learn tiny quirks of each protocol as you go

fathom pendant
spare path
#

I did see that

fathom pendant
#

So...

spare path
#

I don't understand how to utilize that info

fathom pendant
#

Recall the parameter fuzzing section

spare path
#

will review it

fathom pendant
#

I suggest taking notes as you go

spare path
#

yeah really seeing the value in that now

fathom pendant
#

The more you do it the less you'll need to rely on them

#

But they're definitely good for "wait what was the thing again?"

river spear
#

I might as well ask my other question. I am working on Footprinting > DNS: What is the FQDN of the host where the last octet ends with "x.x.x.203"?. I have done the following:

  1. ||dig axfr inlanefreight.htb @10.129.42.195||
  2. ||dig axfr internal.inlanefreight.htb @10.129.42.195||
  3. ||dnsenum --dnsserver 10.129.42.195--enum -p 0 -s 0 -o subdomains.txt -f /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt internal.inlanefreight.htb||

However, I am getting the error that there are no nameservers. ||I have tried all different lists (as the hint says)||

stark lark
#

Do I have to enable the ZAP HUD? I don't see it in the in-built browser

fathom pendant
stark lark
fathom pendant
#

You'll need to do things slightly differently

stark lark
#

Figured it would be good to learn ZAP since it has the auto scan feature (for exam)

fathom pendant
#

¯_(ツ)_/¯

stark lark
fathom pendant
#

I used burp more but can't say I really needed the spidering feature

#

Also burp does cache the http requests made while it's running

#

Proxy > http history

river spear
#

It seems that the transfer fails for all other subdomains, which makes me think that it is definitaly a subdomain of ||internal||. However, all of the subdomains of that subdomain fail anyway... That is the main problem I was running into earlier

fathom pendant
#

Your logic is backwards

#

You want to attack subdomains you cant natively transfer to

#

Dnsenum is a bruteforce tool

river spear
#

So they would not appear in that list I was testing against?

fathom pendant
#

You don't need to bruteforce what you can already access

river spear
#

That would make sense

fathom pendant
#

One of the other subdomains from your base axfr is the way forward

#

But your list is in-fact wrong

#

You'll need a more fierce list as well

spare path
idle sigil
#

Hey, so i am working on What's the contents of table flag5? (Case #5) - Attack Tuning SQL MAP Essentials. I was initially using my kali and sqlmap keeps timing out. But when I use the same command on pwnbox, it works without a hitch.

Can someone please help me figure this out?

shut quest
idle sigil
#

i am using tcp vpn and my internet is working fine :/

river spear
#

I have been able to find ||ns.dev.inlanefreight.htb||. I ran ||dig ns/axfr/any/soa ns.dev.inlanefreight.htb @10.129.42.195||, however, none of these helped.

spare path
#

I've tried fuzzing the parameter like this but it doesn't seem to get me anywhere. ||ffuf -u http://IP:PORT/admin/panel.php -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "accessID=FUZZ" -w common.txt -v||

river spear
#

I may have just figured it out...

foggy monolith
#

Pivoting, Tunneling, and Port Forwarding > RDP and SOCKS Tunneling with SocksOverRDP

Why is this happening and what Windows Defender setting must I change on the target to ensure that this actually runs and doesn't throw an error like this? Anyone? @fathom pendant?

fossil linden
#

Can't spawn a pwnbox for like 2 days anymore. Do you guys have problems too or is it a skill issue?

river spear
#

I can spawn a pwnbox whenever I want for as long as I want, but that may be because I am on a business plan

autumn pilot
#

@foggy monolith please reduce the usage of markdown syntax when specifying the module and section names

ionic minnow
foggy monolith
autumn pilot
vernal sphinx
#

Thank you very much indeed

fathom pendant
spare path
#

my recent attempt ||wenum -w common.txt --hc 200 -u "http://IP:PORT/admin/panel.php?accessID=FUZZ"|| also doesn't appear to show anything

#

I feel like I have all the right pieces I just don't know how to put it together

#

will try again later thanks for the help thus far

fathom pendant
#

I mean I'd use ffuf or gobuster instead

west sentinel
#

I'm struggling to interpret a Question from "Filter Contents - Linux Fundamentals"
"Use cURL from your Pwnbox (not the target machine) to obtain the source code of the "https://www.inlanefreight.com" website and filter all unique paths of that domain. Submit the number of these paths as the answer."

i don't know if the Q is talking about like URL links containing "inlanefreight" or something else, but i've tried using:
curl https://www.inlanefreight.com | grep -o www.inlanefreight.com.*\" | sort | uniq | wc -l
to no avail,

fathom pendant
west sentinel
#

lol i know some html from high school, they were talking about urls right?

fathom pendant
ember dune
#

module: attack common service - RDP

[12:44:10:387] [66982:000105a7] [ERROR][com.freerdp.core.rdp] - [rdp_recv_callback_int][0x55c6cdd6c4d0]: CONNECTION_STATE_NLA status STATE_RUN_FAILED [-1] [12:44:10:387] [66982:000105a7] [ERROR][com.freerdp.core.transport] - [transport_check_fds]: transport_check_fds: transport->ReceiveCallback() - STATE_RUN_FAILED [-1]

I got username and password from ***.xml file in windows but i cann't connect to machine via RDP, getting error

fathom pendant
#

The link I shared explains it much better

fathom pendant
fathom pendant
ember dune
# safe star what error?

Error:
[ERROR][com.freerdp.core.transport] - [transport_check_fds]: transport_check_fds: transport->ReceiveCallback() - STATE_RUN_FAILED [-1]

#

Is there any method of connecting to RDP rather than username and password????????????

safe star
#

is this the last question on the section?

ember dune
#

yup

safe star
#

did u enable restricted admin?

#

i got in just fine

#

u probably need to restart

ember dune
safe star
#

yeah try restarting the machine

fathom pendant
#

Did you use the /pth: option for using the admin hash?

ember dune
safe star
#

?

fathom pendant
#

Check the desktop of htb-student

safe star
#

U didn’t click on the notes?

fathom pendant
#

The file referred to by the first question

ember dune
fathom pendant
#

Well it's likely wrong

#

:)

ember dune
safe star
#

How did u miss the desktop then

fathom pendant
#

There was no need at all to credential harvest

fathom pendant
ember dune
fathom pendant
#

Can't be any clearer than that to look at

#

Also just in case try resetting your vm

#

The error your getting isn't necessarily a log on error indicating bad creds

ember dune
#

I got initial foot hold and do not have admin priv, any hint?

fathom pendant
#

...

#

My brother in christ

ember dune
fathom pendant
#

Open the file referenced by Question 1

#

Since you can't seem to understand anything beyond "do this"

ember dune
fathom pendant
#

It's literally what me and @safe star Have been saying the past x minutes

#

I see a file titled that, I'm gonna click it, even if it's out of frustration of trying everything else

#

This module is about the basics of services, not credential harvesting or any of that

#

Everything is generally given in a fairly straightforward way

ember dune
#

got it

fathom pendant
#

Or just follow what the section says for the most part

#

If it doesn't come up in the section, it may come up in the skill assessments

safe star
#

Didn’t password attacks go over it too?

acoustic owl
#

Why? What exactly is confusing you?

weak dagger
#

I was confused on why the 302 aren’t shown on browser

#

And only shown on the burp

ember dune
fathom pendant
#

Indeed

#

So don't try and think outside the box

#

Always start with simple first

#

Like stuff on the desktop

ember dune
#

sure, I appreciate you

fathom pendant
#

The biggest and most important thing is not discounting the simple solution to the problem given

#

And sometimes even asking: did the question ask me to, or did the module/section go over this

safe star
#

@uncut ocean u get it?

uncut ocean
#

but still it gets deleted

safe star
#

i just copied and pasted it on to the desktop then disabled it

#

did you run cmd as admin?

vivid sigil
#

can i skip Pivoting, Tunneling, and Port Forwarding
if i know how to use ligolo-ng ?

safe star
#

still good to go over the module and see other methods

#

even if you're familiar with the subject

safe star
uncut ocean
shell ledge
#

Note to current and future students of HTTP Attacks: just solved the HTTP Response Splitting Question. If anyone in the future might need a nudge, feel free DM me. As someone stated before, I too struggled with Firefox and used Chromium instead. Then, pay attention to the Hint provided by HTB..

rough tree
#

Any nudge on how to get the second flag(on SQL01) on the Using Crackmapexec Skill assestment lab exercise?

faint geode
rough tree
# next bronze roast

Already done and found "A**l". I see no special permission in the MSSQL, so I guess ntlmrelayx?

unique ether
#

Good day

#

Completed half of shells and payloads

unique ether
#

Could have finished more but meh

rough tree
dire tinsel
#

Footprint - DNS

Q1. Interact with the target DNS using its IP address and enumerate the FQDN of it for the "inlanefreight.htb" domain

How to find FQDN?

  1. I tried this command.
    ||dig PTR inlanefreight.htb @10.x.x.x||
    ||dig A inlanefreight.htb @10.x.x.x||

  2. Next, tried this command.
    ||dig axfr inlanefreight.htb @10.x.x.x||

  3. Finally, found the result. but i don't understand why ||ns.inlanefreight.htb.|| can be an answer. why below can't be an answer?
    ||root.inlanefreight.htb.||
    ||inlanefreight.htb.||

Thanks.

next bronze
rough tree
next bronze
#

yeah time to dig through them thumb

next bronze
nova ginkgo
#

Attacking Common Applications - WordPress - Discovery & Enumeration
Perform manual enumeration to discover another installed plugin. Submit the plugin name as the answer (3 words).

I found :
=== Mail Masta ===
=== Contact Form 7 ===

└─$ curl -s http://blog.inlanefreight.local/ | grep plugins
<link rel='stylesheet' id='contact-form-7-css' href='http://blog.inlanefreight.local/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4.2' type='text/css' media='all' />
<script type='text/javascript' src='http://blog.inlanefreight.local/wp-content/plugins/mail-masta/lib/subscriber.js?ver=5.8' id='subscriber-js-js'></script>
<script type='text/javascript' src='http://blog.inlanefreight.local/wp-content/plugins/mail-masta/lib/jquery.validationEngine-en.js?ver=5.8' id='validation-engine-en-js'></script>
<script type='text/javascript' src='http://blog.inlanefreight.local/wp-content/plugins/mail-masta/lib/jquery.validationEngine.js?ver=5.8' id='validation-engine-js'></script>
<link rel='stylesheet' id='mm_frontend-css' href='http://blog.inlanefreight.local/wp-content/plugins/mail-masta/lib/css/mm_frontend.css?ver=5.8' type='text/css' media='all' />
<script type='text/javascript' src='http://blog.inlanefreight.local/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4.2' id='contact-form-7-js'></script>

but incorrect

#

can anyone help me pls

dire tinsel
acoustic owl
nova ginkgo
safe star
#

Try curling more pages

nova ginkgo
acoustic owl
#

Use whatever tool you like, but always look at all pages.

nova ginkgo
nova ginkgo
safe star
#

Readme files are usually capitalized

nova ginkgo
safe star
#

Have u looked through the file?

nova ginkgo
safe star
#

The change log?

nova ginkgo
safe star
#

Yes change log in the readme

nova ginkgo
safe star
#

No it should be in the readme

nova ginkgo
safe star
#

Wyd all?

nova ginkgo
safe star
#

Did u find the plugin then type the name in the plugin directory?

safe star
#

Send a pic in dm

surreal heron
#

vHosts needed for these questions: inlanefreight.htb + 1 Brute-force vhosts on the target system. What is the full subdomain that is prefixed with "web"? Answer using the full domain, e.g. "x.inlanefreight.htb"-------------------------------
Have added host to etc/hosts
gobuster vhost -u http://inlanefreight.htb -w subdomains-top1million-110000.txt --append-domain

Gobuster v3.6
by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart)

[+] Url: http://inlanefreight.htb
[+] Method: GET
[+] Threads: 10
[+] Wordlist: subdomains-top1million-110000.txt
[+] User Agent: gobuster/3.6
[+] Timeout: 10s
[+] Append Domain: true

Starting gobuster in VHOST enumeration mode

Error: error on running gobuster: unable to connect to http://inlanefreight.htb/: Get "http://inlanefreight.htb/": dial tcp 94.237.53.113:80: connect: connection refused
I get this error how to proccedd

#

This is the host added in etc/hosts file

next bronze
#

you need to set a port

surreal heron
#

to the hosts file??

next bronze
#

to your gobuster command

surreal heron
#

Should add the port number of our target ryt ?

safe star
#

Yes

strange forge
#

In the ad skill assessment

  1. How to get reverse shell from webshell. I tried revshell. Not working. Causing errors
somber fiber
#

like it never reaches the end for me

#

i liked this module but at same time i'm hating it

#

it just eating so much time "i just don't know if its for good reason or not".

#

can someone help here?

somber fiber
#

upload ?

slender delta
#

I'm having some trouble with the LFI Skill Assessment in the last step....

#

Can I DM someone?

somber fiber
slender delta
#

File Inclusion

hexed lintel
somber fiber
strange forge
slender delta
somber fiber
hexed lintel
#

@strange forge which module and section?

strange forge
somber fiber
next bronze
#

use the webshell like a regular shell, grab one from revshells.com

somber fiber
#

or drop here

next bronze
#

it's not a question, they just want to get a revshell from the webshell

hexed lintel
#

@strange forge try base64 reverse shell

#

Powershell#3 Base64

gray yacht
strange forge
covert vortex
#

Hi there, could someone help clarify this question: "If csrf.htb.net was using SSL encryption, would an attacker still be able to alter Julie Rogers' profile through a CSRF attack?" [Session Security / Cross-Site Request Forgery (GET-based)]. In the scenario presented, where the HTTP host is used, the attacker successfully captured user csrf token by sniffing the local network traffic. I'm struggling to understand how the correct answer can be ||true||, given that with SSL encryption enabled, the attacker shouldn't be able to capture CSRF token and eventually craft form to send a valid request to the API.

somber fiber
quiet trout
quiet trout
#

HTTP is delivered over application layer, while a subsequent (secured) connection over SSL is handled on transport layer. The browser still renders/stores the cookies/data (mentioend in the previous sections)

#

i was just pondering this the other day (how a stateless protoc like HTTP deals with stateful connections like SSL/TCP), chat gpt was /somewhat/ helpful to break this down, does that make sense or do you need a more in depth explanation? @covert vortex

covert vortex
#

got it, thanks mate : )

quiet trout
# covert vortex got it, thanks mate : )

its like the transaction occurs encrypted. not the end result? my understanding is still very precarious so barring an answer from someone who is more aware of whats going on, i think that will suffice for a basic understanding

#

there's a uh, module somewheres about wireshark where they have you setup a (TLS?) cert to sniff traffic between http/s connections that may help solidify the actual transmission parts of this concept. sorry i dont have a link but im 99% sure its the wireshark module on academy

#

like if you sniff your own https traffic its encrypted but if you set up a cert (and a key or something?) you can see whats going on, not that thats specifically helpful here but it may round out the concept

quiet trout
# covert vortex got it, thanks mate : )

Also while we're on this topic, you have a clear differentiation between XSS/CSRF vector right? this comes up in interview questions... CSRF requires user interaction, XSS requries no user interaction (and poses a much deeper threat in terms of what can be done leveraging xss). If you're ever asked "whats the core diff between xss/csrf"

#

or something like that

limpid hemlock
#

Hey im doing the thick client app attacking from attacking common application here i disabled the auto deletion and checked the temp folder for a batch filr but im not seeing anything inside it

quiet trout
fiery berry
# limpid hemlock Hey im doing the thick client app attacking from attacking common application he...
limpid hemlock
#

See i dont get any bat file when i restart the service after disabling that auto deltion

#

I dont see anyone properly addressing this issue in the forum

#

Above

quiet trout
eager ledge
#

I am doing "Skill Assessment" section of "Command Injection" module. I have found the point of injection but no matter what payload I use, I am getting "Malicious request denied".

I have tried
bypassing space filter,
bypassing blacklisted command using
character insertion,
command reverse,
case manipulation,
bas64 encoding,
hex encoding,
tried reverse and hex encoding together in the payload.

But nothing seems to work. All I get is `Malicious request denied".

limpid hemlock
quiet trout
quiet trout
# eager ledge I am doing "Skill Assessment" section of "Command Injection" module. I have foun...

ok i think you need to try bypass + bypass (at some point)... and check your error messages carefully they change depending on which bypass method you use. If you have no single bypass working yet, go down the list from start to end of every bypass you tried in the module, and check your errors. For example one error message might say invalid extension while another says malicious... use ffuf or whatever to filter your output, burp (community edition) wont let you do this (easily)

echo nova
#

How do I get started with hacking?

storm elk
#

@small plover this is not the place for this

compact patrolBOT
echo nova
#

Thank you

limpid hemlock
#

Any help

surreal heron
#

Hey guys, iam not able to perform zone transfer can someone guide me stuck for a long time ^^ : After performing a zone transfer for the domain inlanefreight.htb on the target system, how many DNS records are retrieved from the target system's name server? Provide your answer as an integer, e.g, 123.

quiet trout
surreal heron
#

dig axfr @a.root-servers.net inlanefreight.htb

quiet trout
#

and your output?

#

you have the ip added to hosts right?

#

i think your @... might be wrong though

#

dig inlanefreight.htb and double check the dns server found in the results, or nslookup or w/e

surreal heron
#

its like we should add it name server ryt or am I wrong ??

quiet trout
#

no dont add the NS to /etc/hosts (if im not mistaken) but target it directly in your AXFR

shut quest
surreal heron
# quiet trout and your output?

dig axfr @a.root-servers.net 10.129.25.127

; <<>> DiG 9.20.0-Debian <<>> axfr @a.root-servers.net 10.129.25.127
; (2 servers found)
;; global options: +cmd
; Transfer failed.
:<

limpid hemlock
quiet trout
surreal heron
#

now what @DNS should I use
dig 10.129.25.127 NS

; <<>> DiG 9.20.0-Debian <<>> 10.129.25.127 NS
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 64464
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1410
;; QUESTION SECTION:
;10.129.25.127. IN NS

;; AUTHORITY SECTION:
. 3600 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2024091900 1800 900 604800 86400

;; Query time: 29 msec
;; SERVER: 10.255.255.254#53(10.255.255.254) (UDP)
;; WHEN: Thu Sep 19 18:59:06 IST 2024
;; MSG SIZE rcvd: 117

quiet trout
#

what does your /etc/hosts file look like and also what does nslookup for inlanefreight.htb return? (after verifying that its correctly added to your hosts file)

#

@surreal heron ^

#

also give me a link to the section so i can review what i did there, please

surreal heron
#

nslookup inlanefreight.htb
Server: 10.255.255.254
Address: 10.255.255.254#53

** server can't find inlanefreight.htb: NXDOMAIN

shut quest
quiet trout
limpid hemlock
surreal heron
#

dig axfr @10.129.25.127 inlanefreight.htb
;; Connection to 10.129.25.127#53(10.129.25.127) for inlanefreight.htb failed: timed out.
;; no servers could be reached

;; Connection to 10.129.25.127#53(10.129.25.127) for inlanefreight.htb failed: timed out.
;; no servers could be reached

rocky estuary
#

doing attack FTP from Attacking Common Services for some reason running medusa to bruteforce didn't work this the command i ran "medusa -U users.list -P passwords.list -h 10.129.203.6 -M ftp -n 2121 "

quiet trout
surreal heron
#

dig axfr inlanefreight.htb

; <<>> DiG 9.20.0-Debian <<>> axfr inlanefreight.htb
;; global options: +cmd
. 3600 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2024091900 1800 900 604800 86400
; Transfer failed.

rustic sage
#

When im on starting module the target machine is stuck on "target is spawning", so I cant see the IP. I didint click on it to start, its been that since last session when I was logged in to academy

sick whale
#

Refreshing the page doesn't solve the issue? I sometimes have this when I don't kill the instance at the end of a module

#

But usually refreshing the page gets things back to normal

rustic sage
#

Nope, its the same if i refresh, or well, it loads and auto starts (going to spawning machine) again

#

spawning target

sick whale
#

I would contact support then

rustic sage
#

Thanks 🙂

quiet trout
#

im not sure why you're having this trouble.

next bronze
rustic sage
#

It worked, what would i do without you, my hacker daddy? 😄 @next bronze

surreal heron
plain trellis
#

Does the double pivoting don't work with ligolo in Pivoting Module -> Skill Assessment section? I've tried many things and was able to setup a file server by which I can directly transfer files from my Attack host to ||172.16.5.35|| windows host. But when I try the same for double pivoting it throws an error as: ERRO[0140] read tcp 127.0.0.1:53490->127.0.0.1:11601: use of closed network connection 2024/09/19 09:33:02 [ERR] yamux: Failed to write header: EOF

quiet trout
next bronze
#

or your connection is unstable

plain trellis
#

but my connection is pretty stable. I tried resetting it multiple times as well but still didn't work.

next bronze
#

try with the latest stable build of ligolo

sick whale
plain trellis
sick whale
#

If it's alpha it's not stable

next bronze
#

I've been using 0.6.2

quiet trout
#

hey can anyone tell me how to handle when you either a) accidentally run the wrong cmd on a nc listener and redo it only to get target port in use (and lsof -i :9001 returns nothing) or b) when you occupy a common port like 8080, terminate the listener then need ot run burp and its occupied (and is still not listed in your lsof...) ... i run into this every so often and i have to reset the box to solve this... its frustrating.

sick whale
#

Last stable is 0.6.2 indeed

plain trellis
limpid hemlock
#

See i dont get any bat file when i restart the service after disabling that auto deltion in attacking thick clietn apps section

sage rapids
#

Hello everyone I am a first-year student, and I have a difficult choice: I want to become a pentester, or rather, a specialist in reverse engineering or web pentest, but the training, of course, will be very difficult, and I want to first study to be a DevOps engineer, then work for DevOps and eventually switch to pentest. What would you recommend to do?

somber fiber
#

work is fun as long as you make it fun

#

not after that

dim wolf
#

i think DevOps experience will help with securing an IT job, but this would be better discussed in #careers-and-certs

median gale
#

Any idea what the second IP is for?

dim wolf
#

if you don't have access to the channel, please verify your account by following the instructions in #welcome

quiet trout
#

youll never really know unless you put time into trying it

somber fiber
median gale
quiet trout
#

or two DCs perhaps

#

or a DC and a DNS/DHCP server, you'll need to connect and see

median gale
somber fiber
quiet trout
#

oh i see you're using xrdp, unfamiliar with that one you should try xfreerdp

#

your user name may not be FQDN, being rejected by login prompt. xfreerdp ful full syntax should resolve this as a sanity check

sage rapids
#

Just to hack something, you need to know how it works and I thought that DevOps would be a great option, I would know how databases and SQL work, etc

patent sky
#

There is a problem in the module ATTACKING COMMON SERVICE, section ATTACKING EMAIL SERVICE, i am doing the right command but it's not working anymore, it worked once on pwbox and never on my vm , any hint ? The command is smtp-user-enum -M RCPT -U userlist.txt -D inlanefreight.htb -t <ip adress> also to crack the password it's not working... hydra -l m*****@inlanefreight.htb -P password.list -f <ip adress> smtp

median gale
patent sky
#

I am

median gale
#

What isnt working the user enum or hydra?

patent sky
#

Both

#

user enum worked once

median gale
#

What error does each one print ?

patent sky
#

None, it's just saying nothing was found...

median gale
#

Ping to the ip does it work?

patent sky
#

But the user enum worked once and i changed nothing soo

#

Ping does work

patent sky
#

It says it doesn't find anything

median gale
patent sky
#

It goes to the end

median gale
somber fiber
patent sky
somber fiber
patent sky
#

Yes, i want to find the username

somber fiber
#

dang it i droped the spoiler

patent sky
#

I find it since the command worked once

somber fiber
somber fiber
patent sky
#

No, i am on the attack common services, email section

sage rapids
patent sky
somber fiber
#

yes

#

it did

limpid hemlock
#

Hey could someone help me out with the attacking thick client applications section in attacking common services module

I have disabled the auto deletion of files in the temp folder and again run the .exe file in that section and checked the temp file for the mentioned bat file that was supposed to be in the temp file now since that have turned off the auto deletion part but i dont see that bat file in the temp file

patent sky
somber fiber
patent sky
#

Yes

somber fiber
#

try hydra with that.

patent sky
#

looks like it's working again, gonna try to hydra

#

everything is working just fine, they did something or maybe it was lagging but i didn't change anything in what i typed

#

Thanks for the help ❤️

vale island
#

Did i miss something? We have macOS modules now?

jolly yacht
vale island
#

Didnt see that before, lol

fathom pendant
fathom pendant
#

It requires having access to a MAC

somber fiber
jolly yacht
fathom pendant
#

It's kinda hard and less than legal/easy to emulate a Mac

#

The MacOS isn't really available

#

And if you do find it, you'd need an ARM chip

jolly yacht
fathom pendant
#

Yeah

#

A lot of Apple stuff is proprietary so...

jolly yacht
#

Understandable

rustic sage
#

Hi HTB Folks. I am working on the Whitebox Attacks - Type juggling assessment and I could really use a nudge. Anybody on who might be able to help?

fathom pendant
rustic sage
#

In the Whitebox Attacks - Type juggling assessment am I supposed to stick to the Sha256 magic hashes and am I correct that the username has to include 'admin' in it, but it cant be at the beginning? I've been working on this for 3 days and I am not sure what else to try

somber fiber
#

sorry

somber fiber
#

can someone give me hand to run one command and give me the result of it?

shrewd bolt
quiet trout
#

Anyone have trouble spawning targets

storm elk
#

That would be illegal

limpid hemlock
#

Any one knws why the bat file isnt shown here

#

This is from the thick client attacking in attacking common services

shell ore
#

did anyone here faced problems setting/downloading sliver?

shut quest
# limpid hemlock

Go through the steps to make sure you're setting permissions correctly. I just did this seconds ago to confirm.

limpid hemlock
#

Ivde been doing this

#

From yestrday no idea what im missing

shut quest
#

All I used were the steps in the module

limpid hemlock
#

Mm

uneven cairn
#

sdfadfasfdosajfopaejfioewjpfoiewjewfpoiqwjefopwjoiwjfeiqw

limpid hemlock
#

I thought i disabled the auto delete stuff but i dont knw if its still deleting

fathom pendant
storm elk
limpid hemlock
#

I did

#

Thats whats troubling i did many times but still i think the bat file is getting deleted

fathom pendant
limpid hemlock
#

I disabled it clicked on edit on cybervaca and turned the tick off on

shut quest
#

If you did it correctly the bat file will be exactly where is says it will be

limpid hemlock
#

Clicked ok apply ok and then again run the exe

#

But i did get this error

fathom pendant
#

Hit continue

#

Some things you can't apply it to

#

Since you're basically trying to cascade the permissions

wanton jasper
#

I am working on the sqlmap section Q: What's the contents of table flag4? (Case #4). This one wants to use JSON but I am not sure how to copy the request as JSON?

fathom pendant
wanton jasper
#

Yes I can copy as curl but not as JSON.

limpid hemlock
fathom pendant
limpid hemlock
#

Yup

granite slate
#

For the Sliver C2 module, I'm running into issues with generating a stager on my local attack box which works on Pwnbox when repro'd.

The following command times out with this error:

sliver > generate stager --lhost 10.10.X.X --lport 8443 --format csharp

[!] Error: rpc error: code = Unknown desc = exit status 1 - Please make sure Metasploit framework >= v6.2 is installed and msfvenom/msfconsole are in your PATH

However, running the equivalent msfvenom command directly will generate shellcode

## Command
$ msfvenom --platform windows --arch x64 --format csharp --payload windows/x64/meterpreter/reverse_tcp LHOST=10.10.X.X LPORT=8443 EXITFUNC=thread

## Environment
$ msfconsole -V
Framework Version: 6.4.20-dev

$ which msfconsole  
/usr/bin/msfconsole

$ which msfvenom  
/usr/bin/msfvenom

$ which sliver
/usr/local/bin/sliver

$ sudo systemctl status sliver
Active: active (running)
CGroup: /system.slice/sliver.service
        └─<PID> /root/sliver-server daemon

For further context, I installed sliver with the provided one-liner & reinstalled metasploit-framework via apt. Anyone with troubleshooting advice or experience with this one? Also if needed, I can repost this on #1024429874246590575 for futher outreach. Thanks!

fathom pendant
limpid hemlock
#

Still no bat file in the folder

fathom pendant
#

¯_(ツ)_/¯

#

i didn't have any issues with it

limpid hemlock
#

Im having i dont knw why the temp file is getting

#

Delted for me

fathom pendant
#

i'm assuming you're going to the user's temp folder and not C:\temp

#

:)

#

and disabling the permissions there

limpid hemlock
#

I was going to c users cybervaca appdata local temp

#

And disabled perimisons there

#

In temp

fathom pendant
#

Look through the other folders

limpid hemlock
#

Yaa

#

I dont have anything inside 2 justched file and hyperfdata cybervaca file nothing else however outside in the temp folder i got all thees files

fathom pendant
#

The d52e.bat...

#

Check that

#

The batch file name is random each time it's ran

placid quest
#

@granite slate Same issue happening to me since yesterday 😪

limpid hemlock
fathom pendant
limpid hemlock
#

Yaa

fathom pendant
#

The important bit is towards the bottom

#

That's the top, sir

limpid hemlock
#

Yes

fathom pendant
#

I said towards the bottom

limpid hemlock
#

Got the bottom delted it and saved

fathom pendant
#

... why did you delete it?

#

I forget if that's a step

limpid hemlock
#

Ya ut was a step

fathom pendant
limpid hemlock
#

The code was delteinh a service exe

#

So i removed that part and saved it l

fathom pendant
#

Or just the parts removing the additional files

#

:)

#

Reach out to support

compact patrolBOT
uneven cairn
#

Does anyone know how I can list the contents of a directory? sqlmap http://ip:port/dashboard/dashboard.php --data "search=a" --batch --level 2 --risk 2 --random-agent --cookie="PHPSESSID=pj3po8630q4ohs78mo1ma3cfv6" --file-read "/root/flag.txt" --output-dir "/tmp/memehp3"

fathom pendant
fathom pendant
uneven cairn
#

i cant get web shell for the permissions for the current db user

#

i just almost got it but dont know how spot where the flag is

fathom pendant
uneven cairn
#

lol

fathom pendant
#

Also are you sure that's where you're meant to be injecting?

#

the sqlmap essentials module SA is asking you to get the contents of the table final_flag ¯_(ツ)_/¯

#

No idea why you need a shell or anything for it

uneven cairn
fathom pendant
#

¯_(ツ)_/¯

#

This is why you only focus on one module at a time kekw

storm elk
#

Marcie, did you use codecademy before?

fathom pendant
#

probably breifly

storm elk
#

Ah okay. I am thinking about following a python course lol

uneven cairn
#

@fathom pendant i still having the same question but for:
SQL Injection Fundamentals

Skills Assessment - SQL Injection Fundamentals

#

Assess the web application and use a variety of techniques to gain remote code execution and find a flag in the / root directory of the file system. Submit the contents of the flag as your answer.

young smelt
#

Hi, I have a question about Windows Lateral Movement - Skill Assessment. I cannot enumerate internal network. I'm using proxychains + nmap and don't get any open ports... I did try some powershell scripts for it but it will take ages until done. Can you give some hint? What techniques did you use to find hosts and open port in internal network?

fathom pendant
uneven cairn
#

sqlmap by itself search for common root directories like /var/www/html

fathom pendant
#

Well you said you have a working webshell

#

And sqli fundamentals doesn't require sqlmap to complete

uneven cairn
fathom pendant
#

Recall the steps in one of the module sections

#

Also you don't need something fancy just a basic php shell will get the job done

limpid hemlock
#

Pwershell.exe

fathom pendant
#

There's some gpo that doesn't allow it to be run as regular user

limpid hemlock
#

That too crashes

#

Once it opens it closes then itseld

rocky mist
#

""#poetry install
Installing dependencies from lock file

Package operations: 112 installs, 2 updates, 0 removals

`` • Updating pip (23.0.1 -> 23.2.1): Failed

Error

g-io-error-quark: The connection is closed (18)

at /usr/lib/python3/dist-packages/keyring/backends/libsecret.py:134 in get_credential
130│ Otherwise, it will return the first username and password combo that it finds.
131│ """
132│ query = self._query(service, username)
133│ try:
→ 134│ items = Secret.password_search_sync(
135│ self.schema, query, Secret.SearchFlags.UNLOCK, None
136│ )
137│ except GLib.Error as error:
138│ quark = GLib.quark_try_string('g-io-error-quark')“ "

#

why do i get error installing poetry

uneven cairn
rocky mist
#

poetry run crackmapexec Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1206, in _gcd_import File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/aesliex/Desktop/CrackMapExec/cme/crackmapexec.py", line 3, in <module> from cme.helpers.logger import highlight File "/home/aesliex/Desktop/CrackMapExec/cme/helpers/logger.py", line 5, in <module> from termcolor import colored ModuleNotFoundError: No module named 'termcolor'

#

how can i fix this?

shut quest
rocky mist
#

password attacks in pentester path

shut quest
#

Password attacks, what section? Numbers don't mean anything to anyone here.

shut quest
rocky mist
#

i tried apt-get install -y libssl-dev libffi-dev python-dev build-essential but it didnt work

#

it said this error - apt-get install -y libssl-dev libffi-dev python-dev build-essential
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python-dev-is-python3

rotund plover
#

Question so I am doing the Active Directory Enumeration Attacks and I am suppose to get the password policy from inlanefreight.local you are giving the outward face host ip and SSH credentials. I ssh into the host and search the /etc/hosts to see if inlanefreight.local is there and it is. I tried to ping its assocaited address and get host unreachable. I also wanted to comfirm with nslookup inlanefreight.local to see if it could get resolved and nothing showed. Why would the hosts be unreachable?

shut quest
analog dock
#

Module Injection Attacks, section Exploitation of PDF Generation Vulnerabilities. How do you properly enumerate the internal web application? The payloads in the section mostly show errors for me

tender nimbus
#

Hey @fathom pendant i have a question for you, i want to be a pentester in the future, on the platform, do you recommend to do first all the general moduls?

#

@analog dock you can also give you meaning ^^

analog dock
#

why are you randomly pinging people

#

🥲

tender nimbus
analog dock
#

Im rarely in here

tender nimbus
#

hmm rare i saw you a few times, so do you have a lot of knowledge? I mean what should you suggest

median gale
#

How do we display these edges on Bloodhound?

analog dock
#

So idk what else you want tbh

tender nimbus
uneven cairn
#

SQLMap Essentials

Skills Assessment please give me a hint, i have looked in all the page and i cant find yet what form sends a request

paper lance
#

-- skip_ssl at the end should fix this

fathom pendant
#

Have the network tab open the whole time too

mortal mirage
#

Hey

rustic sage
#

anything like crackmapexec but for windows. i got a user and want to run creds across whole ad subnet.

safe star
fathom pendant
#

Read and follow #welcome to access more of the server

rustic sage
fathom pendant
#

I mean powerview is a good tool

#

But in general you want to use pivoting techniques where you can

#

My strategy for tools to use are grabbing them from the target boxes from the module

#

:]

#

Also netexec >> crackmapexec

safe star
#

You should be pivoting like marcielee said tho

rustic sage
#

Need something for windows. Powerview requires scripting (will see this). Asking one other thing about approach. so i got creds with kerberoasting. now i want to check which machine the creds belong too. is this the right approach. I dont know which machine will get unlocked by the creds.

rustic sage
safe star
rustic sage
# safe star U can do a ping sweep

pingsweep gives list of active hosts. Bruteforcing part is stil the same. lets try using netexec. Also am i doing this right? (asking as per methodology)

safe star
#

Where are u getting bruteforcing from?

#

Why don’t you just do everything from your Linux machine?

rustic sage
safe star
#

Why do u keep ignoring the pivoting part of my sentences 💀

#

Do you know how to pivot?

rustic sage
#

not ignoring. reading about pivoting rn.

rustic sage
safe star
#

Learning pivoting is a whole lesson itself

#

It’s recommended to do pivoting then the ad module

rustic sage
jovial mural
#

Hi, recently subscribe to the Silver Plan where you get 200 cubes each moth is it accumulative or does it clear each month??? Thanks in advance.

uneven cairn
#

@fathom pendant I already found the parameter, I don't understand why automated tools don't detect it

river marsh
#

about to get started on my HTB journey, i understand its a more hands on approach which i enjoy, but does anyone have any tips/best practices theyve found when it comes to note taking of what i should make notes of as i procedd?

unique ether
#

I used the command to disable av in the windows infiltrating exercise but when I went to setting it's still on

#

I solved the lab but I was wondering why that happened

shut quest
# river marsh about to get started on my HTB journey, i understand its a more hands on approac...

Whatever style of notes that work best for you . Everyone is different. Some like taking huge chunks from the material, others like rewording the material into a way they understand. I like doing a little walkthrough for each section capturing commands and output.

Bare minimum document every user/credential/hash/key you come across, you never know when another section in the same module will use the previous findings.

river marsh
shut quest
river marsh
jovial mural
fathom pendant
river jetty
#

I'm having trouble with this question: Some PowerShell code has been loaded into memory that scans/targets network shares. Leverage the available PowerShell logs to identify from which popular hacking tool this code derives. Answer format (one word): P____V___.

I currently filtered for powershell.file.script_text and ranged it in between the dates of the intial breach. Then I searched for P*V within the text block

#

Any help would be great

fathom pendant
#

Well your issue is trying to directly look for the broad tool name

#

Instead of identifying what the code does, and identifying what invoke/get/whatever command is used and correlating that to the tool

river jetty
#

Without something to lessen the load then I'll manually be looking at 100s of logs.

silver lantern
#

Hey guys,
I just started the pentest path and I’m using a local machine with openvpn. Connection is successful but on the module, I’m not able to reach the IPs they are using. Any idea how I can fix this issue? For instance I’m told to run nmap 10.0.0.5 but the host is down when I try it locally

fathom pendant
river jetty
#

Threat Hunting & Threat Intelligence Fundamentals
Hunting for Stuxbox
Question 3

silver lantern
fathom pendant
#

Also the scope of internal ips is 10.129.0.0/16 iirc

#

Aka only start with 10.129.x.x

fathom pendant
fathom pendant
#

Just copy/paste into google

river jetty
#

Welp

#

That was 10 secs to the answer

#

Thanks a lot lol

fathom pendant
#

¯_(ツ)_/¯

#

Overthinking gets us all

shut quest
latent relic
#

règle n°5, restez en anglais, vous n'obtiendrez pas de réponse en français. @mortal mirage #welcome

#

Just in case they don't speak English

fathom pendant
#

A silly little skid video

dim wolf
#

please don't promote your content here

limber river
#

french ew

fathom pendant
#

Voice mod as well making it barely audible, even for french

rustic sage
#

Hoping for some guidance of those who have completed this section. In the Whitebox Attacks - Type juggling assessment am I supposed to stick to the Sha256 magic hashes and am I correct that the username has to include 'admin' in it, but it cant be at the beginning? I've been working on this for 3 days and I am not sure what else to try

mortal mirage
#

Please🙏

ocean night
#

The hell is that link

shut quest
#

Again?!

ocean night
#

@mortal mirage give it a rest, read #rules

sweet jewel
#

there was a link? can I click on it?

ocean night
#

..and you got a thumbs down

sweet jewel
rustic sage
#

In the Ad attack skill assesssment 1. How we are supposed to transfer other tools from linux to windows. It only allowed rubeus.exe and mimikat.exe. other than that no other outside exe are allowed or is getting filtered by. I'am trying to upload the ligolo-ng to the windows. So far i have tried the upload method in the web shell as well as the pythohn server and the impacket- smbserver. Apparently the server i have access to does not allow http protocol.

#

i even tried exe2hex, but somehow it also get filtered by the av too.

limber river
#

you should be able to transfer files using one of the method you mention

shut quest
#

Also there's no av in that module

rustic sage
#

BITSADMIN version 3.0
BITS administration utility.
(C) Copyright Microsoft Corp.

Unable to complete transfer.
ERROR CODE: 0x80200013 - The server does not support the necessary HTTP protocol. Background Intelligent Transfer Service (BITS) requires that the server support the Range protocol header.

limber river
#

never seen this before

rustic sage
limber river
#

you are trying to upload from your machine (linux) to the target (windows) right ?

rustic sage
#

i have a windows reverse shell. if that matters

shut quest
#

You try wget or curl.exe?

limber river
#

or maybe just smb

#

net use ....

tender nimbus
#

Hey guys im stuck on file transfering

#

I started an ftp server on my local machine but my commande on the remote host doesnt work any ideas?

fathom pendant
tender nimbus
#

No from user

fathom pendant
#

Then why are you trying to specify the /home/user, from the perspective of the ftp connection its looking for /home/user/home/user... from your request

#

The other thing not being able to connect to your server

#

But I'm assuming that 10.0.2.15 is your tun0 ip

#

Though usually I've seen those ips as 10.10.x.x.

tender nimbus
#

no its my enp0s3 ip

fathom pendant
#

Well that's why it can't connect

tender nimbus
#

Okej thank you just need to find the right path know 🙂

fathom pendant
#

The spawned target doesn't have a route to your enpos ip

#

Use the tun0 ip to connect back to

#

:)

limber river
fathom pendant
#

^

#

Your enpos ip is your own local network

tender nimbus
#

Okej but i don't really understand what you mean with the file path? Should i not right the whole pwd?

rustic sage
fathom pendant
#

Whenever you host a fileshare, the share starts from where you're sharing from

#

It would be kinda scary if you could arbitrarily grab any file from any arbitrary Share point

shut quest
limber river
tender nimbus
#

Ow okej get it thank you guys

fathom pendant
#

You specify the relative filepath from where the share is hosted

#

So Downloads/upload_win.zip

rustic sage
#

On the receiving end running,

nc -l -p 1234 > out.file

will begin listening on port 1234.

On the sending end running,

nc -w 3 [destination] 1234 < out.file

#

used this btw its blocking outer tools like ligolo-ng and not rubeus. I think it has something to do with htb.

tender nimbus
#

Got it thank you for the information

limber river
#

if you can show us , which cmd you running

#

it will be easier to debug it

rustic sage
#

unable to send image here

limber river
shut quest
rustic sage
wanton jasper
#

whats the deal with sqlmap "What's the contents of table flag5? (Case #5) " it keeps giving what looks like parts of a flag. Have restarted several times

rustic sage
#

Hello, I'm completely new to all of this and want to get into cyber security Eager to learn anything and everything. I need guidance/mentor
Dms are open

fathom pendant
wanton jasper
# safe star u still on this?

No, I took to the forums and saw several had to keep restarting the lab and eventually got it to work. I hope the exam is not that buggy lol

compact patrolBOT
fathom pendant
#

Unless you're willing to pay me $1k/week I don't do mentoring prayge

#

And even then I'm underselling myself

limber river
rustic sage
#

ways to transfer tools to the internal pwned machine when pivoting.

limber river
steady valve
#

what the hell am i looking at

#

the sudden jump from finding a flag with the find command to this is crazy

#

i dont understand a thing this section told me (linux privilege escalation > special permissions)

cloud urchin
#

re-read it then

steady valve
#

ive tried, what i understood is that some files can only be executed/read/modified/whatever by a certain group with permissions to do so or to do it as another user with those permissions

#

but i feel like its so briefly touched upon

cloud urchin
#

that's pretty much it what don't you understand?

limber river
steady valve
#

find / -user root -perm -6000 -exec ls -ldb {} ; 2>/dev/null

shut quest
cloud urchin
#

ask chatgpt to break down the command

steady valve
limber river
steady valve
limber river
#

it allows you to run binary, as the group who own it

cloud urchin
#

as far as the questions, there are binaries with the setuid and setgid bit set and it just wants you to find them with the find commands that locate them

#

chatgpt will tell you exactly what each part of the command means

steady valve
steady valve
safe star
steady valve
shut quest
# steady valve so if im part of the group with SGID 6000 i can run that binary?

From one of the links

Unlike the setuid bit, the setgid bit has effect on both files and directories. In the first case, the file which has the setgid bit set, when executed, instead of running with the privileges of the group of the user who started it, runs with those of the group which owns the file: in other words, the group ID of the process will be the same of that of the file.

steady valve
#

unless its dark theme and it syncs to systems settings and ive never known there was a light theme

limber river
fickle topaz
#

hello guys

#

please i need help

ocean night
shut quest
ocean night
#

😅

steady valve
#

thats sick

fickle topaz
#

in password attack hard lab i am trying to transfer a kdbx file form the windows target machine to my attack machine

ocean night
# steady valve thats sick
javascript: (
function () { 
// the css we are going to inject
var css = 'html {-webkit-filter: invert(100%);' +
    '-moz-filter: invert(100%);' + 
    '-o-filter: invert(100%);' + 
    '-ms-filter: invert(100%); }',

head = document.getElementsByTagName('head')[0],
style = document.createElement('style');

// a hack, so you can "invert back" clicking the bookmarklet again
if (!window.counter) { window.counter = 1;} else  { window.counter ++;
if (window.counter % 2 == 0) { var css ='html {-webkit-filter: invert(0%); -moz-filter:    invert(0%); -o-filter: invert(0%); -ms-filter: invert(0%); }'}
 };

style.type = 'text/css';
if (style.styleSheet){
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}

//injecting the css to the head
head.appendChild(style);
}());
cloud urchin
#

that should be a serious rule break

ocean night
cloud urchin
#

ya lol

ocean night
#

Because if so.. yeah... it burns

steady valve
#

i hate light mode, but the creme color is really selling me

limber river
#

it hurts even with black glasses

vocal river
#

any hints for command injection skill assessment cbbh ?

shut quest
vocal river
#

Finally yessssssssss 👍 Solved it

hoary depot
#

did you ever solve this?

safe star
#

what module

spare path
#

this is web fuzzing

#

final skill assessment

fathom pendant
#

@spare path why are you filtering out 200 response code?

spare path
#

it floods the terminal if I don't

#

I guess that's my mistake

fathom pendant
#

Use a different thing to filter out

spare path
#

ok will investigate thank you

fathom pendant
#

As 200 response code will also be what the actual valid response will give

spare path
#

I did wonder that

#

regex would be my next guess

fathom pendant
#

Perhaps size may be a better filter

spare path
#

ah

oblique dawn
#

How are the exploit development modules in htb academy?

cloud urchin
#

i don't think there are any

fathom pendant
#

Yeah there's not really a maldev academy module

cloud urchin
#

i'd recommend maldev academy

safe star
#

i remember seeing a -X POST in your command

spare path
#

ah I have not yet

safe star
#

get request shouldve been the first method you tried

spare path
cloud urchin
#

are you literally using IP:PORT or did you replace those with the actual ip and port?

spare path
#

I did replace

#

so the last lead I was following is the parameter ||accessID|| which the page will spit out to you if you do a basic curl I'm trying to figure out where to fuzz that param or how

midnight galleon
#

sqsh isnt returning any output for basically any comand

safe star
#

Did u try panel.php?accessID=

spare path
#

it's searching for valid endpoints

safe star
#

Wydm just use ffuf

limber river
cloud urchin
#

i think i remember having issues with sqsh too and just used sqlcmd, worked great

limber river
#

I perfer msssqlcient

midnight galleon
midnight galleon
limber river
midnight galleon
#

i found the pass of the mssqlsvc user, but auth with it isnt working

limber river
#

remember there's two ways of authentication

spare path
#

WOOOHOO I found it thanks folks!

#

everyone's advice was helpful in the end used most of it

midnight galleon
limber river
#

idk if this is the right name of options but check the help

midnight galleon
#

interesting

#

i wonder how does this works

safe star
#

Mssqlclient is great

#

Can just type a command and it does it for you

#

Like enable xp_cmdshell

midnight galleon
#

how does the windows auth part works?i thought that the mssql server authenticate from the context of a loggedin user

limber river
#

like local-auth in nxc

midnight galleon
#

but if for example the rdp port is closed, how are u still able to auth?

cloud urchin
#

re-read the section

#

d0s3nt literally gave you the answer

limber river
safe star
#

Rdp isn’t only for domains

midnight galleon
#

What i understand is that, it uses your already loggedin session to authenticate you against the sql server

limber river
cloud urchin
#

you don't need to post contents of the module

midnight galleon
#

but this machine isnt domain joined right?

limber river
#

so local-auth authenticate against SAM

cloud urchin
#

you can authenticate against services if they have their own username/password scheme or you can authenticate against other things like windows

midnight galleon
cloud urchin
#

you've spent all this time asking about it over and over instead of just reading the section again

#

plus d0s3nt gave you the answer

limber river
lusty thicket
cloud urchin
tame gyro
#

hello

empty trout
#

i was doing footprinting module and in domain enumration it is sending request to shodan to find moreinfo . when i tried it there is access denied (403 forbidden) i initialized my api key

storm elk
empty trout
#

then i was thinking maybe my credits are empty so i created new acc and then tried same error

cloud urchin
empty trout
#

??

cloud urchin
empty trout
#

yeah i know but how come i dont have credits in shodan when i created new account

cloud urchin
#

i think the command is something like shodan info to see how many you have

#

i forget exactly but use the help option to find out

spare path
#

So I've found the subdomain and I'm just kind of pulling a blank on what to do next with this info. When I try ||ffuf -w common.txt -u http://subdomain.fuzzing_domain.htb:PORT/FUZZ -e .php,.html,.txt,.bak,.js -v|| I just get a bunch of errors piling up

#

I've replaced the exact port and domains etc for spoiler purposes

#

also where I can ask about help for VM networking?

safe star
#

its a vhost not dns record

#

u have to fuzz the host header

spare path
#

ok let me think on this

safe star
#

capture a request with burp and look at the host header

unique ether
#

Almost finished

rustic sage
#

Looking for a decent wifi hacking antenna on amazon and need some advice. Which one should I get?

spare path
#

I used the incorrect terminology earlier

safe star
spare path
#

I see

#

I don't really recall using the vhost for anything in the earlier lessons in the module kind of stumped now with what to do with it lol

#

I did see that it accepts xml?

#

so perhaps I could craft an xml post fuzz

safe star
#

they did go over vhost

spare path
#

yeah I reread the vhost section but don't see how it would apply to my situation yet

safe star
#

u just did

#

u found the subdomain

spare path
#

yeah gobuster gave me the subdomain by fuzzing the vhost

#

my apologies if I'm a bit dense on this still early in my learning process

safe star
spare path
#

ah ok I did attempt that but didn't notice any immediate results will try again

shut quest
spare path
#

aha I've progressed

#

thank you again

spare path
#

on separate lines

shut quest
#

all on one line

safe star
#

IP sub.domain

shut quest
#

if it's a different ip, then that's a new line

spare path
#

got it

safe star
#

u can also add it like this for multiple domains <IP> sub1.domain sub2.domain

spare path
#

neat and it's just a space to separate? I think I noticed tab was more ideal when separating the IP from the domain

shut quest
#

doesn't matter, whatever looks prettier to you

spare path
#

now to go back and note down how I got there

wispy pumice
#

Is anyone good with Evilginx and how to create phishlet

fathom pendant
#

That has nothing to do with any academy modules that I know of

limpid hemlock
#

Hey in the attacking thick client applications im at x64 debugger place and i need to find the magic bytes from a type of map and protrction set to RW but inside that i dont seem to find the magic bytez MZ IN THE ASCII COLUMN

fathom pendant
limpid hemlock
#

Yes

fathom pendant
#

Did you start the program before or after only setting that

#

The map they want you to see is at exactly the same position, relatively

#

If you set it after loading the thing then you need to restart it

limpid hemlock
#

I started the program only after i went to options preferences and only makrked exit breakpoint

#

And in the result i only see one rw with map type but when i check it by double clicking i dont see the magic bytes in ascii

fathom pendant
#

There should be several if you did it right

#

Double check the settings

limpid hemlock
#

Yaa i only see one

#

With map rw

#

Mm

fathom pendant
#

Size should be 3000

safe dock
#

Guys my netcat is not grabbing the banner

#

All the time it's showing unknown ip portno , no route to host

limpid hemlock
#

Mm i dont thnk i find it im doing something wrong but no idea what us wro.h

#

Wrong

fathom pendant
fathom pendant
#

If there's no route to host; are you connected to the vpn

limpid hemlock
fathom pendant
#

Basic netcat syntax is
nc ip port

fathom pendant
safe dock
limpid hemlock
safe dock
#

@fathom pendant I got it bro it was all that academy vpn , I downloaded it again and tried then I got it

short sentinel
#

Hi, anyone has face 403 error while trying to login to splunkbase from HTB acadamy lab? I am getting "03 ERROR
The request could not be satisfied.
Request blocked. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

Generated by cloudfront (CloudFront)
Request ID: uQYs5Yiu4F9gjvDk2NIn4294Exa2B91MuJoxWdxzVMOqiJvxhcjcCw==
" error

fathom pendant
#

One day they'll have an image for it

somber fiber
spark spruce
normal sand
#

Module: Linux Privilege Escalation
Section: Containers
Link to section: https://academy.hackthebox.com/module/51/section/1588

I'm working on the question at the end of the section. I managed to import the container, initiate the image, and even started the container. However, the following command doesn't work for me:

lxc exec privesc /bin/bash
Error: Command not found
unborn plaza
#

Hi guys. When do you plan to put the video lessons in the academy? just reading is more stressful to learn

#

Anyone else think like me?

normal sand
somber fiber
#

try any of this if it works

lxc exec privesc -- /usr/bin/bash -i
or
lxc exec privesc -- /bin/bash -i

#

we can try forcing him to open shell as intractive

#

maybe it will work?

normal sand
somber fiber
#

so its zshell?

normal sand
#

The reason the command below worked was because there was a sh binary in one of the PATH's folders.

lxc exec privesc sh
somber fiber
#

still you can try -- as a signal for end of command

#

try if this works

normal sand
somber fiber
#

-- This signals the end of command options for lxc exec, and everything after this is passed to the container's shell.

somber fiber
normal sand
#

Yeah, I tried it in your commands.

#

I'm 100% sure it didn't work because the image in the exercise doesn't have a bash binary present in the image's system.

somber fiber
#

insted of bash use sh

#

lxc exec privesc -- /bin/sh
or try this
lxc exec privesc /bin/sh

#

does it have any login?

normal sand
somber fiber
#

so you got unblocked ?

normal sand
somber fiber
normal sand
somber fiber
normal sand
patent sky
#

Hello there ! Attacking common services Easy Lab, So, so far i found f**** credential, i tried to connect to ftp and i found nothing, when i try to connect to mysql doing : mysql -u f**** -p9******** -h 10.129.203.7 i get : ERROR 2026 (HY000): TLS/SSL error: SSL is required, but the server does not support it Am i on the right path ? I did something wrong ?

safe star
#

is it mysql or mssql?

somber fiber
#

not sure if that can get you through the SSL check

patent sky
#

it worked just fine, damn i am soooooooooooo bad

#

Thanks a lot

safe star
#

thats weird. I never got that error for the module

somber fiber
limpid hemlock
#

Ya in order to get a new exe they say we have to run a monta.ps1 script in program data i double clicked and run with powershell that monta.ps1 script but not new exe is gotten in that folder

#

Im doing the attacking thick client app in attacking common services any help somebody

lofty phoenix
#

does anyone else get netbios timeout errors when they run the spider_plus module from crackmapexec?

slate axle
#

hey guys, i'm doing Exploiting SSRF section in server-side attacks module, and the exercise wants me to download this tool using python 2.7 but the problem is this version of python is no longer exist in the machine also i can't find it anywhere, any suggestions on how to solve it ?

#

btw if i used any other version of python i got an error from the tool

fiery berry
slate axle
acoustic owl
#

You can try to install Python2

Download the Python 2.7 source tarball from the official Python website.
Extract the tarball: tar -xzf Python-2.7.x.tgz
Follow the installation instructions in the README file or use the following commands (no guarantees):
cd Python-2.7.x
./configure
make
make install

slate axle
#

it worked

#

thanks ❤️

safe star
limpid hemlock
safe star
#

Was that just the powershell part?

limpid hemlock
#

Attacking thick client that section actualy people 2 points sometimes the initial bat file isnt spawned in the /2 directory ittl just be in the /temp directory
Next thing i got a bit stuck was at the debuging section i ran the restart service exe in the apps folder itslef but i need to do some stuff mentioned in the module and run a new restart service inside a programdata folder

safe star
#

That was the easy part unfortunately 💀

#

gl on the second part for that section

limpid hemlock
safe star
#

I’m talking about java reversing next section

limpid hemlock
#

Oh i havnt stared that yet took a breather will start it soon

rough comet
quiet trout
#

im not fully awake this morning, someone mind helping me better understand here on the Session Attacks module:

https://academy.hackthebox.com/module/153/section/1449

the site is vuln to csrf and we manip the email param, we use it to make a call back to our nc listener, and the listener receives a get req and turns over all the url params (prob cookies, need to check request), why is it doing this, and not just doing a GET on the (somewhat invalid) resource itself?

#

i have no javascript to return cookies/params to the nc listener in the POC

#

oh wait its the page source

#

... sorry, havent had my coffee yet... just came thru funny looking.

next bronze
#

is the target ip correct

dawn fog
#

i don't know why 4444 is there but the rest is correct

next bronze
#

well your rhost and lhost is the same

dawn fog
#

i'm guessing there not meant to be

next bronze
#

unless you want to eternal blue yourself, no

dawn fog
#

do i need to remove the end part after :

next bronze
#

put the ip only

safe star
#

remove the port number

next bronze
#

also don't bother with eternal blue, it's not gonna be that

safe star
#

arent those ips a bit diffrent from the other machines

next bronze
#

what module and section? are you just trying random exploits?

safe star
#

i dont think u can get rce on the 80-97 ip machines tbh

dawn fog
dawn fog
next bronze
#

what makes you think that it's gonna be eternal blue thonk

#

go to the ip given in your browser and take a look

dawn fog
#

like do you mean to do a nmap?

safe star
#

no

#

just open it in firefox

dawn fog
#

oh, even i can do that

#

what next?

safe star
#

look at the question

dawn fog
#

Try to identify the services running on the server above, and then try to search to find public exploits to exploit them. Once you do, try to get the content of the '/flag.txt' file. (note: the web server may take a few seconds to start)

#

okay sorry to ask, but how do i identify the service running

safe star
#

look for version numbers and try to find an exploit

#

the example isnt going to be the exact same

#

u had a version number on the webpage

dawn fog
#

okay so your saying that there was a version number in the target i spawned

#

and if so, how do i find such thing

pseudo kiln
#

anyone knows how they get the terminal output to show nicely like this in obsidian ? from the reporting module

next bronze
#

that is not nice at all, the columns are not aligned

safe star
#

just looks like a code block

safe star
pseudo kiln
#

when I do code block it looks like this

for comparison

#

it's some white text on a greyish background, but theirs looks much better

safe star
#

it depends on your theme

next bronze
#

there's a code styler plugin