I hacked WriteCodeOnline?
Posted: Mon Jun 13, 2011 10:57 am
I was curious to know what info exactly was in the $_SERVER array, so I went to PHP: Write Code Online, as I was on my iPod at the time. This is my code:
nSCRIPT_FILENAME: /kunden/homepages/26/d94605010/htdocs/lz/writecodeonline.com/php/index.php
Isn't this the file path of the homepage on the server, nor website?
And in fact, show where the host other websites?
I find this interesting, because if you were smart enough, you could use This info, then actually hack the server and screw around with it.
Just thought I'd mention…
<?php foreach($_SERVER as $key=>$server){ echo "$key: $server<br />\n"; } ?>This Is the info that came up:
now I want to call attention to this line:HTTP_ACCEPT: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
nHTTP_ACCEPT_CHARSET:
nHTTP_ACCEPT_ENCODING: gzip, deflate
nHTTP_ACCEPT_LANGUAGE: en-us
nHTTP_CONNECTION: keep-alive
nHTTP_HOST: writecodeonline.com
nHTTP_KEEP_ALIVE:
nHTTP_REFERER: http://writecodeonline.com/php/
nHTTP_USER_AGENT: Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5
nSCRIPT_FILENAME: /kunden/homepages/26/d94605010/htdocs/lz/writecodeonline.com/php/index.php
nSCRIPT_URI: http://writecodeonline.com/php/
nSCRIPT_URL: /php/
nSERVER_NAME: writecodeonline.com
nSERVER_PORT: 80
nSERVER_SOFTWARE: Apache
nSERVER_PROTOCOL: HTTP/1.1
nREQUEST_METHOD: POST
nQUERY_STRING:
nREQUEST_URI: /php/
nSCRIPT_NAME: /php/index.php
nPATH_INFO: /php/index.php
nSTATUS: 200
nPHP_SELF: /php/index.php
nargv: Array
nargc: 0
n
nSCRIPT_FILENAME: /kunden/homepages/26/d94605010/htdocs/lz/writecodeonline.com/php/index.php
Isn't this the file path of the homepage on the server, nor website?
And in fact, show where the host other websites?
I find this interesting, because if you were smart enough, you could use This info, then actually hack the server and screw around with it.
Just thought I'd mention…