bundle bottle library in sqlmap (it is MIT license) - issue #297

This commit is contained in:
Bernardo Damele
2012-12-14 03:00:30 +00:00
parent 0ec420cc70
commit 2e97405ffa
4 changed files with 3272 additions and 14 deletions

View File

@@ -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 = []