- HTTP/1.1 404 Not Found
- Date: Wed, 10 Feb 2010 00:08:25 GMT
- Server: Apache
- Last-Modified: Sun, 05 Aug 2007 16:04:16 GMT
- ETag: "2004827c-3c6-436f5f1a74000"
- Accept-Ranges: bytes
- Content-Length: 966
- Connection: close
- Content-Type: text/html
- <HTML>
- <HEAD>
- <TITLE>404 Not Found</TITLE>
- </HEAD>
- <BODY>
- <H1>Not Found</H1>
- The requested document was not found on this server.
- <P>
- <HR>
- <ADDRESS>
- Web Server at hellboundhackers.org
- </ADDRESS>
- </BODY>
- </HTML>
- <!--
- - Unfortunately, Microsoft has added a clever new
- - "feature" to Internet Explorer. If the text of
- - an error's message is "too small", specifically
- - less than 512 bytes, Internet Explorer returns
- - its own error message. You can turn that off,
- - but it's pretty tricky to find switch called
- - "smart error messages". That means, of course,
- - that short error messages are censored by default.
- - IIS always returns error messages that are long
- - enough to make Internet Explorer happy. The
- - workaround is pretty simple: pad the error
- - message with a big comment like this to push it
- - over the five hundred and twelve bytes minimum.
- - Of course, that's exactly what you're reading
- - right now.
- -->
- ------------------------------------------------------------------------------------------------------------------
- #!/usr/bin/python
- import urllib2
- import socket, sys, re
- respond = ''
- class HBH:
- def __init__(self):
- self.cookies = ''
- def sock(self):
- self.s = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
- self.s.connect( ('87.106.143.53', 80) )
- def request(self, method, path, content=''):
- c_type = c_len = ''
- if content != '':
- c_type = 'Content-Type: application/x-www-form-urlencoded\r\n'
- c_len = 'Content-Length: %s\r\n' % len(content)
- head = '%s /%s HTTP/1.1\r\n' \
- 'Host: www.hellboundhackers.org\r\n' \
- 'User-Agent: Mozilla/5.0\r\n' \
- 'Keep-Alive: 300\r\n' \
- 'Connect: keep-alive\r\n' \
- 'Referer: www.hellboundhackers.org\r\n' \
- '%s' \
- '%s' \
- '%s' \
- '\r\n%s' % ( method, path, self.cookies, c_type, c_len, content )
- self.s.send(head)
- def response(self):
- self.resp = ''
- while True:
- data = self.s.recv(1024)
- if data == '': break
- self.resp += data
- def save_cookies(self):
- self.cookies = 'Cookie: %s\r\n' \
- % ''.join( x.replace('Set-Cookie: ', '') for x in re.findall('Set-Cookie: .*?;', self.resp) )
- def main():
- hbh = HBH()
- hbh.sock()
- hbh.request('POST', 'index.php', 'user_name=yours31f&user_pass=mcWQ@eSz!8&login=Login')
- hbh.response()
- hbh.save_cookies()
- hbh.s.close()
- hbh.sock()
- hbh.request('GET', 'http://www.hellboundhackers.org' )
- hbh.response()
- respond = hbh.resp
- print '\n' + respond
- hbh.s.close()
- if __name__ == '__main__':
- main()