Example #1
0
def search(data):
    global getlist
    global logger
    global proxy
    print("Getlists(\"%s\", \"%s\")" %
          (data['mode'].lower().strip(), data['text'].strip()))
    logger.start()
    getlist = Getlists(data['mode'].lower().strip(), data['text'], proxy)
    getlist.init_request()
    socketio.start_background_task(target=getlist.get_pkginfo_for_GUI,
                                   logger=logger.logger)
    for a in logger.loggenerator():
        data = json.loads(a)
        if data['type'] == "result":
            if downfile_check(data['package_name']):
                data['info']['status'] = "YES"
            else:
                data['info']['status'] = "NO"
            socketio.emit("search_result", data, namespace="/apk_download")
        elif data['type'] == "log":
            socketio.emit("log", data, namespace="/apk_download")
        elif data['type'] == "exit":
            socketio.emit("exit",
                          data,
                          namespace="/apk_download",
                          callback=logger_stop)
            break
Example #2
0
def import_file_result(msg):
    global downloader
    global getlist
    get_list = {}
    i = 1
    for pkg_id in msg['pkg_list']:
        getlist = Getlists("pkgid", pkg_id,
                           downloader.locale.split("_")[1], proxy)
        getlist.init_request()
        success = getlist.get_pkginfo_for_socket_io(socketio)
        while getlist.finished == False:
            pass
        get_list[pkg_id] = getlist.result[pkg_id]
        socketio.emit("log", {
            "type":
            "log",
            "data":
            "(" + str(i) + "/" + str(len(msg['pkg_list'])) + ")" + pkg_id +
            " pkgid info loaded."
        },
                      namespace="/apk_download")
        i += 1
    getlist.result = get_list
    socketio.emit("exit", {"type": "exit"},
                  namespace="/apk_download",
                  callback=test_func)
Example #3
0
from downloader import Downloader
from assets import Assets
from soFrida import soFrida
from awstester import awsTester

from FridaGUI import FridaGUI
from PresetScript import PresetScript

app = Flask(__name__)
ps = PresetScript()
fg = FridaGUI(ps)
app.secret_key = "secret"
socketio = SocketIO(app, async_mode="threading", engineio_logger=True)
BASE_URI = os.path.dirname(__file__)

getlist = Getlists(socketio)
downloader = Downloader(socketio)
sofrida = soFrida(socketio)
at = awsTester(socketio)

@app.route("/")
def index():
  return render_template("index.html")

@app.route("/apk_download")
def apk_download_layout():
  return render_template("apk_download.html")
@app.route("/assets")
def assets_layout():
  asset = Assets()
  asset_infos = asset.get_exist_sdk()