コード例 #1
0
def execute(**kwargs):

    print("+ Searching Exploits for {0}...".format(kwargs["keywords"]))
    router = Router()

    if (dict(kwargs).has_key("spider")):
        router.words = "Exploit"
    else:
        router.words = kwargs["keywordsformated"]

    dict_all_results = router.search_in_bots()

    if (dict(kwargs).has_key("get")):
        try:
            s = Spider()
            s.run(dict_all_results)
        except Exception, ex:
            print "ERROR -> {0}".format(ex.message)
コード例 #2
0
ファイル: exec_and_print.py プロジェクト: BDLeet/Pompem
def execute(**kwargs):
    
    print ("+ Searching Exploits for {0}...".format(kwargs["keywords"]))
    router = Router()
    
    if (dict(kwargs).has_key("spider")):
        router.words = "Exploit"
    else:
        router.words = kwargs["keywordsformated"]
    
    dict_all_results = router.search_in_bots()

    if (dict(kwargs).has_key("get")):
        try:
            s = Spider()
            s.run(dict_all_results)
        except Exception, ex:
            print "ERROR -> {0}".format(ex.message)
コード例 #3
0
ファイル: blast.py プロジェクト: adampresley/Blast-for-Basis
scriptPath = os.path.dirname(os.path.realpath(__file__))

version = "0.1"
releaseDate = "2012-03-14"
description = "Blast for Basis! v%s" % version
license = open(scriptPath + "/LICENSE")

#
# Get the command from the command line. Determine
# if the command actually exists. If not let the
# user know.
#
parser = argparse.ArgumentParser(description=description)

parser.add_argument("command", help="Name of the Blast command to execute", nargs="*")
args = parser.parse_args()


print ""
print description
print ""

router = Router(args, scriptPath)
if not router.validate():
    print "'%s' is not a valid command" % args.command
    sys.exit()

print "Command: %s" % args.command[0]
router.run()