HackTheBox - Access
Last updated
Was this helpful?
Last updated
Was this helpful?
FTP Anonymous access allowed, so we can get all the files present in that share.
We have AccessControl.zip
and backup.mdb
file from the FTP Server.
A file with the MDB file extension is a Microsoft Access Database file that literally stands for Microsoft Database. ... MDB files contain database queries, tables, and more that can be used to link to and store data from other files, like XML and HTML, and applications, like Excel and SharePoint.
This command will download all the necessary tools required for analyzing the backup.mdb file.
We can list all the tables using mdb-tables or mdb-sql command.
Using mdb-tables:
Using mdb-sql:
To extract the information from the tables, we can use mdb-json.
The password for zip file is stored inside this backup.mdb file and we can search for it.
We can convert .pst file into .mbox which can be human readable using readpst
command.
Password for the security account is changed to 4Cc3ssC0ntr0ller
We can use telnet to get a shell access as security user.
This shell is not really stable and we need to get stable shell for further enumeration. So we will be using nishang Shells from github.
Make sure to add this line at the end of script to run as soon as it gets downloaded on the target computer.
We find a very interesting file present under C:\Users\Public\Desktop
We can view the raw contents of the file using get-Content
command in powershell or we can view it the other way.
We can run this command as Administrator, so we will try to get a reverse shell using this.
We changed the port to 9002 since we already have a connection to port 9001. So now we need to use base64 encoded string to run certain windows commands.
Windows uses UTF-16 Little Endian and we can convert it using iconv. Also after that we can use base64. w flag specifies wrap encoded lines after COLS character
Note: If we want to access or read all the recently cracked hashes, then we can use the following command. cat ~/.john/john.pot