mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
bundle bottle library in sqlmap (it is MIT license) - issue #297
This commit is contained in:
parent
0ec420cc70
commit
2e97405ffa
|
@ -45,15 +45,9 @@ from lib.core.settings import XMLRPC_SERVER_PORT
|
|||
from lib.core.testing import smokeTest
|
||||
from lib.core.testing import liveTest
|
||||
from lib.parse.cmdline import cmdLineParser
|
||||
from lib.utils.restapi import restAPIrun
|
||||
from lib.utils.xmlrpc import XMLRPCServer
|
||||
|
||||
try:
|
||||
from lib.utils.restapi import restAPIrun
|
||||
except SqlmapMissingDependence, e:
|
||||
e = getUnicode(e)
|
||||
logger.critical(e)
|
||||
sys.exit(1)
|
||||
|
||||
def modulePath():
|
||||
"""
|
||||
This will get us the program's directory, even if we are frozen
|
||||
|
|
8
extra/bottle/__init__.py
Normal file
8
extra/bottle/__init__.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
Copyright (c) 2006-2012 sqlmap developers (http://sqlmap.org/)
|
||||
See the file 'doc/COPYING' for copying permission
|
||||
"""
|
||||
|
||||
pass
|
3262
extra/bottle/bottle.py
Normal file
3262
extra/bottle/bottle.py
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user