On the left, you see a variety of CGI scripts available from your directory. The output from these scripts gets sent to this frame. Study the source code behind the HTML forms and the source code for the CGI scripts.
To complete this assignment, improve wxplot.cgi to accomplish the following:
Below is the output from userenv.cgi, executed through the use of an #include virtual statement directly within the HTML source. Look for REMOTE_ADDR and HTTP_USER_AGENT and notice how you compromise your privacy simply by accessing the server!
Time on the server: Sun May 5 07:44:56 2024 Process id for this script: 7104 The CGI form has the following keys: [] The QUERY_STRING is: The STDIN is: The ARGV is: ['userenv.cgi'] Information about your server: HTTP_REFERER : http://frost.atms.unca.edu/~cgodfrey/advcomp/cgi/default.shtml CONTEXT_DOCUMENT_ROOT : /home/uncanet.unca.edu/cgodfrey/public_html SERVER_SOFTWARE : Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips PHP/5.4.16 CONTEXT_PREFIX : /~cgodfrey SERVER_SIGNATURE : REQUEST_METHOD : GET SERVER_PROTOCOL : INCLUDED QUERY_STRING : PATH : /usr/local/bin:/usr/bin:/bin SSL_TLS_SNI : www.atms.unca.edu DATE_GMT : HTTP_USER_AGENT : Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) SERVER_NAME : www.atms.unca.edu REMOTE_ADDR : 3.145.111.125 DOCUMENT_NAME : default.shtml SERVER_PORT : 443 USER_NAME : SERVER_ADDR : 152.18.63.58 DOCUMENT_ROOT : /usr/local/www/html SCRIPT_FILENAME : /home/uncanet.unca.edu/cgodfrey/public_html/advcomp/cgi/userenv.cgi SERVER_ADMIN : root@localhost DOCUMENT_URI : /~cgodfrey/advcomp/cgi/default.shtml LAST_MODIFIED : HTTP_HOST : www.atms.unca.edu SCRIPT_NAME : /~cgodfrey/advcomp/cgi/userenv.cgi HTTPS : on REQUEST_URI : /~cgodfrey/advcomp/cgi/default.shtml HTTP_ACCEPT : */* GATEWAY_INTERFACE : CGI/1.1 REMOTE_PORT : 58528 REQUEST_SCHEME : https DATE_LOCAL : UNIQUE_ID : ZjdxOL9MpCpVlYPAUZg7RAAAAAY