Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bruteforce script missing file? #14

Open
jsmif opened this issue May 10, 2023 · 0 comments
Open

bruteforce script missing file? #14

jsmif opened this issue May 10, 2023 · 0 comments

Comments

@jsmif
Copy link

jsmif commented May 10, 2023

When I run "make bf", it seems to hang or be waiting for input after "BEGIN: 198775, END: 218775, KS_BYTES: 400", so my output initially looks like this:

make bf
python2 bf.py
2023-05-10 14:39:13,259 root WARNING attack Assuming FEC and whitening already computed by Ubertooth
2023-05-10 14:39:13,259 root INFO attack BTADDR_M : bytearray(b'\xcc\xfa\x00p\xdc\xb6')
2023-05-10 14:39:13,259 root INFO attack start lmp and hci iblue monitors: sudo ubertooth-rx -l 70dcb6 -u 00  -r nexus.pcap
2023-05-10 14:39:13,259 root INFO attack BTADDR_S : bytearray(b'\x82\x9ff\x9b\xda$')
2023-05-10 14:39:13,259 root INFO attack Kl       : bytearray(b"\xd5\xf2\x07D\xc0]\x08`\x1d(\xfa\x1d\xd7\x9c\xdc\'")
2023-05-10 14:39:13,259 root INFO attack AU_RAND  : 722e6ecd32ed43b7f3cdbdc2100ff6e0
2023-05-10 14:39:13,286 root INFO attack SRES     : bytearray(b'\xb0\xa3\xf4\x1f')
2023-05-10 14:39:13,286 root INFO attack R_SRES   : bytearray(b'\xb0\xa3\xf4\x1f')
2023-05-10 14:39:13,286 root INFO attack ACO = COF: bytearray(b'\x1c\xe4\xf9Bm\xc2\xbc\x11\x04r\xd6\x8e')
2023-05-10 14:39:13,286 root INFO attack ACO = COF: 1ce4f9426dc2bc110472d68e
2023-05-10 14:39:13,286 root INFO attack EN_RAND  : d72fb4217dcdc3145056ba488bea9076
2023-05-10 14:39:13,310 root INFO attack Kc       : bytearray(b"\xa3\xfc\xce\xf2*\xd2#,z\xcb\x01\xe9\xb9\xedg\'")
2023-05-10 14:39:13,310 root INFO attack Kc       : a3fccef22ad2232c7acb01e9b9ed6727
2023-05-10 14:39:13,383 root INFO attack Kc_prime : bytearray(b'\x7f\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'), entropy: 1 Byte
2023-05-10 14:39:13,383 root INFO attack Kc_prime : 7fffffffffffffffffffffffffffffff, entropy: 1 Byte
Make sure to make e0 with correct Kc_prime, and BTADDR_M
BEGIN: 198775, END: 218775, KS_BYTES: 400

If I wait for a bit and then hit ctrl-c or enter, I get:

2023-05-10 14:44:16,702 root INFO attack # BEGIN bruteforce : CT6-RCLK-KS400-198775-218775.bf
2023-05-10 14:44:16,702 root INFO attack            343 CT  : ebad5675cf3a158575ecf90d0b842149364a5f85f69c9ac1d6c5442059dee18f1ba5af427b4ecd60eb6222902ceff0c78dd257a13da766b0753111489677f8e346e9abd09e5333d8ba980824cb3bfc71a3f45568cfa9196c5d4c0492e51dfeb851fa2ab4e7d40cb62e2602c9f20e7fdc287d15da736a065b1713816479873f6e94be0aed393583ad8b8940b2bcc31f374a5f85f69c9ac1d6c5442059dee18f1ba5af427b4ecd60eb6222902ceff0c78dd257a13da766b0753111489677f8e346e9abd09e5333d8ba980824cb3bfc71a3f45568cfa9196c5d4c0492e51dfeb851fa2ab4e7d40cb62e2602c9f20e7fdc287d15da736a065b1713816479873f6e94be0aed393583ad8b8940b2bcc31f374a5f85f69c9ac1d6c5442059dee18f1ba5af427b4ecd60eb6222902ceff0c78dd257a13da766b0753111489677f8e346e9abd09e5333d8ba980824cb3bfc71a3f45568cfa9196c5d
2023-05-10 14:44:16,702 root INFO 
2023-05-10 14:44:16,702 root INFO PATTERNS: {'cccc': 'cccc', 'f_i_l_e': 'f\x00i\x00l\x00e', 'L2CAP1_R': '\x00\x01\x00\x08', 'L2CAP1_TR': '\x00I\x00\x03', 'image': 'image', 'L2CAP3': '\n\x00\x01\x00', 'bbbb': 'bbbb', 'L2CAP1_T': '\x03\x00I\x00', 'aaaa': 'aaaa', 'dddd': 'dddd', 'L2CAP1': '\x08\x00\x01\x00', 'L2CAP2': '\x0c\x00\x01\x00', 'L2CAP2_R': '\x00\x01\x00\x0c', 'jpeg': 'jpeg', 'j_p_e_g': '\x06a\x00p\x00e\x00g', 'L2CAP3_R': '\x00\x01\x00\n'}
Traceback (most recent call last):
  File "bf.py", line 211, in <module>
    p = Popen(ARGS, stdout=PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [Makefile:4: bf] Error 1

"CT6-RCLK-KS400-198775-218775.bf" is in the folder just fine, so I'm wondering if the file it can't find is the "nexus.pcap", in reference to the attack start lmp and hci iblue monitors: sudo ubertooth-rx -l 70dcb6 -u 00 -r nexus.pcap line?

(I tried cp ../poc-internalblue/sample-nexmaster-galaxys9slave.pcapng nexus.pcap but that didn't help)

Note: I don't seem to see any errors with "make tests" (if that was supposed to create the pcap or something.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant