From 0c948d01e202689ae230d9f990f54c5029dbc019 Mon Sep 17 00:00:00 2001 From: z0rs Date: Sat, 10 Aug 2024 17:56:37 -0500 Subject: [PATCH] Add index.php --- index.php | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 index.php diff --git a/index.php b/index.php new file mode 100644 index 0000000..67b8710 --- /dev/null +++ b/index.php @@ -0,0 +1,56 @@ + + + + Hello from z0rs + + +'; + +// Print all cookies +echo '

Cookies:

'; +echo '
';
+print_r($_COOKIE);
+echo '
'; + +// If the ?u query parameter is present, generate the cURL command +if (!empty($targetUrl)) { + $curlCommand = 'curl -X GET "' . $targetUrl . '" \\' . PHP_EOL; + foreach ($_COOKIE as $cookieName => $cookieValue) { + $curlCommand .= '--cookie "' . $cookieName . '=' . addslashes($cookieValue) . '" \\' . PHP_EOL; + } + echo ''; + echo ''; +} + +echo ' + +'; \ No newline at end of file