Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # feel free to use, edit, distribute
- # pycurl is the only non-standard library
- import pycurl
- import urllib
- import StringIO
- import time
- c = pycurl.Curl()
- ses = []
- res = []
- def req(url, get, data):
- r = StringIO.StringIO()
- form = urllib.urlencode(data)
- if get:
- url += "?%s" % (form)
- else:
- c.setopt(c.POSTFIELDS, form)
- c.setopt(c.URL, url)
- c.setopt(c.WRITEFUNCTION, r.write)
- c.setopt(c.CONNECTTIMEOUT, 5)
- c.setopt(c.TIMEOUT, 8)
- c.perform()
- return r.getvalue()
- print "What is your question?"
- ask = raw_input('>> ')
- print "How many concurrent sessions?"
- i = raw_input('>> ')
- for x in range(0,int(i)):
- print x
- id = req("http://quarks.omegle.com/start", 1, {"savequestion":1, "spid":"", "rcs":1, "ask":ask}).strip('"')
- ses.append(id)
- time.sleep(30)
- for id in ses:
- rep = req("http://quarks.omegle.com/events", 0, {"id":id})
- res.append(rep)
- print rep
- # The logs are all stored in the "res" list: this is not really exploitable as it is, so either parse it in python, or feed it to a web page as JSON. A javascript seems better though... Working on it
Advertisement
Add Comment
Please, Sign In to add comment