A Test CGI Script that Works


Although this is non-interactive webpage, it is created each time the web server here gets a request for the URL. You can see the actual guts of it at the showGutsWorking cgi here.

Is that it?

Yes. not very exciting, is it?

Everything the webserver has in the execution environment for this script, including some info about you

Can you spot it?

Hint: on the right of the equals signs, look for familiar names and numbers.

Apache Server at thepaperpusher.net Port 80
HTTP_X_HTTP_PROTO=HTTP/1.1 UNIQUE_ID=Wybf18C5hhkACEMVm8oAAAAg HTTP_USER_AGENT=CCBot/2.0 (http://commoncrawl.org/faq/) SERVER_PORT=80 HTTP_HOST=thepaperpusher.net HTTP_X_REAL_IP= DOCUMENT_ROOT=/home3/thepaper/public_html SCRIPT_FILENAME=/home3/thepaper/public_html/working.cgi REQUEST_URI=/working.cgi SCRIPT_NAME=/working.cgi REMOTE_PORT=46731 PATH=/usr/local/bin:/usr/bin:/bin PWD=/home3/thepaper/public_html SERVER_ADMIN=webmaster@thepaperpusher.net HTTP_IF_MODIFIED_SINCE=Sun, 22 Apr 2018 14:22:44 GMT HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 REMOTE_ADDR= SHLVL=1 SERVER_NAME=thepaperpusher.net SERVER_SOFTWARE=Apache QUERY_STRING= SERVER_ADDR= GATEWAY_INTERFACE=CGI/1.1 SERVER_PROTOCOL=HTTP/1.1 HTTP_ACCEPT_ENCODING=x-gzip, gzip, deflate REQUEST_METHOD=GET _=/usr/bin/env

And that's really everything to this.