コード例 #1
0
ファイル: cansina.py プロジェクト: SkyN9ne/cansina
    try:
        with open(resume, "rb") as f:
            resumer = pickle.load(f)
            args = resumer.get_args()
    except Exception:
        sys.stdout.write("[!] Could not load a correct resume file, sorry.")
        sys.exit()

# Target check and preparation
if not args.target:
    print("[!] You need to specify a target")
    parser.print_help()
    sys.exit()
target = prepare_target(args.target)

Console.add_config("{:37} {:>}".format("Target:", target))

recursive = args.recursive
Console.add_config("{:37} {:>}".format("Recursive requests",
                                       "Yes" if recursive else "No"))

# Persistent connections
persist = args.persist
Console.add_config("{:37} {:>}".format("Persistent connections",
                                       "Yes" if persist else "No"))

# Misc options
extension = args.extension.split(",")
threads = int(args.threads)
banned_response_codes = [int(item) for item in args.banned.split(",") if item]
unbanned_response_codes = [