Пример #1
0
# Misc user information
print("{:30} {:>}".format("Banned response codes:",
                          ",".join(banned_response_codes)))
if not unbanned_response_codes[0] == '':
    print("{:30} {:>}".format("unBanned response codes:",
                              ",".join(unbanned_response_codes)))
if not extension == ['']:
    print("{:30} {:>}".format("Extensions to probe:", ",".join(extension)))

# Payload options
# FIXME: This design is garbage
payload = None
parse_robots = args.parse_robots
remove_slash = True
if parse_robots:
    robots_content = process_robots(target)
    if not robots_content:
        print("[!] robots.txt not found")
        sys.exit()
    print("Reaped %s entries" % (len(robots_content)))
    print("Using robots.txt as payload")
    payload_filename = robots_content
else:
    payload_filename = args.payload
    if not payload_filename:
        print("[!] You have to specify a payload")
        parser.print_help()
        sys.exit()
    print("{:30} {:>}".format("Using payload:", payload_filename))

payload = Payload(target, payload_filename, resumer)
Пример #2
0
        print("404 ---> PAGE_MD5 ----> " + autodiscriminator_md5)

# Misc user information
print("{:30} {:>}".format("Banned response codes:", ",".join(banned_response_codes)))
if not unbanned_response_codes[0] == '':
    print("{:30} {:>}".format("unBanned response codes:", ",".join(unbanned_response_codes)))
if not extension == ['']:
    print("{:30} {:>}".format("Extensions to probe:", ",".join(extension)))

# Payload options
# FIXME: This design is garbage
payload = None
parse_robots = args.parse_robots
remove_slash = True
if parse_robots:
    robots_content = process_robots(target)
    if not robots_content:
        print("[!] robots.txt not found")
        sys.exit()
    print("Reaped %s entries" % (len(robots_content)))
    print("Using robots.txt as payload")
    payload_filename = robots_content
else:
    payload_filename = args.payload
    if not payload_filename:
        print("[!] You have to specify a payload")
        parser.print_help()
        sys.exit()
    print("{:30} {:>}".format("Using payload:", payload_filename))

payload = Payload(target, payload_filename, resumer)