AlaBouali / bane

The "bane" Python library stands out as a robust toolkit catering to a wide spectrum of cybersecurity and networking tasks. Its versatile range of functionalities covers various aspects, including bruteforce attacks, cryptographic methods, DDoS attacks, information gathering, botnet creation and management, and CMS vulnerability scanning and more..
https://alabouali.medium.com/
MIT License
294 stars 57 forks source link

[WinError 2] The system cannot find the file specified #4

Closed ghost closed 3 years ago

ghost commented 3 years ago

Traceback (most recent call last): File "C:\Users\144919\Desktop\jin.py", line 1, in import bane File "C:\Users\144919\AppData\Local\Programs\Python\Python39\lib\site-packages\bane__init.py", line 17, in from bane.ddos import File "C:\Users\144919\AppData\Local\Programs\Python\Python39\lib\site-packages\bane\ddos.py", line 20, in from kamene.all import File "C:\Users\144919\AppData\Local\Programs\Python\Python39\lib\site-packages\kamene\all.py", line 16, in from .arch import File "C:\Users\144919\AppData\Local\Programs\Python\Python39\lib\site-packages\kamene\arch__init__.py", line 95, in from .windows import File "C:\Users\144919\AppData\Local\Programs\Python\Python39\lib\site-packages\kamene\arch\windows__init.py", line 212, in ifaces.load_from_powershell() File "C:\Users\144919\AppData\Local\Programs\Python\Python39\lib\site-packages\kamene\arch\windows__init__.py", line 163, in load_from_powershell for i in get_windows_if_list(): File "C:\Users\144919\AppData\Local\Programs\Python\Python39\lib\site-packages\kamene\arch\windows\init__.py", line 77, in get_windows_if_list ps = sp.Popen(['powershell', '-NoProfile', 'Get-WMIObject -class Win32NetworkAdapter', '|', 'select Name, @{Name="InterfaceIndex";Expression={$.InterfaceIndex}}, @{Name="InterfaceDescription";Expression={$.Description}},@{Name="InterfaceGuid";Expression={$.GUID}}, @{Name="MacAddress";Expression={$_.MacAddress.Replace(":","-")}} | where InterfaceGuid -ne $null', '|', 'fl'], stdout = sp.PIPE, universal_newlines = True) File "C:\Users\144919\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\144919\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified

AlaBouali commented 3 years ago

for windows you need to download: winpcap: http://www.win10pcap.org/download/

AlaBouali commented 3 years ago

This is caused by something beyond my module:

https://github.com/phaethon/kamene/issues/67