mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
bundle bottle library in sqlmap (it is MIT license) - issue #297
This commit is contained in:
@@ -9,6 +9,7 @@ import sys
|
||||
import json
|
||||
import os
|
||||
|
||||
from extra.bottle.bottle import abort, error, get, post, request, run, template, debug
|
||||
from lib.controller.controller import start
|
||||
from lib.core.convert import hexencode
|
||||
from lib.core.datatype import AttribDict
|
||||
@@ -20,13 +21,6 @@ from lib.core.option import init
|
||||
from lib.core.settings import UNICODE_ENCODING
|
||||
from lib.core.settings import RESTAPI_SERVER_PORT
|
||||
|
||||
try:
|
||||
from bottle import abort, error, get, post, request, run, template, debug
|
||||
except ImportError:
|
||||
errMsg = "Missing mandatory library bottle: download from "
|
||||
errMsg += "http://bottlepy.org/ and install it"
|
||||
raise SqlmapMissingDependence, errMsg
|
||||
|
||||
|
||||
# local global variables
|
||||
session_ids = []
|
||||
|
||||
Reference in New Issue
Block a user