Jump to content
bebemic

:) havij..php..export

Recommended Posts

Posted

imagen1ifc.png

< ?php




/******************************\
****** * * * * RM * * * * ******
***** * Desarrollado por * *****
***** * * MichBukana * * * *****
***** * * * 04/01/12 * * * *****
******* * * * * * * * * * ******
\******************************/
/**--------------------------**\
/**code-disaster.blogspot.com**/
/**+++ indetectables.net ++++**/
/**++++++ udtools.net +++++++**/
/**--------------------------**\
/*michbukana@indetectables.net*/
/**__________________________**\
/******************************/







error_reporting(0);

echo base64_decode('CjxodG1sPgo8aGVhZD4KICAgIDxzdHlsZT4KICAgIGJvZHl7Y29sb3I6Z3JlZW47YmFja2dyb3VuZC1jb2xvcjpi
bGFjazt9CiAgICBoMXtjb2xvcjpyZWQ7fQogICAgPC9zdHlsZT4KCjwvaGVhZD4KPGJvZHk+Cgo8YnIgLz4KPGNlbnRlcj4KICAgI
DxiciAvPjxoMT5FeHBvcnRhZG9yIEhhdmlqPC9oMT48YnIgLz48YnIgLz4KICAgIDxmb3JtIG5hbWU9Zm9ybXUgbWV0aG9kPSJ
QT1NUIiBhY3Rpb249IiI+CiAgICAgICAgRWxpZ2UgZWwgbm9tYnJlIGRlbCBhcmNoaXZvIGRlbCBjdWFsIHNlIGV4dHJhZXJhbi
Bsb3MgY2FtcG9zIGRlIGxhIGNvbHVtbmEgZXNjb2dpZGEKICAgICAgICA8aW5wdXQgdHlwZT10ZXh0IG5hbWU9UmVzdWx0I
HZhbHVlPXd3dy5yZW50aW5nd2ViLmVzLmh0bWwgc2l6ZT0zMCA+PC9pbnB1dD48YnIgLz4KICAgICAgICA8aW5wdXQgdH
lwZT1zdWJtaXQgdmFsdWU9JyAgICAgIFZlciBDYW1wb3MgICAgICAnID48L2lucHV0PgogICAgPC9mb3JtPgogICAgPGZvcm0
gbmFtZT1mb3JtdTIgbWV0aG9kPSJQT1NUIiBhY3Rpb249IiI+CiAgICAgICAgRXNjb2dlIGVsIG51bWVybyBkZSBsYSBjb2x1bW5
hIGEgZXhwb3J0YXIKICAgICAgICA8aW5wdXQgdHlwZT10ZXh0IG5hbWU9Y29sdW1uYUUgdmFsdWU9MSBzaXplPTEgPjwva
W5wdXQ+PGJyIC8+CiAgICAgICAgRWxpZ2UgZWwgbm9tYnJlIGRlbCByZXBvcnRlIGRlbCBoYXZpagogICAgICAgIDxpbnB1dC
B0eXBlPXRleHQgbmFtZT1BcmNoaXZvQUUgdmFsdWU9dXN1YXJpby50eHQgPjwvaW5wdXQ+PGJyIC8+CiAgICAgICAgRWx
pZ2UgZWwgbm9tYnJlIGRlbCBhcmNoaXZvIGRlbCBjdWFsIHNlIGV4dHJhZXJhbiBsb3MgY2FtcG9zIGRlIGxhIGNvbHVtbmEgZX
Njb2dpZGEKICAgICAgICA8aW5wdXQgdHlwZT10ZXh0IG5hbWU9UmVzdWx0IHZhbHVlPSI=');
echo @$_POST['Result'];

echo base64_decode('IiBzaXplPTMwID48L2lucHV0PjxiciAvPgogICAgICAgIDxpbnB1dCB0eXBlPWhpZGRlbiBuYW1lPWVqZWN1Y
2lvbiB2YWx1ZT0xID48L2lucHV0PjxiciAvPgogICAgICAgIDxpbnB1dCB0eXBlPXN1Ym1pdCB2YWx1ZT0nICAgICAgRXhwb3J0
YXIgICAgICAnPjwvaW5wdXQ+CiAgICA8L2Zvcm0+CjxiciAvPgo=');



//columnaEscogida: columna que vamos a exportar ejemplo usuario o password
//ArchivoAExportar: nombre del archivo generado por el havij
//Resultados: nombre del archivo a crear para los de la columnaEscogida

/*---------------------------------------------------------------------------------*/
$columnaEscogida = $_POST['columnaE'];
$Resultados = $_POST['ArchivoAE'];
$ArchivoAExportar = $_POST['Result'];

$ejecucion = $_POST['ejecucion'];
/*---------------------------------------------------------------------------------*/


//$ejecucion =1;

$page0 = file_get_contents($ArchivoAExportar);
$NumeroDeColumnaTitulos = substr_count($page0, '#FFFFCE');

preg_match_all('|<[font color="#DC883D"]+>(.*)|U',$page0,$salida, PREG_SET_ORDER);

$i=0;
while($i<$NumeroDeColumnaTitulos){
echo "<span style="color: red;">".$i." ".$salida[$i][1]. "\n</span>
";
$i++;
}


if($ejecucion==1){

echo "\n\n";

$page1 = file_get_contents($ArchivoAExportar);
$NumeroDeColumnaCampos = substr_count($page1, 'td bgcolor');

preg_match_all('|<[td bgcolor="#FFF7F2"]+>(.*)|U',$page1,$salida1, PREG_SET_ORDER);


$i=3;$j=$columnaEscogida+3;

while($i<($NumeroDeColumnaCampos)){

$p=fopen($Resultados, 'a+');
fwrite($p, $salida1[$j][1]. "\n");
fclose($p);

$j=$j+$NumeroDeColumnaTitulos;

$i++;
}


$todo = file_get_contents($Resultados);
$todo = trim($todo);

$p=fopen($Resultados, 'w+');
fwrite($p, $todo."\n");
fclose($p);

echo "

<span style="color: red;">...Exportacion finalizada</span>";
}
?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...