Exemplo n.º 1
0
 def __init__(self, url):
     self.url = url
     self.sess = requests.session()
     self.hh = hackhttp.hackhttp(hackhttp.httpconpool())
     self.tp = thread_pool.ThreadPool(500)
     self.headers = headers_dict = {
         'X-Forwarder-For': '192.168.1.1',
     }
Exemplo n.º 2
0
 def __init__(self, httpTarget, payloadsQueue, raw, orgData, result,
              payloadLenght):
     threading.Thread.__init__(self)
     self.hh = hackhttp.hackhttp(hackhttp.httpconpool(500))
     self.httpTarget = httpTarget
     self._queue = payloadsQueue
     self.raw = raw
     self.orgData = orgData
     self.results = result
     self.length = payloadLenght
Exemplo n.º 3
0
#!/usr/bin/env python
# coding:utf-8
from thread_pool import ThreadPool
import hackhttp
import re
import os

hh = hackhttp.hackhttp(hackhttp.httpconpool(500))
tp = ThreadPool(500)
package = "wooyun"

if not os.path.exists(package):
    os.mkdir(package)


def vlun(wid):
    print "[+]%s" % wid
    if os.path.isfile(wid + ".html"):
        return
    _, _, html, _, _ = hh.http(
        url="http://wooyun.org/bugs/%s" % wid, cookcookie=False)
    open(package + "/" + wid + '.html', 'wb').write(html)


def catalog(page):
    _, _, html, _, _ = hh.http(
        url="http://wooyun.org/bugs/new_public/page/%d" % page,
        cookcookie=False)
    for wid in re.findall(r'href="/bugs/(wooyun-\d+-\d+)">', html):
        tp.add_task(vlun, wid)
    if page > 0:
Exemplo n.º 4
0
#!/usr/bin/env python
# coding:utf-8
from thread_pool import ThreadPool
import hackhttp
import re
import os

hh = hackhttp.hackhttp(hackhttp.httpconpool(500))
tp = ThreadPool(500)
package = "wooyun"

if not os.path.exists(package):
    os.mkdir(package)


def vlun(wid):
    print "[+]%s" % wid
    if os.path.isfile(wid + ".html"):
        return
    _, _, html, _, _ = hh.http(url="http://wooyun.org/bugs/%s" % wid,
                               cookcookie=False)
    open(package + "/" + wid + '.html', 'wb').write(html)


def catalog(page):
    _, _, html, _, _ = hh.http(
        url="http://wooyun.org/bugs/new_public/page/%d" % page,
        cookcookie=False)
    for wid in re.findall(r'href="/bugs/(wooyun-\d+-\d+)">', html):
        tp.add_task(vlun, wid)
    if page > 0: