INNER CODE UNIT · Python

xor_encode

Marven11/EtherGhost · ether_ghost/vessel_php/main.py:26

def xor_encode(text: str, key: str):
    key_bytes = key.encode()
    return bytes(
        (a ^ key_bytes[i % len(key_bytes)] for i, a in enumerate(text.encode()))
    )


async def start_vessel_server(
    session: PHPSessionInterface,
    server_session: t.Union[PHPSessionInterface, None] = None,
    timeout=10,
):
    code = (
        VESSEL_SERVER_SRC.read_text().removeprefix("<?php").strip().replace("    ", "")
    )
    vessel_client_store = f"_{uuid.uuid4()}"
    vessel_session_key = f"_{uuid.uuid4()}"
    logger.debug(f"Vessel session key: {vessel_session_key}")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…