Skip to content

Instantly share code, notes, and snippets.

@nebuxadnezzar
Last active April 24, 2024 16:12
Show Gist options
  • Save nebuxadnezzar/2a680b4e6a8b3294c3cc0cdb4cc95f0b to your computer and use it in GitHub Desktop.
Save nebuxadnezzar/2a680b4e6a8b3294c3cc0cdb4cc95f0b to your computer and use it in GitHub Desktop.
a cgi script for busybox httpd to print environment vars, could be useful for debugging, protect its access with password
#!/bin/sh
printf "Content-Type: text/html\r\n"
printf "\r\n"
echo "Environment variables:"
echo "<pre>"
env | sort
echo "</pre>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment