Publicado el 09/01/2010 12:01:00 en Hacking Tools. Total de votos: 0 Votar
Bueno como pa inagurar de cosas utiles este blog que parece cementerio le traigo una tool que taba haciendo talves ya muchos tengan uno pero no esta de nada mal otra jeje.... lo codee desde el inicio con la ayuda de google y php.net k recien me estoy metiendo mas a la programacion PHP k yo habia komenzado kon VB..... pues aqui les dejo una imagenes de prueba subida a mi web y tmb el codigo fuente ;)..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sm0kes</title>
<style>
html, body {height: 100%;}
body {padding: 0;margin: 0;}
.mayor{background: #FFF;position:inherit;width:882px;height:508px;border:2px #09C solid;margin:auto;}
.menor{background-color: #09C;position:absolute;border:2px #09F solid;width:818px;margin:34px 32px;height:440px;}
.header,.footer{width:818px;color:#FFF;background-color:#333;}
.header{height:54px;}
.footer{height:46px;}
h1{font:Tahoma, Geneva, sans-serif;vertical-align:middle;text-align:center;line-height:54px;margin:0 auto;}
.body{width:818px;height:300px;}
.yo{height:40px;}
#nav {width: 818px;float: left;height:auto;margin: 0;padding: 0;background-color: #f2f2f2;border-bottom: 1px solid #ccc; }
#nav ul {list-style: none;width: 240px;margin: 0 auto;padding: 0; }
#nav li {float: left; }
#nav li a {display: block;padding: 8px 15px;text-decoration: none;font-weight: bold;color: #069;border-right: 1px solid #ccc; }
#nav li:first-child a {border-left: 1px solid #ccc; }
#nav li a:hover {color: #c00;background-color: #fff; }
.footer{text-align:center;color:#FFF;}
.footer span{font:"Arial Black", Gadget, sans-serif;line-height:46px;font-size:14px;}
#form1{margin: 0 auto;text-align:center; float:left; width:400px; height:300px;}
#form1 textarea{width:380px; height:250px;}
input.txt:focus, input.txt:hover {tline: none; color: #333; padding: 2px 3px; border: 2px solid #2daebf; }
.txt{ margin: 0 0 10px; padding: 3px 4px; border: 1px solid #bbb; -moz-border-radius: 4px; -webkit-border-radius: 4px; -webkit-box-shadow: 0 1px 1px #fff; font: 12px Helvetica Neue, "Arial", Helvetica, Verdana, sans-serif; text-shadow: 0 0 1px #fff; color: #999; position: relative; line-height: 12px; width:190px; }
.btn, .btn:visited {background: #333; display: inline-block;padding: 2px 5px 3px;-khtml-user-select: none; color: #fff;-webkit-user-select:none;user-select: none; text-decoration: none;-moz-border-radius: 4px; -webkit-border-radius: 4px;-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);text-shadow: 0 -1px 1px rgba(0,0,0,0.25);position: relative;cursor: pointer;-moz-user-select: none;}
.btn:hover{ background-color: #111; color: #fff; }
.btn:active{ top: 1px; }
</style>
</head>
<body bgcolor="#333">
<div class="mayor">
<div class="menor">
<div class="header">
<h1>Basic SMF EXtracTor</h1>
</div>
<div class="yo">
<div id="nav">
<ul>
<li><a href="#" >~[Sm0kes.Diosdelared.com]~</a></li>
</ul>
</div>
</div>
<div class="body">
<form id="form1" method="post" action="">
<p>
<label for="fill">Web</label>
<input type="text" name="Url" id="Url" class="txt" value="<?php echo($url); ?>" />
</p>
<p>
<label for="fill2">User:</label>
<input type="text" name="User" id="User" class="txt" value="<?php echo($user); ?>" />
</p>
<p>
<label for="fill3">Pass:</label>
<input type="password" name="Pass" id="Pass" class="txt" value="<?php echo($pass); ?>" />
</p>
<p>
<label for="fill4">TxT:</label>
<input type="text" name="text" id="text" class="txt" value="<?php echo($txt); ?>" />
</p>
<p>
<input type="submit" name="Ini" class="btn" value="Inicio" />
</p>
</form>
<div id="form1">
<form name="cams">
<textarea name="texto" cols="50" rows="16"></textarea>
</form>
</div>
</div>
<div class="footer">
<span>~#DDLR||#RE~</span>
</div>
</div>
</div>
</body>
</html>
<?php
set_time_limit(0);
$url = $_POST["Url"];
if(isset($_POST["Ini"]) and !empty($url)){
//Funcion para poder buskar el numero de usuarios dentro del source
function Busca($source,$inicio,$fin){
$part = explode($inicio, $source);
if (isset($part[1])){
$part = explode($fin, $part[1]);
return $part[0];
}
}
//Fin de funcion
/*Variables a usar*/
$user = $_POST["User"];
$pass = $_POST["Pass"];
$txt = $_POST["text"];
$search = "http://$url/index.php?action=mlist;sort=emailAddress;start=";
$login = "http://$url/index.php?action=login2";
$post = "user=$user&passwrd=$pass";
$inicio = 0;
/*INICIO de coneccion al foro SMF para conseguir la Cookie y poder usarla*/
$cURL = curl_init($login);
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cURL, CURLOPT_USERAGENT, "Sm0kes Was Here =)");
curl_setopt ($cURL, CURLOPT_POSTFIELDS, $post);
curl_setopt($cURL, CURLOPT_COOKIEJAR, 'cookie.txt');
$naa = curl_exec($cURL);
curl_close($cURL);
/*FIN ya tenemos la cookie */
/*INICIO de una nueva coneccion para poder conseguir el numero de usuarion y poder usarla aki http://$url/index.php?action=mlist;sort=emailAddress;start=XXX*/
$xxx = curl_init($search."0");
curl_setopt($xxx, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($xxx, CURLOPT_COOKIEFILE, "cookie.txt");
$source = curl_exec($xxx);
$maso = Busca($source,'... </b><a class=','">');
$pos = strrpos($maso, "start=") ;
$len = strlen($maso);
$total = substr($maso,$pos + 6,$len - $pos );
curl_close($xxx);
/*FIN ya tenemos el numero de usuarios*/
/*INICIO DEL LOOP*/
for($i=0; $i<=$total; $i=$i+30)
{
ob_flush();
$connect = curl_init($search.$i);
curl_setopt($connect, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($connect, CURLOPT_COOKIEFILE, "cookie.txt");
$source2 = curl_exec($connect);
curl_close($connect);
/*Si el source no esta vacio podemos seguir*/
if (!empty($source2)) {
$match = preg_match_all("/[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}/i",$source2,$mails);
foreach(array_unique($mails[0]) as $mails) {
$xmails = $mails . "\n";
$emails .= $mails . chr(9);
$numero++;
$guardar = fopen($txt,'a');
fwrite($guardar,$xmails);
fclose($guardar);}
}
echo("<script>document.cams.texto.value = '" . $emails . "';</script>");
}
If(is_numeric($total)){
echo("<script>alert('De " . $total . " usuarios sacaste " . $numero ." mails');</script>");}
else
{echo("<script>alert('Ocurrio un problema Try Again =)');</script>");}
/*FIN DEL LOOP*/
}
?>
Nick: sm0kes


![Veteran [x]](http://www.diosdelared.com/images/rangos/Veteran.jpg)
![Mod [x]](http://www.diosdelared.com/images/rangos/Mod.jpg)
![Amateur [x]](http://www.diosdelared.com/images/rangos/Amateur.jpg)