All pastes #815053 Raw Edit

rand string

public text v1 · immutable
·published 2007-12-13 19:17 UTC
rendered paste body
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#define MAX 5
struct s {
       char words[80];
        };
       
int main() {

struct s val[MAX];
struct s *p;
int pos=rand() % MAX;
int len= sizeof(p->words);
snprintf (val[0].words, len,"%s","PEB.IsDebugged");
snprintf (val[1].words, len,"%s","PEB.ProcessHeap.Flag");
snprintf (val[2].words, len,"%s","PEB.NtGlobalFlag");
snprintf (val[3].words, len,"%s","PEB.Ldr 0xFEEEFEEE"); 
snprintf (val[4].words, len,"%s","GetTickCount(poly)");
/*




*/
printf("%s\n",val[pos].words);
getche();
return 0;
}