Skip to content

Instantly share code, notes, and snippets.

@ganadist
Created March 17, 2013 13:45
Show Gist options
  • Save ganadist/5181558 to your computer and use it in GitHub Desktop.
Save ganadist/5181558 to your computer and use it in GitHub Desktop.
@@ -127,7 +127,15 @@ class WorkerThread(Thread):
sleep(0.5)
req_sc.send('Host: ')
- for c in phost:
+ def feed_phost(phost):
+ import random
+ i = 1
+ while phost:
+ yield random.randrange(1, 3), phost[:i]
+ phost = phost[i:]
+ i += 2
+ for delay, c in feed_phost(phost):
+ sleep(delay/1.0)
req_sc.send(c)
req_sc.send('\r\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment