Created
March 17, 2013 13:45
-
-
Save ganadist/5181558 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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