Tous les codes sources "Mindfuck"
C++
11 July, 2016 à 01:30
#306
// FUUU computer, it works well on my head!
#include <stdio.h>
int main()
{
int n, factorial, i;
scanf("%d", &n);
factorial = 1;
for(i = 2; i <= n; i++); // LOL
{
factorial = factorial * i;
}
printf("your factorial is: %d\n", factorial);
return 0;
}
PHP
3 July, 2016 à 01:30
#298
function bytexor($a,$b,$l)
{
$c="";
for($i=0;$i<$l;$i++)
$c.=$a{$i}^$b{$i};
return($c);
}
function binmd5($val)
{
return(pack("H*",md5($val)));
}
function decrypt_md5($msg,$heslo)
{
$key=$heslo;$sifra="";
$key1=binmd5($key);
while($msg)
{
$m=substr($msg,0,16);
$msg=substr($msg,16);
$sifra.=$m=bytexor($m,$key1,16);
$key1=binmd5($key.$key1.$m);
}
return($sifra);
}
function crypt_md5($msg,$heslo)
{
$key=$heslo;$sifra="";
$key1=binmd5($key);
while($msg)
{
$m=substr($msg,0,16);
$msg=substr($msg,16);
$sifra.=bytexor($m,$key1,16);
$key1=binmd5($key.$key1.$m);
}
return($sifra);
}
function MyCrypt($msg)
{
$bin="";
$r=rand()%256;
$k=$r*61+17;
$key="/$k/";
$txt=sprintf("%02x",$r);
$l=strlen($msg);
$bin=crypt_md5($msg,$key);
for($i=0;$i<$l;$i++)
$txt.=sprintf("%02x",ord($bin{$i}));
return($txt);
}
C++
2 July, 2016 à 01:30
#297
LOG("[%d]:%02X", 14+1+ioctl_buf.buf[14]+1+ioctl_buf.buf[14+1+ioctl_buf.buf[14]], ioctl_buf.buf[14+1+ioctl_buf.buf[14]+1+ioctl_buf.buf[14+1+ioctl_buf.buf[14]]]);
card_buf[0] = ioctl_buf.buf[14]+2;
card_buf[1] = ioctl_buf.buf[14]>0?0:1;
memcpy(&card_buf[2], &ioctl_buf.buf[14+1], ioctl_buf.buf[14]);
card_buf[card_buf[0]] = ioctl_buf.buf[14+1+ioctl_buf.buf[14]]+2;
card_buf[card_buf[0]+1] = ioctl_buf.buf[14+1+ioctl_buf.buf[14]]>0?0:1;
memcpy(&card_buf[card_buf[0]+2], &ioctl_buf.buf[14+1+ioctl_buf.buf[14]+1], ioctl_buf.buf[14+1+ioctl_buf.buf[14]]);
card_buf[card_buf[0]+card_buf[card_buf[0]]]=2;
card_buf[card_buf[0]+card_buf[card_buf[0]]+1]=1;
if(ioctl_buf.buf[14+1+ioctl_buf.buf[14]+1+ioctl_buf.buf[14+1+ioctl_buf.buf[14]]]==0x00 && !rejected)
{
// some code
}
// some code
buf_puts( &w, (char*)&ioctl_buf.buf[14+1+ioctl_buf.buf[14]+1+ioctl_buf.buf[14+1+ioctl_buf.buf[14]]+1], ioctl_buf.size-(14+1+ioctl_buf.buf[14]+1+ioctl_buf.buf[14+1+ioctl_buf.buf[14]]+1)-2 );