コード例 #1
0
ファイル: cansina.py プロジェクト: KxCode/cansina
size_discriminator = args.size_discriminator

payload_filename = args.payload
print("Using payload: %s" % payload_filename)
print("Spawning %s threads " % threads)
print("Generating payloads...")


#
# Payload queue configuration
#
payload = Payload(target, payload_filename)
payload.set_extensions(extension)
payload.set_remove_slash(remove_slash)
payload.set_uppercase(uppercase)
payload.set_banned_response_codes(banned_response_codes)
payload.set_unbanned_response_codes(unbanned_response_codes)
payload.set_content(content)

total_requests = payload.get_total_requests()
print("Total requests %s  (aprox: %s / thread)" % (total_requests, total_requests / threads))
payload_queue = payload.get_queue()

#
# Manager queue configuration
#
database_name = urlparse.urlparse(target).hostname
manager = DBManager(database_name)
manager.set_timeout(MANAGER_TIMEOUT)
コード例 #2
0
ファイル: cansina.py プロジェクト: Expertasif/cansina
    if not payload_filename:
        print("You have to specify a payload file!")
        parser.print_help()
        sys.exit()
    print("Using payload: %s" % payload_filename)
    print("Generating payloads...")

payload = Payload(target, payload_filename, resumer)
print("Spawning %s threads " % threads)

#
# Payload queue configuration
#
payload.set_extensions(extension)
payload.set_remove_slash(remove_slash)
payload.set_uppercase(uppercase)
payload.set_banned_response_codes(banned_response_codes)
payload.set_unbanned_response_codes(unbanned_response_codes)
payload.set_content(content)
payload.set_recursive(recursive)

#
# Manager queue configuration
#
database_name = urlparse.urlparse(target).hostname
manager = DBManager(database_name)
manager.set_timeout(MANAGER_TIMEOUT)


#
# Configure Visitor Objects
コード例 #3
0
    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)
print("{:30} {:>}".format("Threads:", threads))

# Uppercase
if args.uppercase:
    payload.set_uppercase()
    print("All resource requests will be done in uppercase")

# Capitalization
if args.capitalize:
    print("Words will be Capitalized")
    payload.set_capitalize()

# Strip extension
if args.strip_extension:
    print("Stripping extensions")
    payload.set_strip_extension()

# Only alphanumeric words
if args.only_alpha:
    print("Alpha words only")
コード例 #4
0
ファイル: cansina.py プロジェクト: deibit/cansina
    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)
print("{:30} {:>}".format("Threads:", threads))

# Uppercase
if args.uppercase:
    payload.set_uppercase()
    print("All resource requests will be done in uppercase")

# Capitalization
if args.capitalize:
    print("Words will be Capitalized")
    payload.set_capitalize()

# Strip extension
if args.strip_extension:
    print("Stripping extensions")
    payload.set_strip_extension()

# Only alphanumeric words
if args.only_alpha:
    print("Alpha words only")