srounet / Pymem

A python library for windows, providing the needed functions to start working on your own with memory editing.
MIT License
307 stars 44 forks source link

RuntimeError #65

Closed Furkan125 closed 7 months ago

Furkan125 commented 3 years ago

Hi i try this tutorial: https://pymem.readthedocs.io/en/latest/tutorials/inject_python_interpreter.html

and i got this error: RuntimeError: Could not allocate memory for shellcode

How can i fix this ?

Furkan125 commented 3 years ago

I fix this error but now i got this error:

f = open("pymem_injection.txt", "w+") f.write("pymem_injection") f.close()

Traceback (most recent call last): File "pymem_ile_herhangi_bir_isleme_python_yorumlayicisi_eklemek.py", line 25, in pm.inject_python_shellcode(shellcode) File "C:\anaconda3\lib\site-packages\pymem__init__.py", line 145, in inject_python_shellcode self.start_thread(self.py_run_simple_string, shellcode_addr) File "C:\anaconda3\lib\site-packages\pymem__init__.py", line 178, in start_thread pymem.logger.debug('New thread_id: 0x%08x' % thread_h) TypeError: %x format: an integer is required, not NoneType

focat69 commented 2 years ago

same

StarrFox commented 1 year ago

this seems like the same bug as https://github.com/srounet/Pymem/issues/86

Raaptex commented 1 year ago

I fix this error but now i got this error:

f = open("pymem_injection.txt", "w+") f.write("pymem_injection") f.close()

Traceback (most recent call last): File "pymem_ile_herhangi_bir_isleme_python_yorumlayicisi_eklemek.py", line 25, in pm.inject_python_shellcode(shellcode) File "C:\anaconda3\lib\site-packages\pymeminit.py", line 145, in inject_python_shellcode self.start_thread(self.py_run_simple_string, shellcode_addr) File "C:\anaconda3\lib\site-packages\pymeminit.py", line 178, in start_thread pymem.logger.debug('New thread_id: 0x%08x' % thread_h) TypeError: %x format: an integer is required, not NoneType

Okay you managed to fix it but how, that's the question...