pyrcrack icon indicating copy to clipboard operation
pyrcrack copied to clipboard

[BUG] Example fails

Open xznhj8129 opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

  File "/home/anon/code/crack.py", line 28, in <module>
    asyncio.run(scan_for_targets())
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/home/anon/code/crack.py", line 18, in scan_for_targets
    choices=[a['interface'] for a in await airmon.interfaces])
  File "/home/anon/code/crack.py", line 18, in <listcomp>
    choices=[a['interface'] for a in await airmon.interfaces])
TypeError: 'Interface' object is not subscriptable```

### Expected Behavior

_No response_

### Steps To Reproduce

run the example

### Environment

```markdown
Kernel: 5.15.0-94-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Cinnamon 5.8.4
    tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.2 Victoria
    base: Ubuntu 22.04 jammy

Python3.11 and 3.10 fail

Anything else?

Dont know anything about asyncio so really got no clue how to approach this

xznhj8129 avatar Feb 21 '24 03:02 xznhj8129