A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

webrobot.py - Stikked
From Scorching Mousedeer, 11 Years ago, written in Python.
Embed
  1. #!/usr/bin/python
  2.  
  3. import urllib2
  4. import urllib
  5. import random, string
  6. from cookielib import CookieJar
  7.  
  8.  
  9.  
  10. class Webrobot:
  11.  
  12.     def __init__(self):
  13.         self.cj = CookieJar()
  14.         self.opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cj))
  15.  
  16.     def open(self, url, form_data = False):
  17.         #print url
  18.         if form_data:
  19.             data_encoded = urllib.urlencode(form_data)
  20.             response = self.opener.open(url, data_encoded)
  21.         else:
  22.             response = self.opener.open(url)
  23.         content = response.read()
  24.         return content
  25.  
  26. def rs():
  27.     return ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(12))
  28.  
  29.  
  30.  
  31. r = Webrobot()
  32.  
  33. response = r.open('http://www.sw-agentur.net/?page=kontakt&result=true&name=' + rs() + '&surname=' + rs() + '&company_name=' + rs() + '&email=' + rs() + '&url=' + rs() + '&content=' + rs() + '')
  34.  
  35. print response