1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
#!/usr/bin/python3
# -*- coding: utf-8 -*-
HELP_MESSAGE = """
Options:
-h, --help show this help message and exit
-s, --search <keyword,keyword,keyword> text for search
--txt Write txt File
--html Write html File
--update upgrade to latest version
-g, --get Download exploit files
"""
BASIC_INFO_MESSAGE = """
__________
\\______ \\____ _____ ______ ____ _____
| ___/ _ \\ / \\____ \\_/ __ \\ / \\
| | ( <_> ) Y Y \\ |_> > ___/| Y Y \\
|____| \\____/|__|_| / __/ \\___ >__|_| /
\\/|__| \\/ \\/
Rafael Francischini (Programmer and Ethical Hacker) - @rfunix
Bruno Fraga (Security Researcher) - @brunofraga_net
Usage: pompem.py [-s/--search <keyword,keyword,keyword,...>]
[--txt Write txt file ]
[--html Write html file ]
Get basic options and Help, use: -h/--help
"""
GENERATE_TXT_FILE = """
+ Generate txt output file -> out.txt
"""
MAX_PRINT_PER_SITE = 30
def show_results(key_word, list_results):
print ("+Results {0}".format(key_word))
print ("+" + "-" * 200 + "+")
print (
"+Date Description Url ")
print ("+" + "-" * 200 + "+")
for dict_result in list_results:
count_print = 0
for key , result in dict_result.items():
for exploit_data in result:
if (count_print > MAX_PRINT_PER_SITE):
break
count_print += 1
print("+ {0} | {1} | {2} ".format(exploit_data["date"],
str(exploit_data["name"])[0:50],
exploit_data["url"]))
print ("+" + "-" * 200 + "+")
|