#modules

1 messages ¡ Page 176 of 1

marsh echo
#

ahhh

#

no my bad

fathom pendant
#

The previous flag has you be elite to figure it out 😉 this one is web

fierce veldt
#

@fathom pendant Do you keep notes per module or per chapter? If that makes sense not sure if those are the correct terms.

marsh echo
#

i find it but i thought it was the previous flag that was intercepted on port 39337 but i just realized that it's two different ports i'm so stupid sorry for the inconvenience

fathom pendant
#

Get the end user to make the connections themselves

fierce veldt
#

Do you take notes on the section as a whole or each module within the section? For example like Active Directory Enumeration Attacks is what I referring to as section v the skills assessmnet is the module.

next bronze
fierce veldt
#

Just wondering how you're so organized

fathom pendant
#

Ah

next bronze
#

reading is hard kek

#

got em

fathom pendant
#

Yeah I keep notes on modules and sections

#

Listen I'm eating pizza

#

My brain is at 1%

#

Try to klist it

quiet heart
#

This is what I see
~# export KRB5CCNAME=/var/lib/sss/db/ccache_INLANEFREIGHT.HTB

Ticket cache: FILE:/var/lib/sss/db/ccache_INLANEFREIGHT.HTB
Default principal: LINUX01$@INLANEFREIGHT.HTB

Valid starting     Expires            Service principal
01/05/24 23:50:02  01/06/24 09:50:02  krbtgt/INLANEFREIGHT.HTB@INLANEFREIGHT.HTB
    renew until 01/06/24 23:50:02
01/05/24 23:50:02  01/06/24 09:50:02  ldap/dc01.inlanefreight.htb@
    renew until 01/06/24 23:50:02
01/05/24 23:50:02  01/06/24 09:50:02  ldap/dc01.inlanefreight.htb@INLANEFREIGHT.HTB
    renew until 01/06/24 23:50:02```
analog dock
#

That ccache looks weird to me idk

next bronze
#

the question asked for flag in \\DC01\linux01, it could work? can't remember

#

try smbclient to dc

fathom pendant
#

It should work

quiet heart
analog dock
#

Output of klist makes it look like it should work tbh

#

Well

#

Don’t you just dump the creds?

fathom pendant
#

Try just DC01, bc it's not giving you a fail

#

Just status_reset

quiet heart
fathom pendant
#

Hmm

analog dock
#

You have krbtgt

fathom pendant
#

Try without the -c

#

Iirc I did this with just the ccache

analog dock
#

Shouldn’t you just get LINUX01$ ticket?

#

At least that’s what the question asks for

fathom pendant
#

Ccache works just as fine

#

Iirc

analog dock
#

I don’t remember this module ngl

fathom pendant
#

My notes on this are sparse

analog dock
#

The hint says “there is a file containing the credentials of Linux machines in active Directory”

quiet heart
#

yes

fathom pendant
vital crystal
#

What's the worst thing that you can do if you find a xss vulnerability

fathom pendant
#

You've asked this like 20 times today, short answer: data exfiltration. This channel isn't a casual chatter channel, read #welcome

cedar void
#

https://academy.hackthebox.com/module/143/section/1275

I am trying to answer the following question from this module section:

"What other user in the domain has CanPSRemote rights to a host?"

I launched 'bloodhound' and tried pasting the cypher query into the Raw query box and it returned no results.

||MATCH p1=shortestPath((u1:User)-[r1:MemberOf1..]->(g1:Group)) MATCH p2=(u1)-[:CanPSRemote1..]->(c:Computer) RETURN p2||

fathom pendant
cedar void
fathom pendant
#

yep

#

there's a button to import in bloodhound

analog dock
#

Or just drag and drop

fathom pendant
#

that too

shut wraith
#

Can I DM anyone for help with Hydra

next bronze
#

you can just ask here

shut wraith
#

hydra -C /usr/share/seclists/Passwords/Default-Credentials/ftp-betterdefaultpasslist.txt whats-my-password-web.chal.irisc.tf http-post-form "/api/login:username=^USER^&password=^PASS^:F=Invalid username"
Everything works but I am getting every attempt as Successful.

This means the F=Invalid username" is not working. What do I put in there to make it work

next bronze
#

probably because the response doesn't contain that string

shut wraith
#

U can test the link urself it contains that string

next bronze
#

send it through burp and see for yourself

shut wraith
#

Here u go sir @next bronze

next bronze
#

proxychains hydra, set proxychains.conf to the hdyra port
http 127.0.0.1 <port>

shut wraith
next bronze
#

proxychains4.conf probably

shut wraith
#

That's not there either

analog dock
#

At least my parallels kali does have it

#

Locate proxychains4.conf

#

It’s in /etc/ for me

shut wraith
#

So now I add the hydra traffic to the burpsuite port which is 8080 correct?

next bronze
#

it's whatever you have configured in burp

shut wraith
next bronze
#

I sent it, scroll up

shut wraith
#

Why is it trying to connect to port 9050 even though I specified port 8080

next bronze
#

comment that line out

next bronze
shut wraith
analog dock
#

This does not look like a module to me

#

Most likely an active ctf

analog dock
#

If it’s an active ctf, we all can’t do it

shut wraith
next bronze
shut wraith
#

Wow burpsuite professional is so much better than hydra...

#

I wish I had it

analog dock
#

#include <stdio.h>

next bronze
shut wraith
next bronze
#

faster like 2k req/s over http? no

shut wraith
#

Okay but am I right that some responses are blank due to a timeout duration on the web site?

next bronze
#

🤷‍♂️ I'm not the one bruting it, couldn't tell ya

cedar void
shut wraith
#

I give up I'm gonna use burpsuite overnight

#

Nvm I can't even do that cause burpsuite freezes when I load rockyou into the payload

next bronze
#

what are you trying to do here? rockyou is only good for hash cracking, way too long for bruting password

shut wraith
#

So what list do u recommend

next bronze
#

there are smaller rockyou in kali or darkweb top 1xxx

next bronze
cedar void
#

I did

next bronze
#

the one you used is to find sqladmin

#

and the collector should collect everything

cedar void
#

Nevermind , I redid it and got a different result

cedar void
#

I don't know why the flag.txt is not in that directory:

" Leverage SQLAdmin rights to authenticate to the ACADEMY-EA-DB01 host (172.16.5.150). Submit the contents of the flag at C:\Users\damundsen\Desktop\flag.txt. "

" ||Get-SQLQuery -Verbose -Instance "172.16.5.150,1433" -username "inlanefreight\damundsen" -password "SQL1234!" -query 'Select @@version||'"

https://academy.hackthebox.com/module/143/section/1275

fathom pendant
cedar void
#

I guess I would have to pivot from the windows machine into that address , just like in the last module

fathom pendant
#

it's a lot simpler than you think even :)

#

refer back to attacking common services/footprinting and mssql to find the right command for reading a file

tawny juniper
#

Hi everyone, can you help me with the last question in Attacking SMB, ATTACKING COMMON SERVICES? I cant ssh, it keeps showing this error:

  • ssh permission denied (publickey)
    I tried using root, generate rsa keys, but no luck.
fathom pendant
#

you can't generate your own RSA key to connect to it

#

since you're on Attacking SMB, perhaps you should do that; look at SMB and see what you can do to find an exposed id_Rsa key

tawny juniper
fierce veldt
#

For AD Enumeration & Attacks - Skills Assessment Part II

Could someone tell me whether or not you use SMB to connect to MS01 and retrieve the flag? Think I am approaching it the wrong way if not.

#

Never mind got it! Was able to RDP which wasn't working intiialy

#

I had the wrong IP :3

next bronze
#

if you have enough privs and can access the SMB services, you can access the whole file system

fierce veldt
next bronze
#

for windows nmap -sV can usually grab the netbios name which is the hostname

#

or use netexec, probably the best tool for pentesting windows and AD

lofty rivet
#

Anybody have a second to talk about Sau?

fierce veldt
fathom pendant
lofty rivet
real copper
#

module "Introduction to Active Directory Enumeration & Attacks " in DCSync section can you plz upload secretdump.exe
cuz i couldn't find the correct complied version fow windows

fathom pendant
cedar void
still heath
#

hyy can anyone help me on SERVER-SIDE ATTACKS
Nginx Reverse Proxy & AJP
Is my conf right

worker_processes auto;
pid /run/nginx.pid;
error_log /var/log/nginx/error.log;
include /etc/nginx/modules-enabled/*.conf;

events {
    worker_connections 768;
    # multi_accept on;
}

http {
    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    types_hash_max_size 2048;
    # server_tokens off;

    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    ##
    # SSL Settings
    ##

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
    ssl_prefer_server_ciphers on;

    ##
    # Logging Settings
    ##

    access_log /var/log/nginx/access.log;

    ##
    # Gzip Settings
    ##

    gzip on;

    # gzip_vary on;
    # gzip_proxied any;
    # gzip_comp_level 6;
    # gzip_buffers 16 8k;
    # gzip_http_version 1.1;
    # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

    ##
    # Virtual Host Configs
    ##

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;

    # Comment out the existing server block

    # upstream tomcats {
    #     server <TARGET_SERVER>:8009;
    #     keepalive 10;
    # }
    # server {
    #     listen 80;
    #     location / {
    #         ajp_keep_conn on;
    #         ajp_pass tomcats;
    #     }
    # }

    # Append the new server block inside the http block
    upstream tomcats {
        server 83.136.251.235:59388;
        keepalive 10;
    }

    server {
        listen 80;
        location / {
            ajp_keep_conn on;
            ajp_pass tomcats;
        }
    }
}
next bronze
fathom pendant
cedar void
#

the DB would be on the Windows target machine I mean

fathom pendant
#

The dB would be on a host the windows machine has access to

next bronze
#

depends on how you want to do it, I would personally set up a pivot because I dislike having to open local shells

clever dew
#

Anyone able to give me a nudge on this one please?

INTRODUCTION TO DIGITAL FORENSICS - Practical Digital Forensics Scenario

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

I have identified the process and the process command line arguments, I have decoded the argument and believe I have an answer however it does not seem to be correct.

acoustic owl
#

You are looking for the tool.
Have a look at the link provided to see which tool offers this repo

clever dew
#

Is it a tool or a module from Powersploit?

acoustic owl
#

According to the description, it is a tool

#

||There is also a module in the Academy about this tool ;-)||

clever dew
#

Thanks, I got the answer, the hint was a little too OP fingerguns

May I DM you to discuss please?

heavy marsh
#

On the "Living Off the Land" section for AD I used the command

dsquery * -filter "(&(objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.804:=2)) " -attr description distinguishedName

and was able to find the disabled user accounts, but I can't filter further for administrative privileges.

#

What command would I use for that?

#

I tried this:

dsquery * -filter "(&(objectCategory=person)(objectClass=user)(memberof=CN=IT Admins,DC=INLANEFREIGHT,DC=LOCAL)(userAccountControl:1.2.840.113556.1.4.804:=2)) " -attr description distinguishedName

but that gave me no output

#

The original command gives me the answer I need for the module, I'm just trying to see if I can further filter it.

ebon minnow
#

Module: Login Brute Forcing - Skills Assessment
Question: Once you access the login page, you are tasked to brute force your way into this page as well. What is the flag hidden inside?

Do I need to mutate the username for the second part to get the right password? I have tried using the password lists that take less time to brute force than the time that the Docker Machine is alive

undone cypress
#

Hi!
Who has information about where the "path" called "Junior Penetration Tester" has disappeared?
I remember there was such a path and it included 29 modules.
I even wrote them out for myself for training.
(jpg)
But now I see completely different paths of learning. Is that how it was intended?

autumn pilot
#

There wasn't such a junior path, you are maybe mistaking it for the Peneteration Tester path

undone cypress
#

Yes, it is possible, but it definitely was and included a decent list of modules.

sleek moss
#

is it good idea to add downloads and desktop to the $PATH variable?

tranquil axle
ebon minnow
#

Module: Login Brute Forcing - Skills Assessment
Question: Once you access the login page, you are tasked to brute force your way into this page as well. What is the flag hidden inside?

acoustic owl
ebon minnow
#

Trying the short password lists but theyre not working, the longer ones take more time than the docker instance is alive for

undone cypress
#

@tranquil axle@acoustic owl Yeah, yeah, that's right, it looks like it.
This is now visible not in the "path", but in the exams.
The modules really match.
Thanks, now something has cleared up!)

ebon minnow
calm pier
#

Hi, doing the Windows privilege escalation module, cannot connect to a Windows machine using freerdp. I am running version 2.11.2 on kali. Here the error messages:

fathom pendant
#

Try wrapping the password in single quotes

ebon minnow
fathom pendant
ebon minnow
#

ok

fathom pendant
#

I'm not downloading an rtf file on mobile to check it

ebon minnow
#

the suggested password list for my module is taking 196 hours, that cant be right?

acoustic owl
tulip dragon
#

getting this error in RDP and SOCKS Tunneling with SocksOverRDP module

#

oh

#

no

clever smelt
#

hi~ I'm stack on Q3 either. Did u solve it ?

#

hi~ Did u solve it? I can help

ebon minnow
#

fixed it but now its saying 2 passwords are valid?

clever smelt
#

yes it's painful, I'm stacking on Q3. Did you finish this assessment?

ebon minnow
#

using the command in the cheatsheet results in finding incorrect passwords but hydra says theyre correct, adjusting the command to match the html of the server results in a 200 hour brute forcing attempt

#

can someone help?

sly dome
#

can i ask here about the use cases of 2 windows exploits? its somewhat related with the modules

#

or maybe i can dm @next bronze ?

fathom pendant
ebon minnow
#

why are my screenshots being deleted? I have a genuine question and am trying to pass these modules

fathom pendant
#

Your screenshot likely contains spoilers

ebon minnow
#

ok

fathom pendant
#

Redact info my dude

#

Unless it's automod yeeting you

#

In which case idk

ebon minnow
#

why would automod yeet me

fathom pendant
#

¯_(ツ)_/¯

ebon minnow
#

i havent broken ToS

fathom pendant
#

Mee6 is dumb

#

I mean yeeting your messages

ebon minnow
#

Is there someone I can speak to resolve this? Im paying out of pocket to get this cert and this isnt helping

fathom pendant
#

There's a good portion of people paying out of pocket my dude, you're not special

ebon minnow
#

point still stands

fathom pendant
#

¯_(ツ)_/¯

ebon minnow
#

asking a genuine question

fathom pendant
#

Learn how to redact info better i.e. http://ip:port

#

-u u*

acoustic owl
fathom pendant
#

Wrap your commands btw in backticks for better parsing

acoustic owl
fathom pendant
#

Cause I doubt it's you

#

might be mee6 thinking that its a repeated message ¯_(ツ)_/¯

#

Also kinda weird to have rockyou on your desktop

#

Usually it's in /usr/share/wordlists/

#

(And normally zipped)

ebon minnow
#

moved it there becuz lazy ¯_(ツ)_/¯

acoustic owl
#

It's up to the rest of the command 😉
Hydra expects some information so that it can work properly

ebon minnow
#

cheers

fathom pendant
ebon minnow
fathom pendant
sleek moss
#

can anyone help password attack im on mutated password i mutated the password with hashcat and now hydra brute force but it taking ages for ssh

sleek moss
#

what can i attack then

fathom pendant
#

Run Nmap and see

hollow jackal
#

Can someone help me with Password attack : Network Services , there is a mission : " Find the user for the SMB service and crack their password. Then, when you log in, you will find the flag in a file there. Submit the flag you found as the answer." I connected to smb with credentials I cracked and I got a flag but when I paste it its says its wrong flag

sleek moss
#

did u do this before

tight flint
#

Can someone help me with "Navigate to http://[Target IP]:8000, open the "Search & Reporting" application, and find through SPL searches against all data the port that one of the two C2 callback server IPs used to connect to one of the compromised machines. Enter it as your answer." PS: I got the answer already but I don't think I did it the right way. Module Name:UNDERSTANDING LOG SOURCES & INVESTIGATING WITH SPLUNK '
Section: Intrusion Detection With Splunk (Real-world Scenario)
Please dm me and thank you in advance 🙂

fathom pendant
hollow jackal
#

What? , no extra spaces same flag as 3 flags before

fathom pendant
#

:) --local-auth iirc or --windows-auth

#

All users for these questions are different

hollow jackal
#

k king

hollow jackal
fathom pendant
#

Not afaik

#

But you aren't specifying a domain anyway

hollow jackal
#

👍

sleek moss
#

can someone plz help attack password mutable

fathom pendant
sleek moss
#

ftp

fathom pendant
#

Told you this earlier

sleek moss
#

i did i tried it

fathom pendant
#

-t 48 works for most people

sleek moss
#

also for the mutable password should it be best64 or from the custom rules

#

like hashcat own rules or the folder rules

fathom pendant
sleek moss
#

ok danke

fathom pendant
#

And the wordlist

#

As instructed literally by the section

sleek moss
#

i did i tried ftp with it and found nothing..

fathom pendant
#

Ftp has it

#

¯_(ツ)_/¯

sleek moss
#

the user is sam right

#

hashcat --force password.list -r custom.rule --stdout | sort -u > mut_password.list

ebon minnow
#

good module (brute forcing)

sleek moss
sleek moss
#

to stop when it finds

fathom pendant
#

It will automatically stop

#

As you're only bruteforcing a single user

sleek moss
#

o right

fathom pendant
#

-t 48, just have patience

sleek moss
#

danke bro

#

i finally got it...

weary stump
#

For the Privileged Access section of the AD Enumeration and Attacks module, I am having trouble with the third question: "Leverage SQLAdmin rights to authenticate to the ACADEMY-EA-DB01 host (172.16.5.150). Submit the contents of the flag at C:\Users\damundsen\Desktop\flag.txt." The hint says to do this with mssqlclient.py with is an impacket tool yet the attack machine is a windows box. Can anyone help?

fathom pendant
weary stump
#

yeah I thought about pivoting but it look's out of scope of the module for me

#

How do you know for 172.16.5.225 ? is it specified somewhere ?

fathom pendant
fathom pendant
#

One of the recommended pre-requisite modules is the pivoting module

#

You can also use a modified version of the example they use for the SQL query with PowerUpSQL to read file (refer back to attacking common services on reading local files)

fathom pendant
#

:p but pivoting is very much in-scope for the module

obtuse verge
karmic spade
#

I have a problem with live engagement in the shell and payloads module. When I connect via xfreerdp, I need to log in to tomcat manager. However, there is neither google chrome nor firefox on the machine. Which browser should I use? Thanks.

lusty thicket
#

maybe

karmic spade
rough tree
#

Hello guys, someone who did the HTTP Attacks module and would like to drop a nudge on HTTP Splitting part? Can't get my XSS to work...

analog dock
queen olive
severe eagle
#

Hello everyone I am doing the linux privesc and having issues with log rotten the getting shell with logs if anyone has done it and keen to help please pm

analog dock
severe eagle
#

thank you having look now

wraith junco
severe eagle
#

will do

#

ok to pm

#

?

analog dock
wraith junco
analog dock
dense schooner
#

Hello,I connect via openvpn ( i try with TCP & UDP with diffrent servers eu us same issue)

autumn pilot
#

reach out to support via the website

cerulean grail
#

Can anyone help with finding the credentials for the admin panel in Nibbles? I ultimately managed to get in by guessing but the Hydra scan I ran showed that the password was 123456 which wasn't the actual password.

lusty thicket
sterile epoch
#

any idea why responder is not capturing the hash?

cerulean grail
#

It won't let me post screenshots here for some reason but I can show you. I'm aware that FPs exist, just wondering how I was supposed to obtain the password without guessing.

cerulean grail
#

Thanks

sterile epoch
cerulean grail
cerulean grail
# sterile epoch so whats the issue?

Well, the issue is that the "valid credentials" found were incorrect. I managed to eventually access the admin panel by guessing the password, but I'm trying to understand what I could have done differently to find it without just straight up guessing.

sterile epoch
#

Oooo

sterile epoch
#

any help on why i cannot start a rdp session from my vm to the target I could do it with pwnbox

#

I checked and I can ping the target

severe eagle
manic onyx
#

Hi everyone, I am doing the AD attacks and enumeration module and having trouble with an answer for ACL enumeration section. I need to report the ObjectAceType of the first right of user forend over group GPO Management. I have found this with BloodHound and even went into the Active Directory Users and Computers to confirm, but have had no luck in submitting the answer. I've tried the actual ACL type (Access-X or sysaudit) and the resolved name of the rights. I have yet to get any results about the group from my PowerView query. Am I formatting something incorrectly or am I not looking at the right value?

misty current
manic onyx
#

Ok, that makes sense

analog dock
#

Follow the section I guess

misty current
#

Any mods that I could DM? Would like to know about posting a script here and if I'm allowed to share it.

sterile epoch
analog dock
sterile epoch
#

module: attacking common services
section: attacking common services Lab: Hard

analog dock
sterile epoch
#

I need to get a user that has admin rights so I looked for people to impersonate found 2 none of them had sysadmin role. So I thought of using the service hash to login

lusty thicket
#

it was covered in the module iirc

lusty thicket
sterile epoch
cerulean grail
misty current
# analog dock What’s the script about?

It's a simple auto-config script I've made to ease life a bit with some of the modules like advanced xss and csrf. Basically saves you from the trouble of manually changing the port in the URL everytime after adding vhost/domain to the /etc/host file. But, it's hosted on my github, so need to make sure I'm not breaking any rules.

manic onyx
lusty thicket
sterile epoch
misty current
analog dock
#

Shouldn’t be an issue if it helps people

dusky rivet
#

Hello everyone,
Happy new year!

Need a hint on the module : Web Attacks - skills assessment
Context: I already have the list with ||uid, username, fullname, compagny|| via the request : ||/api.php/user/||.
On this way, I also got the token for everybody via : ||/api.php/token/||
I'm currently logged on the htb-student account. I switched to admin user and I'm on his control panel. I tried to reset his password via the request : ||/reset.php||. I tried different things :
||verb tampering on the url /reset.php|| --> ||PUT, GET, OPTIONS, CONNECT, TRACE, DELETE=missing parameters (not working)|| / ||POST = Access denied, in that way I tried to swap the token, the uid etc. Nothing worked|| / ||HEAD = seems working but not anymore||
Question : Do I need to reset the admin password to continue? If yes, do I have to find the "||missing parameter||"?
Thanks in advance for your time!

sterile epoch
#

I tried only using aaaaa part but it still was an invalid hashs

misty current
next bronze
sterile epoch
reef spindle
#

yo

next bronze
#

I have no idea what section is that but try with another user

reef spindle
#

Osintgram is dead btw

grizzled schooner
#

wouldn't matter, against TOS to engage in illicit activities

reef spindle
grizzled schooner
#

report it to the authorities or the school, TOS prohibits this sort of thing for good reason

marsh echo
#

no one ?

grizzled schooner
#

sorry mate I haven't hit that module yet

marsh echo
#

no worry 😉

languid wharf
#

Hi, I'm working on AD Enumeration module first lab, ||I have found the credentials for svc_sql but can't connect to it using Enter-PSSession for some reason. I tried with: Enter-PSSession MS01.INLANEFREIGHT.LOCAL -Credential INLANEFREIGHT\svc_sql but don't get a prompt to enter the password ||. Any suggestions?

grizzled schooner
#

working on web edition information gathering, trying to obtain how many zones are on the target nameserver, I tried using hackertarger.com/zone-transfer but it says error check your api query and have also tried using dig and nslookup, but cannot find the answer, can someone give me a nudge

next bronze
languid wharf
#

I did setup a tunnel, but the winrm shell is very slow as well. Wondered if the Enter-PSSession alternative is better
I also tried to create cred object from the webshell but it looked like it doesn't save them and you can't use them

next bronze
#

evil-winrm

languid wharf
#

Yeah

dull thistle
#

why am I getting this error for PKI module?

#

[X] KRB-ERROR (16) : KDC_ERR_PADATA_TYPE_NOSUPP

topaz locust
#

figured it out, for everyone else struggling, there are other options available to you.

next bronze
dull thistle
#

I did, I gave the target 10 minutes before doing anything

#

I restarted the vm twice

buoyant escarp
#

Vulnerability Assessment / Nessus Skills Assessment
the Task gives me IP/creds
but also there is a different IP/creds when spawning the target
do they want me to scan both?

grizzled schooner
# next bronze use dig axfr

yeah everything throws back couldn't get address, have ||inlanefreight.htb and ns.inlanefreight.htb|| in /etc/hosts aswell

#

that or dig axfr gives me transfer failed

next bronze
#

dig axfr <zone> @ip

next bronze
stiff bone
#

Can anyone help HTTP ATTACKS with skill assessment?

unique finch
#

if a target has an old version of sudo runnng how would I actually run the exploit? I've already got access to a user on the system

#

how do you run more exploits in a meterpreter session?

buoyant escarp
fathom pendant
#

i mean you can run the exploit locally in the shell

unique finch
#

is that as simple as searching again and typing run?

fathom pendant
#

background search

#

you need to make sure your msf session is still running

#

because a post-exploit stuff in msfconsole will have you enter a session# for it to work from

#

what module are you working on?

unique finch
#

USING THE METASPLOIT FRAMEWORK <3

fathom pendant
#

i don't recall there being anything to do with old version of sudo

fathom pendant
unique finch
#

im trying sudoedit_bypass_priv_esc

fathom pendant
#

that way someone can tell you if you're way off track

unique finch
#

yeah

#

i think im on track, didnt know how to run post exploits

fathom pendant
#

i don't recall needing to do any sudo privesc stuff

unique finch
#

the last question just says the target has an old version of sudo running and to exploit it for root access

languid wharf
#

General question, how do I move files between two windows machines to whom I only got shell access? I tried setting up a smb share on one and access it from the other but it evil-winrm who runs the second shell crashes

fathom pendant
#

oh wait yeah, it's been a minute

unique finch
#

download <filename> in the meterpreter console

languid wharf
#

I have regular rev shells on both

fathom pendant
grizzled schooner
#

for info gathering web edition, do you add the ip and domain to /etc/hosts like this?
<ip> <domain>?

I'm getting really lost with these questions, I keep trying to mess around with dig and nslookup and I'm not getting anywhere, didn't know if I did that wrong

fathom pendant
#

there's usually better tools for certain jobs

unique finch
#

ah, i see

fathom pendant
#

if it's a public IP you don't gotta do shit

#

just specify like a public NS like 1.1.1.1 or 8.8.8.8

grizzled schooner
#

so do 1.1.1.1 inlanefreight.htb?

fathom pendant
#

oh

languid wharf
#

The evil-winrm shell runs thorugh proxychains and it behaves strange. I use techniques we've seen in preivous modules between two windows machine and it doesn't work

fathom pendant
#

for x.htb stuff, the IP is the spawned IP for the target

#

the 10.129.x.x

fathom pendant
#

if you can; try seeing if you can enable rdp

languid wharf
#

AD enumeration Lab 1, ||trying to upload mimikatz to MS01. I set up a smb share on the web01 machine using: New-SMBShare -Name "Vuln" -Path "C:\path\to\mimi" -FullAccess INLANEFREIGHT\svc_sql and I'm trying to access it from the proxychains evil-winrm shell using net commands but it crashes everytime||

fathom pendant
#

win-rm is kinda a bit dumb

next bronze
#

you can just upload directly with evil-winrm

fathom pendant
#

also that

#

win-rm has an upload and download function

languid wharf
#

Thanks

misty current
# grizzled schooner for info gathering web edition, do you add the ip and domain to /etc/hosts like ...

There's few things, like virtual hosting and name servers. Names server map domain name to IP, this is can be set in your /etc/resolv.conf
Then there's virtual hosting where developers make use of a single IP to host multiple websites. They basically have a vhost domain passed to the host header in the request to know exactly which site a user is requesting the host for. This is set in your /etc/hosts.

What you need is to add the spawned target to /etc/resolv.conf or add it directly to your nslookup command

sonic arch
#

Can anyone please help me with: Introduction To Nosql Injection Skills Assessment II.
I got the username and I am trying to get the token but I am stuck. I guess the token needs to be somehow associated with the username so I tired few things but nothing worked.

fathom pendant
misty current
#

yup, we just pass it to the nslookup or dig command directly

#

Atleast, that's what I too did for the modules.

fathom pendant
#

i've generally just been able to do the nslookup target ns-ip or dig type target @IP

misty current
sonic arch
coarse gulch
#

Anybody familiar with how meterpreter's download command exfiltrates data? I've been trying to find the code for the actual command itself but having trouble finding it

misty current
sonic arch
wanton jasper
misty current
#

If there were multiple users, it would be relevant.

grizzled schooner
#

having trouble finding the TXT record for info gathering web edition, tried ||dig txt inlanefreight.htb <subdomains> gathered from dig axfr inlanefreight.htb|| and got nothing, am I missing something?

marsh echo
lusty thicket
grizzled schooner
buoyant escarp
#

like layer 2

stiff bone
#

Can anyone help HTTP ATTACKS with skill assessment?

acoustic owl
grizzled schooner
#

wat

grizzled schooner
#

So when I did an axfr on inlanefreight.htb and see ||inlanefreight.htb and root.inlanefreight.htb 2|| on an SOA the second one isn't a zone?

acoustic owl
#

This is the RNAME field and contains the e-mail address of the person responsible

#

See the link above

acoustic owl
buoyant escarp
#

so far most of the modules ive done are so high quality, worth every penny 😄

grizzled schooner
#

so to count all of the A records I used ||dig axfr inlanefreight.htb @IPADDR | grep -E "IN A|IN A" | wc -l|| and went down the line of sub domains from the original axfr, and the answer was wrong, did I miss something? I've ran through footprinting again and this module just has me lost

fathom pendant
#

\|

#

unless you are, discord uses markdown

#

and it interperets \ followed by a character as an escape

#

\ \\

#

both ^ are double slashes

grizzled schooner
#

I don't necessarily know what you're getting at, but running that netted me answers on certain subdomains, I just didn't get the right amount I guess?

fathom pendant
#

i'm just referring to the command in the spoiler text

#

||` and `|| will encase a code in spoiler text
||like this||

grizzled schooner
#

right

#

i thought posting commands used that could be considered a spoiler weren't allowed, so I covered it or am I missing something

fathom pendant
#

i can't tell if you did IN A\|IN A

#

or just | IN A

#

is what i'm getting at

grizzled schooner
#

oh oh gotcha, just | I didn't add a slash

#

just piped it

fathom pendant
#

honestly i did ||grep " A " | grep -v "SOA"|| iirc

#

or something similar to that effect

#

before the wc -l you should evaluate the output to see if it's giving unexpected results

fathom pendant
marsh echo
fathom pendant
marsh echo
#

no I removed it instead I put -F to scan the first 100 ports

#

sudo nmap 10.129.2.47 -sV -sT -n -F -p- --disable-arp-ping --reason -T3

fathom pendant
#

you know what -p- is for yeah?

#

(to scan all ports) by adding -F it overrides it

#

:)

marsh echo
#

yes for scan all port but yes my bad i removed -p-

fathom pendant
#

you will find the appropriate port with -p-

#

do NOT combine it with any other port scan flags

buoyant escarp
#

-F scans the top 100 ports, -p- all ports available

fathom pendant
#

yes - iirc in docs and common sense; -F overrides other port scan flags

grizzled schooner
#

That was such a painful module, web is definitely my WEAK spot... lol

buoyant escarp
#

my weakness is Windows, i just hate Windows so much xD

grizzled schooner
#

yeah I got the answer, just painful

marsh echo
grizzled schooner
#

thank you though!

fathom pendant
lusty thicket
lusty thicket
grizzled schooner
buoyant escarp
lusty thicket
faint rampart
fathom pendant
fathom pendant
#

👍

faint rampart
#

But I feel you tho

lusty thicket
#

👍

fathom pendant
#

but as they showed

#

grep -E "\bA\b" is just better

urban valley
#

Exploiting Web Vulnerabilities in Thick-Client Applications in Attacking Common Applications has to be my least favorite section out of every single module I've done. Wth is this 😭

sleek moss
#

can anyone tell me the password for mtuated passwords password hackingm? I did it and got flag then I went offline then next day I c the next section is asking for the credentials///

lusty thicket
#

¯_(ツ)_/¯

sleek moss
#

that take 20 minute

urban valley
lusty thicket
languid wharf
#

Hi, I'm on the last question of the AD module lab 1: ||I've set up earlier in the machine dynamic port forwarding through meterpreter and I can reach the MS01 with proxychains using ping, but for some reason it doesn't work for the DC, even though they're seemingly on the same network||. Can someone pour some light on this?
I will check ligolo soon because so many of you have recommneded it, but I still want to try and troubleshoot this

next bronze
#

proxychains doesn't support ICMP (ping)

languid wharf
#

When trying to run ||secretsdump (which is why I need it)|| it doesn't work as well

next bronze
#

doesn't work means what? what's the error

languid wharf
#

It just quits

#

no error message

next bronze
#

run with -debug

languid wharf
#

I think I copied the wrong secretsdump.py lol, but it doesn't work now as well, I get a connection refused error

next bronze
#

are you targeting the right ip?

languid wharf
#

Yeah

next bronze
#

probe it with cme and see if it shows something

languid wharf
#

works now, removed and set up the proxy again

#

I'll look at ligolo before the next lab, it'll be the best option

eternal fox
#

When I go to connect to the VM, it doesn't allow me to put the password in for Linux Fundamentals section. Can anyone tell me why that happens?

fathom pendant
#

wdym?

#

do you mean as you type it doesn't appear

#

that's normal

eternal fox
#

Ohhhh okay like it recognizes im putting it in there but it doesnt show it right?

fathom pendant
#

if, for instance, in your vm you do sudo echo and it prompts you for the password, it will not show up there either

fathom pendant
#

baked right into ssh

eternal fox
#

Perfect okay thank you !

fathom pendant
#

also copy/paste is better so you don't misspell

#

(for pasting into terminal, you need to do ctrl-shift-v)

eternal fox
#

Right on okay I will do that I appreciate that !

fathom pendant
#

and likewise for copying From terminal, you need to add the shift-key

#

as ctrl-c is the cancel keyboard shortcut

eternal fox
#

Yeah i noticed when i did that it would put that line in to cancel lol

#

I went and did the Google Cybersecurity and just heard about the new cert that HTB introduced so I was excited to get more hands on with things.

#

from Coursera

#

but this is way better lol

sleek moss
#

i extracted LSA secrets and got flag but iw as just wondering what app/system uses those crendtials for example SMB 10.129.40.121 445 asd hu:asd

#

like it doesnt say what it used for

charred fable
#

hello guys

buoyant void
#

Question for you guys, couldn't find a clear answer searching through the discord or the forums for this. I finished the "Attacking Common Services - Easy" assessment and the flag indicates there are 2 ways to get to the flag. I'm trying to figure out the 2 way to get to the flag, and I'm completely stuck. Any help would be appreciated.

The method I used was: ||uploading a PHP web shell via MySQL and then executing commands through the browser and eventually finding the flag. ||

From what I've gathered there's a CVE ||regarding the CoreFTP build running but I can't seem to get it to work for me||.

winged zodiac
#

Hey I'm at ACTIVE DIRECTORY ENUMERATION & ATTACKS module and ACL Enumeration section till now most methods I used was manual and didn't try it bloodhound. But I want to know how to up and run bloodhound GUI in attack box. Is it even option is there ?

next bronze
#

if it already has bh installed then it's just neo4j start and bloodhound

marsh echo
fathom pendant
#

-p- should reveal a port that normal top-x scans wont

marsh echo
#

i use nc also

fathom pendant
#

Also you should really evaluate your --source-port

marsh echo
#

and source-port=53

fathom pendant
#

Including with nc?

#

nc -p 53 ip port

#

Ids/ips evasion under dns proxying should give you a better clue

#

Everything you need has been given by the module

marsh echo
#

thank I'm still digging

fathom pendant
marsh echo
#

thanks 🙂

fathom pendant
#

Aside from that it's just waiting a minute after a successful connection to get the banner

#

Iirc it's like 220 flag

#

220 is a status code

sterile epoch
#

Hi I am in the attacking common services module hard lab section
I have enum 1 ftp user, 1 rdp user. After looking into the ftp server found 3 names for the mssql database.
found the creds for a user of mssql database. the user could impersonate the other 2. Found 3 databases. after impersonation could access 1 database TestAppDB. got a table from that database . It contained 2 creds 1 for a user and the other for an admin. I tried using both for all the services on the target none of them accepted. I am stuck please help

fathom pendant
#

Read what the question wants and apply critical thinking, iirc it's reading a file yeah?

#

if you have sql_admin privs you can read any file on the associated DB's filesystem

marsh echo
sterile epoch
marsh echo
#

why port 50000 i dont undestrand :/

sterile epoch
marsh echo
#

why do you use this port to analyze ports, knowing that when I run my analysis with -p- I only get port 22 and 80?

fathom pendant
#

hint: it's the user from previous question

sterile epoch
fathom pendant
#

read the SQL section again :)

sterile epoch
sterile epoch
fathom pendant
#

that's odd

#

try resetting the lab bc that should be the way forward

sterile epoch
languid wharf
#

Maybe one of them is sysadmin on another db 🙂

fathom pendant
#

^

languid wharf
#

look at information.txt

fathom pendant
#

:P

sterile epoch
#

the users in the table are not working

fathom pendant
#

another server

#

enumerate for remote servers

sterile epoch
#

ok

#

I found 1 remote server

fathom pendant
#

enumerate via that path

fathom pendant
#

that single port scan is generally an example

#

if you continue to try and DM me without asking: I will block you and refuse to help you further

#

I'm more than willing to help you in the discord unless it's gonna heavily spoil something

#

you also need to learn how to adapt given code scenarios to fit your needs

#

i.e. > if the example has you scan a specific port; it surely should work for all ports

sterile epoch
# fathom pendant enumerate via that path

I do not now how connect to the remote server via mssql so I rdp using the creds for fiona then used a mssql client. I tried to use the creds discovered in the mssql table for julio and patric none worked

#

I am using sql authentication for this

marsh echo
fathom pendant
#

it has ways for you to use a current connection to interact with a remote server

sterile epoch
# fathom pendant read the SQL section again;

I could not change my user while connecting to the remote server, but I could change admin settings cuz john had privs. I used that to run cmd commands and get the flag. but if I am missing something can you please tell me how to login as another user while connecting to the remote server. I have the flag too if you want proof I can send it as a spoiler

#

And I have started on the new module so thanks for the help marcie

fathom pendant
#

the previous question leaned into it

sterile epoch
#

so the other databases were dummy?

fathom pendant
#

yep

sterile epoch
#

I feel cheated of 2 hours

fathom pendant
#

you ruled out that they led nowhere

#

so further enumeration was required

#

:)

sterile epoch
#

The new module pivoting looks kinda intimidating

#

I think I will take a break

charred fable
#

What is the inode number of the "shadow.bak" file in the "/var/backups" directory?
How come it says 1362 on mine. when the correct answer is 265293. ???

next bronze
#

did you ssh into the target

fathom pendant
#

^

main ridge
#

Hi. I'm very stuck on the "Attacking common services - DNS" module. I've read the questions here on discord and tried with subbrute from the pwnbox, but It's not working.

The problem is: when exeucting subbrute, I find few subdomains (where I couldn't find any more info) and eventually the execution ends with an error:

    verify_nameservers_proc.end()
AttributeError: 'verify_nameservers' object has no attribute 'end'

Here's the command

(also tried with python3)
(already added inlanefreight.htb to the hosts file and to the resolvers.txt)
(zone transfers are refused from the server)

fathom pendant
#

resolvers.txt should contain the IP of the target

#

names.txt doesn't need to be changed

#

aside from that one of the results gives you the answer

charred fable
#

but I dont under stand the other stuff about the download the VPN

#

when I click on download it my Mac cant open it

fathom pendant
main ridge
fathom pendant
charred fable
#

ok ..

charred fable
#

h* dont work

fathom pendant
charred fable
#

hahaha ok my bad

fathom pendant
#

the pwnbox is already connected to the vpn network

#

to ssh to the target you just need to do ssh <username>@<ip>

#

(replace <username> and <ip> with the relevant stuff)

#

the sections in linux fundamentals give you the creds to use

buoyant escarp
#

Shells & Payloads
Infiltrating Windows

what may be the issue here that its failing?

lusty thicket
fathom pendant
buoyant escarp
fathom pendant
#

LHOST should be your tun0 addr and RHOST should be the target IP

#

nothing else afaik to change

buoyant escarp
buoyant escarp
fathom pendant
buoyant escarp
#

but it should be MS17_010_eternalblue since the question before was explicitly asking about it

fathom pendant
#

unless it's the eternalromance one, which is psexec

buoyant escarp
#

ive tested MS17_010_psexec too

main ridge
# fathom pendant h* should work

okay.. Tried both of the h* and still not working.

Wrote them on all possible ways

h*.inlanefreight.htb
h*
h*.inlanefreight.htb.
h*.
h*.inlanefreight.htb. 604800 IN A <IP>
IP of one of them (the other is not returning any)

fathom pendant
#

the * is to indicate any number of characters after

lusty thicket
#

might take a few resets

lusty thicket
fathom pendant
#

ah

lusty thicket
buoyant escarp
main ridge
fathom pendant
#

:)

#

(also to prevent discord formatting, wrapping lines in backticks is helpful)

charred fable
fathom pendant
#

just looked myself

lusty thicket
main ridge
fathom pendant
buoyant escarp
#

meh NotLikeThis

charred fable
#

why is my pwd box so slow when im typing ? sometimes its like its stuttering

#

is there no download instead of this browser shit

fathom pendant
charred fable
#

ok soon.. haha

fathom pendant
#

also password boxes don't display anything when typing

charred fable
#

yea

#

so frustrating

buoyant escarp
#

i gonna try with pwnbox now

fathom pendant
buoyant escarp
fathom pendant
next bronze
#

last question of SA?

fathom pendant
#

shells & payloads; infiltrating windows

buoyant escarp
#

last one yes

fathom pendant
#

just ran the psexec one

#

it worked just fine for me

#

double check LHOST is set to tun0

#

easy to forget

#

the eternalblue one listed is jsut dumb

buoyant escarp
#

okay yes psexec works, dont know what ive missed when i tried psexec earlier xD

fathom pendant
#

probably didn't re-set the lhost

buoyant escarp
#

yea probably something stupid like that 😄

cobalt trench
#

Use the credentials for the admin user [admin:sunshine1] and upload a webshell to your target. Once you have access to the target, obtain the contents of the "flag.txt" file in the home directory for the "wp-user" directory.

#

Anybody available for some asssitance? I dont fully understand the question

charred fable
#

how do I copy and paste in pwdbox ?

lusty thicket
fathom pendant
next bronze
#

maybe it's because I'm using firefox

fathom pendant
#

there's also the little clipboard button on the bottom right of the screen iirc

next bronze
#

ah okay

cobalt trench
next bronze
#

that section would've walked you though how to write/upload a webshell in wordpress

cobalt trench
next bronze
#

you don't have to, you know where the file will be

buoyant escarp
#

?cmd=find / -iname "*flag.txt" -ls 2>/dev/null
i think the browser incodes it already

#

encodes*

next bronze
#

I mean, you don't need that lol

#

the location is given in the question

#

obtain the contents of the "flag.txt" file in the home directory for the "wp-user" directory.

charred fable
cobalt trench
next bronze
#

you don't have to cat it right away, if you aren't sure, ls still exists

cobalt trench
next bronze
#

if I check it and it's there I'm gonna be very disappointed with you pepegun_hand

buoyant escarp
#

is it maybe hidden?

next bronze
#

it's there

#

I'm very disappointed

#

if you're doing it through curl you'll need to url encode it

cobalt trench
#

Just found it

next bronze
#

good

charred fable
#

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
find / -type f -name *.conf -user root -size +25k -newermt 2020–03–03 -exec ls -al {} ; 2>/dev/null

Why is this not the right answer ? what have I missed ?

next bronze
#

it's not asking for a file owned by root and you missed a filter for the size

charred fable
#

-25 .. ?

next bronze
#

smaller than 28k but larger than 25k

charred fable
#

haha oh my bad

glass cargo
#

hi

charred fable
#

find / -type f -name *.conf -size -28k -size +25k -newermt 2020–03–03 -exec ls -al {} ; 2>/dev/null
Still wrong

twin lagoon
#

Hello

#

So🔪

fathom pendant
twin lagoon
#

I need sweet revenge

fathom pendant
#

<@&861185840277487616>

analog dock
fathom pendant
twin lagoon
#

Ok.

glass cargo
#

When I tried to connect HTB's OpenVPN, it gave an error, so I saw a solution in edit from 1 to 0 in the folder "proc/sys/net/ipv6/conf/all/disable_ipv6" what changes were made when changing this? htb's openvpn worked after this change

twin lagoon
#

🫥

glass cargo
#

openvpn

novel matrix
#

wtf is going on here

next bronze
#

🤷‍♂️ beats me man

charred fable
novel matrix
next bronze
glass cargo
fathom pendant
next bronze
#

first time I've heard that enabling ipv6 fixes the vpn

fathom pendant
#

usually because it's enabled by default

#

so it being disabled is out of the norm ¯_(ツ)_/¯

next bronze
#

it's 2024, how is it not enabled by default kek

next bronze
#

what you sent

fathom pendant
glass cargo
#

Does this change I made leave my PC or network vulnerable? I'm a beginner, take the questions

fathom pendant
#

ipv6 is the newer protocol; opposed to ipv4

charred fable
next bronze
#

what module and section

fathom pendant
#

Linux Fundamentals; Find Files and Directories

next bronze
#

pretty sure that command works, make sure you're actuall ssh'ed in

fathom pendant
#

it's because find doesn't recognize yy-mm-dd as a valid format

cobalt trench
#

The skills assessment on attacking wordpress gave me an IP address but when I try to enumerate the wp version, it says the site is up but is not running wp

charred fable
next bronze
#

wait no

#

what kind of - are you using

fathom pendant
next bronze
#

you're using U+2013 for your dash

fathom pendant
#

it's an em-dash (the longer one)

#

not an en-dash (the shorter/common one)

#

the odd part is the en-dash is in all their other parts of the command

#

LOL

next bronze
charred fable
cobalt trench
fathom pendant
fathom pendant
glass cargo
#

parrotOS x Kali LinuX x BackboX x BlackArch , what is the best?

fathom pendant
#

- not –

charred fable
#

ok got it , let me try

fathom pendant
#

it's all user preference

next bronze
charred fable
#

find / -type f -name *.conf -size -28 -size +25k -newermt 2020-03-03 -exec ls -al {} ; 2>/dev/null
still dont work

#

😩

charred fable
fathom pendant
next bronze
#

aite nvm

#

it should work without quotes true

fathom pendant
#

you also need to add a \ before the semicolon (not sure if you did; but your copy/paste doesn't show bc discord formatting)

charred fable
#

ok i will try

fathom pendant
#

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

#

literally just did it and it works

charred fable
#

dont work

next bronze
#

did you ssh in, cause it works

#

like ssh htb-student@ip then enter the password

fathom pendant
#

^

#

also reminder it's looking for just the filename; not the whole /path/to/filename.conf

charred fable
#

when I press enter nothing shows up

next bronze
#

copy the last 3 lines and send it here, the entire line

#

that is the answer, include the file extension

thin owl
next bronze
#

delete this btw

next bronze
#

happens, gj

charred fable
#

ok

next bronze
#

the one earlier too

charred fable
#

👍

#

this is fun 😁

#

but I need to sleep now its 03.39 over here

raven kayak
#

Hey everyone. Hope everyone is having a great year so far. I'm getting stuck on a module and I've been scratching my head on it for 3 days now. Was wondering if someone can give me a nudge or advice on if I'm correctly doing this? The Module is INTRO TO ASSEMBLY LANGUAGE section Shellcoding Tools. The goal here is to cat out the flag on a server which will run shellcodes. I've attempted both pwntools and msfvenom and feel like I'm getting a connection however it doesn't do much after that.

I've tried using the shellcodes for amd64.linux.sh and amd.linux.cat with pwntools and get a hanging terminal. When I use msfvenom I get a broken pipe error

Any guidance would be appreciated. Not looking for answers, just a pointer in the right direction

next bronze
#

what's the command you used the generate the shellcodes?

raven kayak
#

First time poster here, not sure how things are done so please let me know

next bronze
#

oh right, what makes you think that the flag will be at /bin/cat/flag.txt? that's not a valid directory

raven kayak
#

There is a space in the hint, I removed it

#

O man I think I see the issue

#

the hint inst a directoy

#

I think I got it. I don't wan to give away the answer

#

one moment

cobalt trench
#

Attacking Wordpress skills assessment Q1. The IP address provided is not running wordpress and I have been trying to enumerate other web pages but am unsuccessful. Can I get a hint or a nudge in a certain direction please

next bronze
next bronze
raven kayak
next bronze
#

that's not the only problem. the question didn't ask you to use the shellcode loader script

torn drift
#

sqlplus was a no go for me as well, was able to use another pre installed DB manager tool from pwnbox

raven kayak
#

I see @next bronze , ok now I'm on a different error. Appreciate the guidance. I'll grind my teeth on this more before I ask again.

heavy marsh
#

I'm getting this error on the AD module Kerberoasting from Linux section:

#

It says to clone to the repository, but the lab machine does not resolve github for some reason.

next bronze
#

if it's a machine you ssh into, it will not have internet access, the tool is already installed

heavy marsh
#

It's asking for a password though

#

The SSH password does not work.

glass cargo
#

What is the path to htb-student's home directory?

#

linux fundamentals

next bronze
heavy marsh
raven kayak
#

@next bronze got it, wow was I overthinking that

#

Appreciate the guidance

next bronze
next bronze
glass cargo
#

I only typed /home

#

thanks

#

its wrong version kernel

#

i run 'uname -r'

#

and 4.15.0-123-generic

next bronze
#

use the right format, it's in the question

glass cargo
#

yes but i did delete '-1232-generic'

next bronze
#

make sure there's no spaces

heavy marsh
#

I got the password and checked with SMB but this question is not accepting my answer in the kerberoasting with linux section

next bronze
heavy marsh
cobalt trench
#

It looks like I found the version number but it says incorrect

#

I also tried entering "WordPress 5.6.12" but still doesnt work

next bronze
#

that is indeed incorrect

#

idk where you found that, try using wpscan

#

I see the version without even using wpscan

cobalt trench
#

I used wpscan but it says site is not using wordpress

#

I found the blog site. thats what im enumerating

next bronze
#

are you sure about that, it works perfectly fine for me, make sure the url is correct

cobalt trench
#

I had .com instead of .local my bad

tall geyser
#

hello

#

I'm new here

#

can someone guide me on how to install a VM

fathom pendant
#

also this channel is for conversation around the htb academy modules

tall geyser
#

which channel is for conversation

fathom pendant
#

engage your brain

#

i told you twice in the #cpts channel where to look

#

if you wanna learn any bit of hacking, and be somewhat more competent than the average person: you need to be able to use your brain

tall geyser
#

ok ma'am

steel gorge
#

Hi, I was getting [07:41:06:560] [7010:7011] [ERROR][com.freerdp.core.transport] - BIO_should_retry returned a system error 32: Broken pipe error on pwnbox for https://academy.hackthebox.com/module/81/section/789.
Checking earlier messages it seems somewhat intermittent.
I've respawned the target, and sent the command after waiting a few minutes. That seems to resolve it.
Posting here for posterity.

winter blaze
#

i have some issues with password attack hard i can not share the ||backup.vhd|| file from my linux machine to the windows|| johanna|| machine or i can not connect to|| david's machine even thought i have the password of him||

#

can someone please help me

fathom pendant
#

Plenty of articles have been shared in the channel on mounting ntfs to linux

winter blaze
winter blaze
sly dome
#

the password audit is needed for the Attacking Enterprise module?

fathom pendant
#

The other thing you can do is transfer it to your host machine and mount it there if it's windows

#

(This is generally not recommended in a live scenario)

stiff bone
#

If anyone has difficulties with HTTP ATTACKS - Skills Assessment and you are stuck at this point for a very long time, write to dm, I will definitely help.

molten prawn
#

one small question about the first lab in Active Directory Enumeration & Attacks. anyone ?

charred fable
#

Can someone help with this one please
How many total packages are installed on the target system?

#

what should i search for ?

fathom pendant
charred fable
#

ok I dont know what I pressed but now I got only > when I press Enter

#

how do I cancel this

#

all I get is

fathom pendant
#

Ctrl-c

#

You likely didn't close a quote

#

Or parenthesis

glass cargo
#

good morning

charred fable
fathom pendant
#

They both pull similar info, apt is just easier to work with

#

apt list --installed

#

With dpkg list you need to know what to look for to get the installed packages when filtering

charred fable
#

I tried apt list '^ii

#

it showed me 9 but it was the wrong answer

fathom pendant
amber breach
#

Hi, i've got stucked at Working with IDS/IPS, part: Snort rule Development:

Question: There is a file named log4shell.pcap in the /home/htb-student/pcaps directory, which contains network traffic related to log4shell exploitation attempts, where the payload is embedded within the user agent. Enter the keyword that should be specified right before the content keyword of the rule with sid 10000098 within the local.rules file so that an alert is triggered as your answer. Answer format: [keyword];
I've already recognized the particular payload putted in the user-agent header(uri), but it doesn't work when i try to click it on the answer (in format [keyword];)
Could someone help me with it?

charred fable
#

I saw somebody type that to list the packages

bright marlin
#

Has someone pwned bizness

fathom pendant
#

As I just said apt list --installed gets you the full list (and an extra line or two)

fathom pendant
fathom pendant
#

Iirc

#

Either way: ii isn't for apt

#

Its for dpkg

charred fable
#

ok I get it

charred fable
#

tried | grep | wc -l. also

fathom pendant
#

You need to grep for the opposite of that first line

charred fable
fathom pendant
#

Grep has an option to look for everything except what you supply it

charred fable
#

aha ok

fathom pendant
#

Use man grep or grep --help

#

Whenever you don't understand: use available tools to help you understand

charred fable
#

ok i got 738 but that wasnt the correct answer .. =/

fathom pendant
#

Read my previous comment: if you pipe it to head -n3 then you'll see why it's incorrect

#

Before the wc

#

head and tail are very useful commands to know

charred fable
#

I dont understand why 738 is not the correct answer

#

i typed apt list --installed | wc -l

#

same thing with apt list --installed | wc --lines

glass cargo
#

help with linux fundamentals

#

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?

#

i did use 'find / -type f -name *.conf -size +25k -size -28k'

#

but returns permission denied

fathom pendant
#

Maybe check the output first for any extra lines

fathom pendant
#

Also make sure you're ssh to the target

charred fable
#

ok now I got the correct answer by typing
dpkg -l | grep '^ĂŽi' | wc -l

glass cargo
#

i add -newermt 2020-03-03, but not help

fathom pendant
fathom pendant
#

Just need to look at the first few lines

#

To see what you need to filter out

charred fable
#

I cant access sudo

fathom pendant
#

Yes you can, htb-student is a super user

#

Can do sudo stuff

#

But apt list --installed without sudo works too

charred fable
#

I dont get the correct answer then

fathom pendant
#

Either way: first few lines of output

#

You still need grep

#

I'm trying to direct you

charred fable
#

Ok I will try it now

fathom pendant
#

Just not grep '^ii'

#

You need to learn how to adapt and get commands to work for you

#

Not just copy/paste

charred fable
#

I typed apt list --installed | grep

#

showed me nothing

fathom pendant
#

You still need to provide grep something to search against

#

First evaluate the output of the command before piping it anywhere else

#

And I told you you want grep to search for the opposite of what you give it, so the output is everything except that

charred fable
#

yes sorry but I dont know what the opposite is

fathom pendant
#

man grep or grep --help to learn

charred fable
#

uninstalled ?

fathom pendant
#

No

glass cargo
fathom pendant
fathom pendant
#

Normally grep searches for what you give it yes?

glass cargo
#

Ah so it made those permission denied errors not appear?

fathom pendant
fathom pendant
#

But to know what to search for: you need to know why it's wrong

#

So looking at the output before sending it somewhere else is the first step

charred fable
open marlin
fathom pendant
#

It's what I've been telling you to look at for the past 30 minutes

charred fable
#

and I still dont understand

fathom pendant
#

What does that command output

#

Without any pipes (|)

#

Actually better yet

#

apt list --installed | head -n3

#

As I told you to do earlier, but you just never understood