mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Minor refactoring
This commit is contained in:
@@ -19,10 +19,11 @@ from lib.core.settings import RESTAPI_DEFAULT_PORT
|
|||||||
from lib.utils.api import client
|
from lib.utils.api import client
|
||||||
from lib.utils.api import server
|
from lib.utils.api import server
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def main():
|
||||||
"""
|
"""
|
||||||
REST-JSON API main function
|
REST-JSON API main function
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Set default logging level to debug
|
# Set default logging level to debug
|
||||||
logger.setLevel(logging.DEBUG)
|
logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
@@ -45,3 +46,6 @@ if __name__ == "__main__":
|
|||||||
client(args.host, args.port)
|
client(args.host, args.port)
|
||||||
else:
|
else:
|
||||||
apiparser.print_help()
|
apiparser.print_help()
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user