mirror of
https://github.com/Collins3560/Cinebreak.git
synced 2026-10-06 14:00:08 +02:00
Fork of Gezine's MIT-licensed BD-JB5 (BD-J sandbox escape) extended into a full userland -> kernel -> root -> homebrew chain with automation tooling: ps5chain.py (full-chain orchestrator), ps5find.py (LAN discovery), probe payload, and local test harness. All original copyright headers and licenses preserved. Credits: Gezine, TheFlow, ufm42, john-tornblom, hammer-83, kuba-.
24 lines
758 B
Python
24 lines
758 B
Python
import socket
|
|
|
|
def send_jar(jar_path, host, port=9025):
|
|
with open(jar_path, 'rb') as f:
|
|
data = f.read()
|
|
|
|
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
sock.connect((host, port))
|
|
sock.sendall(data)
|
|
sock.close()
|
|
print(f"Sent {len(data)} bytes to {host}:{port}")
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
if len(sys.argv) > 2:
|
|
host = sys.argv[2]
|
|
port = int(sys.argv[3]) if len(sys.argv) > 3 else 9025
|
|
send_jar(sys.argv[1], host, port)
|
|
else:
|
|
print("Usage: python jar_client.py <jar_file> <host> [port]")
|
|
print("Examples:")
|
|
print(" python jar_client.py helloworld.jar 192.168.1.100")
|
|
print(" python jar_client.py helloworld.jar 192.168.1.100 9025")
|