Jan 9, 2024 12:17 AM
(This post was last modified: Jan 10, 2024 12:34 AM by Nightmare.)
Can anyone help me out with this?
I made this code for remove null bytes from shellcode(it's not complete but it is a start),i want to do it kinda like metasploit does?
I made this code for remove null bytes from shellcode(it's not complete but it is a start),i want to do it kinda like metasploit does?
Code
# Import necessary modules
import sys
# Read the shellcode binary file
with open('shellcode.bin', 'rb') as file:
shellcode = file.read()
# Filter out null bytes from the shellcode
filtered_shellcode = b''.join(byte for byte in shellcode if byte != b'\x00')
# Save the filtered shellcode to a new file
with open('filtered_shellcode.bin', 'wb') as file:
file.write(filtered_shellcode)

![[Image: banner-cyberpunk.gif]](https://i.ibb.co/sdJG1vF3/banner-cyberpunk.gif)