<?php
echo "# --- goosubmit.php v0.1 by rgod<br>
# very fast portrange Google submitter...
# usage:<br>
#<br>
#
http://localhost/goosubmit?site=http://sitename.com<br><br>;
#<br>
# you may want to change ports preset, edit source code...<br>
";
if ((!isset($site)) | ($site=="")) {die("ERROR: specify a site...");}
error_reporting(0);
ini_set("max_execution_time",0);
ini_set("default_socket_timeout", 2);
ob_implicit_flush (1);
function show($headeri)
{
$ii=0;
$ji=0;
$ki=0;
$ci=0;
echo '<table border="0"><tr>';
while ($ii <= strlen($headeri)-1)
{
$datai=dechex(ord($headeri[$ii]));
if ($ji==16) {
$ji=0;
$ci++;
echo "<td>&nbsp;&nbsp;</td>";
for ($li=0; $li<=15; $li++)
{ echo "<td>".$headeri[$li+$ki]."</td>";
}
$ki=$ki+16;
echo "</tr><tr>";
}
if (strlen($datai)==1) {echo "<td>0".$datai."</td>";} else
{echo "<td>".$datai."</td> ";}
$ii++;
$ji++;
}
for ($li=1; $li<=(16 - (strlen($headeri) % 16)+1); $li++)
{ echo "<td>&nbsp&nbsp</td>";
}
for ($li=$ci*16; $li<=strlen($headeri); $li++)
{ echo "<td>".$headeri[$li]."</td>";
}
echo "</tr></table>";
}
function sendpacket($packet)
{
global $proxy, $host, $port, $html, $proxy_regex;
if ($proxy=='')
{$ock=fsockopen($host,$port);
if (!$ock) { echo 'No response from '.htmlentities($host).' ...'; die;}
}
else
{
$c = preg_match($proxy_regex,$proxy);
if (!$c) {echo 'Not a valid prozy...';
die;
}
$parts=explode(':',$proxy);
echo 'Connecting to '.$parts[0].':'.$parts[1].' proxy...<br>';
$ock=fsockopen($parts[0],$parts[1]);
if (!$ock) { echo 'No response from proxy...'; die;}
}
fputs($ock,$packet);
if ($proxy=='')
{
$html='';
while (!feof($ock))
{
$html.=fgets($ock);
}
}
else
{
$html='';
while ((!feof($ock)) or (!eregi(chr(0x0d).chr(0x0a).chr(0x0d).chr(0x0a),$html)))
{
$html.=fread($ock,1);
}
}
fclose($ock);
echo $html;
}
$generic_preset = "13;17;20;21;22;23;25;42;43;53;79;80;98;109;110;111;113;118;119;135;139;
143;156;179;311;371;407;443;445;512;513;514;515;540;548;799;800;901;993;995;
1080;1243;1272;1433;1494;1503;1720;1723;1731;1993;1999;2001;2049;3127;3128;
3306;3389;4001;4045;4662;5000;5631;5632;5800;6000;6001;6669;6112;
6346;6699;6776;7777;7789;8080;8888;9001;9100;9999;10000;10168;
12345;25867;31337;43188;54320;54321;55555;";
# Submit the link appending ":port"
$host="
www.google.it";; //change this if you need...
$port=80;
$site=$HTTP_GET_VARS[site];
$ports=explode(";",$generic_preset);
for ($i=0; $i<=count($ports)-1; $i++) {
$ports[$i]=trim($ports[$i]);
echo "<br><br>Submitting ".htmlentities($site.":".$ports[$i])."...<br><br>";
$link=urlencode($site.":".$ports[$i]);
$packet="GET /intl/it/addurl?q=".$link."&dq=&submit=Aggiungi+URL HTTP/1.1\r\n"; //change this if you need
$packet.="Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*\r\n";
$packet.="Referer:
http://www.google.it/intl/it/add_url.html\r\n";
$packet.="Accept-Language: it\r\n";
$packet.="Accept-Encoding: text/plain\r\n";
$packet.="Host: ".$host."\r\n";
$packet.="Connection: close\r\n\r\n";
show($packet);
sendpacket($packet);
sleep(1);
}
?>