Crypter & Descrypter by v3n0m [php]

Iniciado por v3n0m, Junio 20, 2011, 06:33:31 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Junio 20, 2011, 06:33:31 PM Ultima modificación: Marzo 27, 2014, 06:05:11 PM por Expermicid
El otro dia viendo algo de private keys, se me ocurrió una idea, armar un encriptador, con un lenguaje X que solo la persona que tenga el desencriptador, pueda volver a generar el texto. Hace ya mucho tiempo habia hecho uno en Perl, que lo pongo más abajo del de php.

Funciona solamente con texto plano, menor a 8bits, esto es modificable. aca el codigo.

Código: php
<html><title>v3n0m</title>
<style text/css>
body{
background-color:black;
background-image:url('fondochoti.PNG');
background-repeat:repeat;
}
*{
color:lime;
font-size:12px;
}
a:link{
color:lime;
font-size:12px;
text-decoration:none;
}
a:hover{
color:red;
font-size:20px;
text-decoration:none;
cursor:crosshair;
}
input{
background-color:black;
font-size:12px;
color:lime;
text-decoration:none;
}
submit{
background-color:black;
font-size:10px;
color:lime;
text-decoration:none;
font-family:Courier New;
}
</style>
<body>
<div style="text-align: center;"><code><a href="mailto:v3n0m.security">v3n0m</a><br>
</code>
<div style="text-align: left; margin-left: 40px;"><code>[#]Funcionamiento:<br>
</code>
<div style="margin-left: 160px;"><code>Ingresa
la palabra que quieras encriptar (&lt;=8bits) <br>
Para desencriptarla utiliza el 'descrypter'.</div></div><br>
<div style="text-align: center;"><code></code>[<a href="?pag=index">Crypter</a>]
~ [<a href="?pag=index2">Descrypter</a>]</div>

<br><br>
<?php
$pag=$_GET['pag'];
// c0ded by v3n0m | www.venom.fallensecurity.org


function hashh($texto){

$texto = str_replace('a', 'c1837cn8', $texto);
$texto = str_replace('e', 'v1274vn9', $texto);
$texto = str_replace('i', 'k1h4k1h4', $texto);
$texto = str_replace('u', 'o3issudc', $texto);


return $texto;
}

function dhashh($texto){

$texto = str_replace('c1837cn8', 'a', $texto);
$texto = str_replace('v1274vn9', 'e', $texto);
$texto = str_replace('k1h4k1h4', 'i', $texto);
$texto = str_replace('o3issudc', 'u', $texto);


return $texto;
}

$pags = array('index','cript','index2','dcript','');



if(!in_array($pag, $pags)){
echo "esa pagina no existe pt";
}

if($pag == "index"){
echo "
<form method=\"POST\" action=\"?pag=cript\">
texto : <input type=\"text\" name=\"texto\" size=\"10\" maxlength=\"8\"><br>
<input type=\"submit\" name=\"bot\" value=\"Cript\"><br>
</form>";
}

if($pag == "index2"){
echo "
<form method=\"POST\" action=\"?pag=dcript\">
texto : <input type=\"text\" name=\"texto\"><br>
<input type=\"submit\" name=\"bot\" value=\"Descript\"><br>
</form>";
}


if($pag == "cript"){
echo "hash:".htmlentities(hashh($_POST['texto']));
echo "<br><a href=\"?pag=index\">volver</a>";
}

if($pag == "dcript"){
echo "return:".htmlentities(dhashh($_POST['texto']));
echo "<br><a href=\"?pag=index\">volver</a>";
}

?>


Y de paso les dejo el que habia programado en perl...

Código: php
#!/usr/bin/perl/
system ("encriptador by VenoM");
system ("cls");
print "texto a encriptar: $text \n";
$text = ;

print "Encriptando: $text \n";
system ("ping -n 6 0.0.0.0>nul");
print "Enciptrado :";

$_=$text;

s/a/fre/g;
s/b/fxa/g;
s/c/uf9/g;
s/d/xdx/g;
s/e/asd/g;
s/f/dsa/g;
s/g/111/g;
s/h/222/g;
s/i/dxf/g;
s/j/vcx/g;
s/k/vds/g;
s/l/aer/g;
s/m/ojh/g;
s/n/rsa/g;
s/o/tas/g;
s/p/not/g;
s/q/ass/g;
s/r/mjf/g;
s/s/444/g;
s/t/gfs/g;
s/u/asm/g;
s/v/per/g;
s/w/lll/g;
s/x/052/g;
s/y/jhv/g;
s/z/aat/g;

print $_;


algunas imagenes.

No tienes permitido ver los links. Registrarse o Entrar a mi cuenta
No tienes permitido ver los links. Registrarse o Entrar a mi cuenta
No tienes permitido ver los links. Registrarse o Entrar a mi cuenta

Cualquier duda o consulta, sera contestada!, Saludos.

Hola, es muy bueno idea, pero pero no muy bueno para usarlo como CMS.

Saludos.
Mi madre me dijo que estoy destinado a ser pobre toda la vida.
Engineering is the art of balancing the benefits and drawbacks of any approach.

Es buena la idea, de hecho le hecharé una buena mirada a ambos códigos (php y perl) pero comparto la opinión de ~ Yoya ~, en un CMS no sería muy bueno, y hablando de encriptación mi método (el que implemento en los cms) es el siguiente:

Código: php

$this->pass = base64_encode(md5($pass).$this->unique_string.sha1($pass));


En donde cada usuario tiene un string único (mejor conocido como salts), realmente al menos a mi punto de vista es seguro.

Saludos.

P.D. Veo que últimamente juegas con PHP, me alegro.
Cada vez que me das Karma me motivas