phenotypic / WiFiCrackPy

Automated Wi-Fi cracker for macOS
MIT License
194 stars 20 forks source link

got some error #45

Open inczz opened 1 month ago

inczz commented 1 month ago

raceback (most recent call last): File "/Users/gian/zizzania/WiFiCrackPy/WiFiCrackPy.py", line 159, in scan_networks()


  File "/Users/gian/zizzania/WiFiCrackPy/WiFiCrackPy.py", line 99, in scan_networks
    capture_network(networks_sorted[x]['bssid'], networks_sorted[x]['channel_object'])
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/gian/zizzania/WiFiCrackPy/WiFiCrackPy.py", line 118, in capture_network
    subprocess.run(['sudo', zizzania_path, '-i', iface, '-b', bssid, '-w', 'capture.pcap', '-q'] + ['-n'] * args.d)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 554, in run
    with Popen(*popenargs, **kwargs) as process:
         ~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 1039, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        pass_fds, cwd, env,
                        ^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
                        gid, gids, uid, umask,
                        ^^^^^^^^^^^^^^^^^^^^^^
                        start_new_session, process_group)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 1899, in _execute_child
    self.pid = _fork_exec(
               ~~~~~~~~~~^
            args, executable_list,
            ^^^^^^^^^^^^^^^^^^^^^^
    ...<6 lines>...
            process_group, gid, gids, uid, umask,
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            preexec_fn, _USE_VFORK)
            ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType
phenotypic commented 4 weeks ago

Hi there, please include a copy of the full session from the terminal to help debug.

RaeZhang0822 commented 1 day ago

raceback (most recent call last): File "/Users/gian/zizzania/WiFiCrackPy/WiFiCrackPy.py", line 159, in scan_networks() ~~~^^ File "/Users/gian/zizzania/WiFiCrackPy/WiFiCrackPy.py", line 99, in scan_networks capture_network(networks_sorted[x]['bssid'], networks_sorted[x]['channel_object']) ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/gian/zizzania/WiFiCrackPy/WiFiCrackPy.py", line 118, in capture_network subprocess.run(['sudo', zizzania_path, '-i', iface, '-b', bssid, '-w', 'capture.pcap', '-q'] + ['-n'] * args.d) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 554, in run with Popen(*popenargs, kwargs) as process: ~^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 1039, in init** self._execute_child(args, executable, preexec_fn, close_fds, ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pass_fds, cwd, env, ^^^^^^^^^^^^^^^^^^^ ...<5 lines>... gid, gids, uid, umask, ^^^^^^^^^^^^^^^^^^^^^^ start_new_session, process_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 1899, in _execute_child self.pid = _fork_exec( ~~~~^ args, executable_list, ^^^^^^^^^^^^^^^^^^^^^^ ...<6 lines>... process_group, gid, gids, uid, umask, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ preexec_fn, _USE_VFORK) ^^^^^^^^^^^^^^^^^^^^^^^ TypeError: expected str, bytes or os.PathLike object, not NoneType

me too