Current directory :
Root directory

Tree directory :
darktatka@njs.netlab.cz
  Filter :
  Language :  
 
#include <stdio.h>
#include <stdlib.h>
 
void XOR_sifra(char *r, char *klic)
{
 int i;
 int z_klice=0;
 for (i=0; r[i]!= 0; i++,z_klice++)
  {
   if (klic[z_klice]==0) z_klice=0;
   r[i]=r[i] ^ klic[z_klice];
  }
}
 
int main(int argc, char *argv[])
{
 int i=0;
 int count=0; 
 
 int hesloint[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
 char heslochar[16];
 
 printf("Zadejte jednotlivé hexa vysniffovane digity, oddelujte enterem a ukoncete -1\n");
 
 for(;hesloint[i-1] != -1; i++,count++)
 {  
  printf("> ");
  scanf("%x",&hesloint[i]);
 }
 
 for(i=0;i<count;i++)
   heslochar[i]=(char)hesloint[i];
 heslochar[i-1]=NULL;
 
 
//array pomoci ktereho ICQ sifruje hesla pred prenosem na server 
 char roastarray[16]={0xF3, 0x26, 0x81, 0xC4, 0x39, 0x86, 0xDB, 0x92, 0x71, 0xA3, 0xB9, 0xE6, 0x53, 0x7A, 0x95, 0x7C};
 
 XOR_sifra(heslochar,roastarray);
 printf("Odchycene heslo > %s\n",heslochar);
 
 system("PAUSE");
 return 0;
}
 
VIP: No | Used: 13M/101M | 0.036 sec / GZIP-2