mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
minor adjustments to the coding style, nothing that will cause any problems
This commit is contained in:
parent
ed3d15c26f
commit
17c5771eac
2 changed files with 9 additions and 5 deletions
|
|
@ -145,11 +145,10 @@ def find_sqlmap(to_find="sqlmap"):
|
|||
return found_path
|
||||
|
||||
|
||||
def sqlmap_scan_main(url, port=None, verbose=None, opts=None, auto_start=False, **kwargs):
|
||||
def sqlmap_scan_main(url, port=None, verbose=None, opts=None, auto_start=False):
|
||||
"""
|
||||
the main function that will be called and initialize everything
|
||||
"""
|
||||
parse_conf = kwargs.get("parse_conf", None)
|
||||
|
||||
def ___dict_args():
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
import os
|
||||
import re
|
||||
import threading
|
||||
import tempfile
|
||||
import importlib
|
||||
try:
|
||||
import urlparse # python 2
|
||||
except ImportError:
|
||||
import urllib.parse as urlparse # python 3
|
||||
import tempfile
|
||||
import importlib
|
||||
|
||||
import requests
|
||||
|
||||
|
|
@ -113,10 +114,14 @@ def scan_xss(url, agent=None, proxy=None):
|
|||
return False, None
|
||||
|
||||
|
||||
def main_xss(start_url, verbose=False, proxy=None, agent=None, tamper=None, batch=False):
|
||||
def main_xss(start_url, proxy=None, agent=None, **kwargs):
|
||||
"""
|
||||
main attack method to be called
|
||||
"""
|
||||
batch = kwargs.get("batch", False)
|
||||
tamper = kwargs.get("tamper", None)
|
||||
verbose = kwargs.get("verbose", False)
|
||||
|
||||
if tamper:
|
||||
lib.core.settings.logger.info(lib.core.settings.set_color(
|
||||
"tampering payloads with '{}'...".format(tamper)
|
||||
|
|
|
|||
Loading…
Reference in a new issue