<gh_stars>0
from ExploitHTTPBot import HTTPBot
from ExploitSFTPBot import RTSPBot

URL = "192.168.15.1"
URL2 = "192.168.15.103"
target_url = ""


class ExploitBotFactory(object):
    def __init__(self, dbURL, webURL):
        print"Bot Factory Now Online for Database", dbURL, "\n"
        self._dbURL = dbURL
        self._webURL = webURL

    def spawn_bot(self, bot_type):

        if bot_type == "HTTP":
            print("Spawning HTTP Exploit Bot")
            return HTTPBot(dbURL=self._dbURL, webURL=self._webURL)
        elif bot_type == "RSTP":
            print ("Spawning RSTP Exploit Bot")
            return RTSPBot(dbURL=self._dbURL, webURL=self._webURL)
        else:
            print ("No bot found.")

if __name__ == "__main__":
    print "TestingBotFactory..."
    helloBotFactory = ExploitBotFactory(dbURL="dbURLHERE", webURL="webURLHERE")
    print "Spawning HTTP Bot..."
    myHTTPBOT = helloBotFactory.spawn_bot("HTTP")
    print "Spawning RSTP Bot..."
    mySFTPBOT = helloBotFactory.spawn_bot("RSTP")
from ExploitHTTPBot import HTTPBot
from ExploitSFTPBot import RTSPBot

URL = "192.168.15.1"
URL2 = "192.168.15.103"
target_url = ""


class ExploitBotFactory(object):
    def __init__(self, dbURL, webURL):
        print"Bot Factory Now Online for Database", dbURL, "\n"
        self._dbURL = dbURL
        self._webURL = webURL

    def spawn_bot(self, bot_type):

        if bot_type == "HTTP":
            print("Spawning HTTP Exploit Bot")
            return HTTPBot(dbURL=self._dbURL, webURL=self._webURL)
        elif bot_type == "RSTP":
            print ("Spawning RSTP Exploit Bot")
            return RTSPBot(dbURL=self._dbURL, webURL=self._webURL)
        else:
            print ("No bot found.")

if __name__ == "__main__":
    print "TestingBotFactory..."
    helloBotFactory = ExploitBotFactory(dbURL="dbURLHERE", webURL="webURLHERE")
    print "Spawning HTTP Bot..."
    myHTTPBOT = helloBotFactory.spawn_bot("HTTP")
    print "Spawning RSTP Bot..."
    mySFTPBOT = helloBotFactory.spawn_bot("RSTP")