(taskid)
return jsonize({"success": True, "engineid": DataStore.tasks[taskid].engine_get_id()})
Launch a scan
Launch a scan
Launch a scan
def scan_start(taskid):
    """
    Launch a scan
    """
    if taskid not in DataStore.tasks:
        logger.warning("[%s] Invalid task ID provided to scan_start()" % taskid)
        return jsonize({"success": False, "message": "Invalid task ID"})

    # Initialize sqlmap engine's options with user's provided options, if any
    for option, value in request.json.items():
        DataStore.tasks[taskid].set_option(option, value)

    # Launch sqlmap engine in a separate process
    DataStore.tasks[taskid].engine_start()

    logger.debug("[%s] Started scan" % taskid)
    return jsonize({"success": True, "engineid": DataStore.tasks[taskid].engine_get_id()})
def scan_start ( taskid ) : if taskid not in DataStore . tasks : logger . warning ( "[%s] Invalid task ID provided to scan_start()" % taskid ) return jsonize ( { "success" : False , "message" : "Invalid task ID" } ) # Initialize sqlmap engine's options with user's provided options, if any for option , value in request . json . items ( ) : DataStore . tasks [ taskid ] . set_option ( option , value ) # Launch sqlmap engine in a separate process DataStore . tasks [ taskid ] . engine_start ( ) logger . debug ( "[%s] Started scan" % taskid ) return jsonize ( { "success" : True , "engineid" : DataStore . tasks [ taskid ] . engine_get_id ( ) } )