How to use the sqlmap.lib.utils.api.server function in sqlmap

To help you get started, we’ve selected a few sqlmap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github offensive-hub / black-widow / app / managers / injection / sql_injection_util / sqlmapcli.py View on Github external
def __init__(self, host: str = DEFAULT_HOST, port: int = DEFAULT_PORT):
        """
        :param host: The host
        :param port: The port
        """
        self.host = host
        self.port = port
        self.base_url = 'http://' + self.host + ':' + str(port)
        # Start the sqlmap-api server in a parallel thread
        Log.info("Starting sqlmap-api server in a parallel thread")
        MultiTask.multithread(sqlmap_server, (self.host, self.port), True, 1)
        while not check_socket(self.host, self.port):
            # Wait sqlmap-api server
            sleep(0.1)
        Log.success("Sqlmap-api server started!")

sqlmap

Automatic SQL injection and database takeover tool

GPL-2.0
Latest version published 8 days ago

Package Health Score

85 / 100
Full package analysis

Similar packages