Add/Update some doc

This commit is contained in:
Clement Rouault
2016-07-27 18:20:36 +02:00
parent bc4952d513
commit fe4d41db47
19 changed files with 186 additions and 85 deletions
+2 -4
View File
@@ -27,13 +27,11 @@ else:
code += x64.Mov("RAX", 0x41)
code += x64.Inc("RAX")
code += x64.Ret()
native_code = code.get_code()
v = windows.current_process.execute(native_code)
print("Waiting for execution to finish !")
v.wait()
print("Native code returned <{0}>".format(hex(v.exit_code)))
print("Native code returned <{0}>".format(hex(v)))
print("Allocating memory in current process")
addr = cp.virtual_alloc(0x1000) # Default alloc is RWX (so secure !)