コード例 #1
0
ファイル: RFCrack.py プロジェクト: yaba/RFCrack
        d.setMdmDeviatn(rf_settings.deviation)
    if (rf_settings.modulation_type == "MOD_ASK_OOK"):
        d.setMdmModulation(MOD_ASK_OOK)
    elif (rf_settings.modulation_type == "MOD_2FSK"):
        d.setMdmModulation(MOD_2FSK)

if args.rolling_code:
    print("Don't forget to change the default frequency and modulation type")
    attacks.rollingCode(d, rf_settings, args.rolling_code,
                        args.jamming_variance)

if args.known_scanner and not args.compare:
    print(
        "For a custom list use the -z option in the format -f 433000000 314000000 390000000"
    )
    findDevices.searchKnownFreqs(d, args.list)

if args.brute_scanner:
    if args.increment_value == None:
        print(
            "Bruteforcing requires -v argument for an incrementing inteval value Example: 500000"
        )
    else:
        findDevices.bruteForceFreq(d, rf_settings, args.increment_value)

if args.jammer:
    j = jam.setupJammer(0, rf_settings)
    jam.jamming(j, "start", rf_settings, args.rolling_code)

if args.instant_replay:
    attacks.replayLiveCapture(d, args.rolling_code, rf_settings)
コード例 #2
0
        d.setMdmDeviatn(rf_settings.deviation)
    if (rf_settings.modulation_type == "MOD_ASK_OOK"):
        d.setMdmModulation(MOD_ASK_OOK)
    elif (rf_settings.modulation_type == "MOD_2FSK"):
        d.setMdmModulation(MOD_2FSK)

if args.rolling_code:
    print("Don't forget to change the default frequency and modulation type")
    attacks.rollingCode(d, rf_settings, args.rolling_code,
                        args.jamming_variance)

if args.known_scanner:
    print(
        "For a custom list use the -z option in the format -f 433000000 314000000 390000000"
    )
    findDevices.searchKnownFreqs(d, args.freq_list)

if args.brute_scanner:
    if args.increment_value == None:
        print(
            "Bruteforcing requires -v argument for an incrementing inteval value Example: 500000"
        )
    else:
        findDevices.bruteForceFreq(d, rf_settings, args.increment_value)

if args.jammer:
    j = jam.setupJammer(0, rf_settings)
    jam.jamming(j, "start", rf_settings, args.rolling_code)

if args.instant_replay:
    attacks.replayLiveCapture(d, args.rolling_code, rf_settings)