|
link to this page:
http://pastebin.antiyes.com/pastebin/index296.html
download this file: click here
|
description/question: this works fine if i input the buffer from the keyboard, but if the string is taken from ram doesnt seem to be working. also this code will not work on pc. gcc for pc will give you an error
foo.c:14: warning: initialization makes integer from pointer without a cast
and i cant blame it LOL
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
|
#include <stdio.h>
//setup storage for text grabbed from ram
unsigned char buffer[17];
//---------------------------------------------------------------
//read buffer from ram used for reading grabs data from where
pointer is pointing to in the ram plus an offset.
//---------------------------------------------------------------
void backdoorski(){
//this is the $j pointer
unsigned int *myjpointer=(unsigned int*) (0x00501BCC+0x08800000);
//---------------------------------------------------------------
//Calculate player's object
//---------------------------------------------------------------
//0x38C is the offset
unsigned int foo=(unsigned int*) (*myjpointer+0x38C);
int count=0;
//---------------------------------------------------------------
//Read it store it
//---------------------------------------------------------------
//input the buffer to ram
while(count < 16){
//copy the battery percent into the ram
buffer[count]=*((unsigned char*) ((unsigned int)foo+count));
//count up
count++;
}
}
int main(){
printf( "Enter your name: " );
scanf( "%s", buffer );
if( strcmp( name, "HACK" ) == 0 ){
printf( "YOU ARE A HACKER! \n" );
}
else{
printf( "You are %s! \n", name);
}
}
|
|
|
|
|