예제 #1
0
def add_task():
    if request.method == 'POST':
        if request.form.get('finger').find('.') != -1:
            result = FingerPrint(request.form.get('finger'),
                                 request.form.get('protocol')).run()
            flash(result.split(' ')[:-1])
        return redirect('/index')
예제 #2
0
def get_wallet():
    file = request.files['finger']
    filename = UPLOAD_FOLDER + "/" + file.filename
    file.save(os.getcwd() + "/" + filename)
    finger_module = FingerPrint(filename)
    seed_phrase = finger_module.get_seed_phrase()
    private_key, public_key = crypto.generate_wallet(seed_phrase)
    response_data = json.dumps({
        "seed": seed_phrase,
        "private_key": private_key,
        "public_key": public_key,
        "balance": crypto.get_balance(public_key)
    })
    response = Response(response_data, mimetype="application/json")
    response.headers['Access-Control-Allow-Origin'] = '*'
    return response, 200
예제 #3
0
# map.py

import sys
import re
import string
from fingerprint import FingerPrint

f = FingerPrint()

for line in sys.stdin:
    label, text = line.split('\t')
    try:
        text = text.decode('ascii', 'replace').replace(u'\ufffd', '_')
        print "%s\t%s" % (f.fingerprint(text), text.strip())
    except:
        pass
예제 #4
0
else:
    from common2 import *
    import common2 as common

import util
import DNS
import threadpool
from functools import partial
from fingerprint import FingerPrint
from dnslog import DNSLog

import hackhttp
import hackhttp as hh
hackhttp = hh.hackhttp()

fingerprint = FingerPrint()

_G = {
    'scanport': False,
    'subdomain': False,
    'target': 'www.abc.com',
    'disallow_ip': ['127.0.0.1'],
    'kv': {},
    'udomain': "test",
    # 'user_dict':'http://192.168.0.158/1.txt'
    # 'pass_dict':'http://192.168.0.158/1.txt'
    "custom_dict": {}
}

util._G = _G
예제 #5
0
 def __init__(self):
     self.fprint = FingerPrint()