Recent Posts
None | 12 sec ago
None | 39 sec ago
None | 50 sec ago
None | 1 min ago
Ruby | 1 min ago
None | 1 min ago
Bash | 2 min ago
None | 2 min ago
None | 3 min ago
None | 5 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Anonymous on the 10th of Feb 2010 12:14:57 AM Download | Raw | Embed | Report
  1. HTTP/1.1 404 Not Found
  2. Date: Wed, 10 Feb 2010 00:08:25 GMT
  3. Server: Apache
  4. Last-Modified: Sun, 05 Aug 2007 16:04:16 GMT
  5. ETag: "2004827c-3c6-436f5f1a74000"
  6. Accept-Ranges: bytes
  7. Content-Length: 966
  8. Connection: close
  9. Content-Type: text/html
  10.  
  11. <HTML>
  12. <HEAD>
  13. <TITLE>404 Not Found</TITLE>
  14. </HEAD>
  15. <BODY>
  16. <H1>Not Found</H1>
  17. The requested document was not found on this server.
  18. <P>
  19. <HR>
  20. <ADDRESS>
  21. Web Server at hellboundhackers.org
  22. </ADDRESS>
  23. </BODY>
  24. </HTML>
  25.  
  26. <!--
  27.    - Unfortunately, Microsoft has added a clever new
  28.    - "feature" to Internet Explorer. If the text of
  29.    - an error's message is "too small", specifically
  30.    - less than 512 bytes, Internet Explorer returns
  31.    - its own error message. You can turn that off,
  32.    - but it's pretty tricky to find switch called
  33.    - "smart error messages". That means, of course,
  34.    - that short error messages are censored by default.
  35.    - IIS always returns error messages that are long
  36.    - enough to make Internet Explorer happy. The
  37.    - workaround is pretty simple: pad the error
  38.    - message with a big comment like this to push it
  39.    - over the five hundred and twelve bytes minimum.
  40.    - Of course, that's exactly what you're reading
  41.    - right now.
  42.    -->
  43.  
  44.  
  45.  
  46.  
  47. ------------------------------------------------------------------------------------------------------------------
  48.  
  49.  
  50. #!/usr/bin/python
  51.  
  52.  
  53. import urllib2
  54.  
  55. import socket, sys, re
  56.  
  57. respond = ''
  58.  
  59.  
  60. class HBH:
  61.  
  62.         def __init__(self):
  63.  
  64.                 self.cookies = ''
  65.  
  66.  
  67.  
  68.         def sock(self):
  69.  
  70.                 self.s = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
  71.  
  72.                 self.s.connect( ('87.106.143.53', 80) )
  73.  
  74.  
  75.  
  76.         def request(self, method, path, content=''):
  77.  
  78.                 c_type = c_len = ''
  79.  
  80.                 if content != '':
  81.  
  82.                         c_type = 'Content-Type: application/x-www-form-urlencoded\r\n'
  83.  
  84.                         c_len = 'Content-Length: %s\r\n' % len(content)
  85.  
  86.                 head = '%s /%s HTTP/1.1\r\n' \
  87.  
  88.                         'Host: www.hellboundhackers.org\r\n' \
  89.  
  90.                         'User-Agent: Mozilla/5.0\r\n' \
  91.  
  92.                         'Keep-Alive: 300\r\n' \
  93.  
  94.                         'Connect: keep-alive\r\n' \
  95.  
  96.                         'Referer: www.hellboundhackers.org\r\n' \
  97.  
  98.                         '%s' \
  99.  
  100.                         '%s' \
  101.  
  102.                         '%s' \
  103.  
  104.                         '\r\n%s' % ( method, path, self.cookies, c_type, c_len, content )
  105.  
  106.                 self.s.send(head)
  107.  
  108.  
  109.  
  110.         def response(self):
  111.  
  112.                 self.resp = ''
  113.  
  114.                 while True:
  115.  
  116.                         data = self.s.recv(1024)
  117.  
  118.                         if data == '': break
  119.  
  120.                         self.resp += data
  121.                        
  122.  
  123.  
  124.  
  125.         def save_cookies(self):
  126.  
  127.                 self.cookies = 'Cookie: %s\r\n' \
  128.  
  129.                 % ''.join( x.replace('Set-Cookie: ', '') for x in re.findall('Set-Cookie: .*?;', self.resp) )
  130.  
  131.  
  132.  
  133. def main():
  134.  
  135.         hbh = HBH()
  136.  
  137.         hbh.sock()
  138.  
  139.         hbh.request('POST', 'index.php', 'user_name=yours31f&user_pass=mcWQ@eSz!8&login=Login')
  140.  
  141.         hbh.response()
  142.  
  143.         hbh.save_cookies()
  144.  
  145.         hbh.s.close()
  146.  
  147.         hbh.sock()
  148.  
  149.         hbh.request('GET', 'http://www.hellboundhackers.org' ) 
  150.         hbh.response()
  151.         respond = hbh.resp          
  152.  
  153.         print '\n' + respond  
  154.  
  155.         hbh.s.close()      
  156.  
  157. if __name__ == '__main__':
  158.  
  159.         main()
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: