@@ -11,7 +11,7 @@ typedef int bool;
11
11
#define true 1
12
12
#define false 0
13
13
14
- const char * _version = "0.0.4 " ;
14
+ const char * _version = "0.0.5 " ;
15
15
16
16
const char * _banner = " __________.__ ___. __________\n"
17
17
" \\______ \\ | ____\\_ |__\\______ \\__ __ ____ ____ ___________ \n"
@@ -65,8 +65,6 @@ LPVOID process_file(char* inputfile_name, bool jit, int offset, bool debug) {
65
65
printf (" [*] Copying input data...\n" );
66
66
67
67
CopyMemory (lpvBase , buffer , fileLen );
68
- printf (" [*] Entry: Setting executable\n" );
69
- VirtualProtect (lpvBase , fileLen , PAGE_EXECUTE_READ , & dummy );
70
68
return lpvBase ;
71
69
}
72
70
@@ -165,7 +163,12 @@ int main(int argc, char* argv[])
165
163
if (strcmp (argv [i ], "--offset" ) == 0 ) {
166
164
printf (" [*] Parsing offset...\n" );
167
165
i = i + 1 ;
168
- offset = strtol (argv [i ], & nptr , 16 );
166
+ if (strncmp (argv [i ], "0x" , 2 ) == 0 ) {
167
+ offset = strtol (argv [i ], & nptr , 16 );
168
+ }
169
+ else {
170
+ offset = strtol (argv [i ], & nptr , 10 );
171
+ }
169
172
}
170
173
else if (strcmp (argv [i ], "--nopause" ) == 0 ) {
171
174
nopause = true;
0 commit comments