Sonsivri

Others => Invitation Request => Topic started by: xclm on March 21, 2013, 09:40:02 21:40



Title: [Req] Invite xclm
Post by: xclm on March 21, 2013, 09:40:02 21:40
CountryGermany
Note#include <stdio.h>
#include <stdlib.h>

// "Hash" table, found sitting in plain text in the xclm binary:
const char hashtable[] = "12020569031595942853997381615114499907649862923404988817922715553418382057863130901864558736093352581461991577952607194184919959986732832137763968372079001614539417829493600667191915755222424942439615639096641032911590957809655146512799184051057152559880154371097811020398275325667876035223369849416618110570147157786394997375237852779370309560257018531827900030765471075630488433208697115737423807934450316076253177145354444118311781822497185263570918244899879620350833575617202260339378587032813126780799005417734869115253706562370574409662217129026273207323614922429130405285553723410330775777980642420243048828152100091460265382206962715520208227433500101529480119869011762595167636699817183557523488070371955574234729408359520886166620257285375581307928258648728217370556619689895266201877681062920081779233813587682842641243243148028217367450672069350762689530434593937503296636377575062473323992348288310773390527680200757984356";

#define TABLELENGTH   (935)

int main (int argc, char *argv[]){
   int offset, idx;
   
   // We assume the final parameter supplied by the compiler is the hash offset:
   offset = atoi(argv[argc-1]);

   for ( idx = 0; idx < 9; idx++){
      putchar (hashtable[ (offset + idx) % TABLELENGTH ]);
   }
   putchar (0x0A);

   // Returning '2' means PRO license:
   return 2;
}