Java
05/07/2016 01:30:01
#300
if(!object.getName().equals("abc") || object == null)
    return "error";
PHP
04/07/2016 01:30:01
#299
function MYSQLescapestring( $array ) {
    mysql_real_escape_string( $array );
    return $array;
}
PHP
03/07/2016 01:30:01
#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++
02/07/2016 01:30:02
#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 );
C++
01/07/2016 01:30:01
#296
/* ... */

/* BUG: Remember to always include the following three header files anytime you use inet_ntop otherwise
 * you get segmentation fault!!!
 */
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>

/* ... */
En poursuivant votre navigation sur ce site, vous acceptez l’utilisation de Cookies pour réaliser des statistiques anonymes de visites.
[x]
[Y] J'accepte
[N] Non merci
~$ 
_