arismelachroinos / lscript

The LAZY script will make your life easier, and of course faster.
GNU General Public License v3.0
4.06k stars 1.08k forks source link

No Host Found + Network Manager Issue #333

Open Mr-Anonn opened 1 year ago

Mr-Anonn commented 1 year ago

Once I have loaded lscript with the 'bash l' command and it loads:

After i try to type the 'scan' command it shows wlan0 was not found bash: l: No such file or directory (root㉿kali)-[~/lscript] └─#

It exits out of the script. I have gotten it to let me press enter to go back but it doesn't even do that now. Perhaps this is due to me running in VmWare and my Wlan0 is not connected. I have also tried to launch lscript with './l' but that has the same result. I followed a video on how to install Lazy Script and I did that successfully, but what is the proper way to run it again after closing it? That's another question I have.

My '~/lscript' directory looks like this

(root㉿kali)-[~/lscript] └─# ls Changelog iftemp.txt l lh2 lh31 lh42 ls version.txt eth.txt install.sh latestchangelog.txt lh21 lh4 lh43 README.md wlanmon.txt IAGREE.txt ks lh1 lh3 lh41 LICENSE.md uninstall.sh wlan.txt

I am wondering if its possible to fix my wlan0 WiFi drivers or if you are not supposed to use it on a virtual machine. After trying to install the Compact Wireless 2010 06 26 to enable WiFi I use the command 'make load' and 'airmon-ng' to restart services.

'make load' command:

(root㉿kali)-[/home/kali/Compact-Wireless-Kali-Linux-App/compat-wireless-2010-06-26-p] └─# make load /sbin/modprobe: invalid option -- 'l' /sbin/modprobe: invalid option -- 'l' Stoping bluetooth service.. Stopping bluetooth (via systemctl): bluetooth.service. ○ bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled; preset: disabled) Active: inactive (dead) Docs: man:bluetoothd(8)

Aug 23 05:43:10 kali bluetoothd[10212]: src/plugin.c:plugin_init() Failed to init mcp plugin Aug 23 05:43:10 kali bluetoothd[10212]: profiles/audio/bap.c:bap_init() D-Bus experimental not enabled Aug 23 05:43:10 kali bluetoothd[10212]: src/plugin.c:plugin_init() Failed to init bap plugin Aug 23 05:43:10 kali bluetoothd[10212]: Bluetooth management interface 1.22 initialized Aug 23 05:45:32 kali systemd[1]: Stopping bluetooth.service - Bluetooth service... Aug 23 05:45:32 kali bluetoothd[10212]: Terminating Aug 23 05:45:32 kali bluetoothd[10212]: Stopping SDP server Aug 23 05:45:32 kali bluetoothd[10212]: Exit Aug 23 05:45:32 kali systemd[1]: bluetooth.service: Deactivated successfully. Aug 23 05:45:32 kali systemd[1]: Stopped bluetooth.service - Bluetooth service. Unloading ipw2200... Unloading libertas_cs... Unloading usb8xxx... Unloading adm8211... Unloading zd1211rw... Unloading iwl3945... Unloading ath... modprobe: FATAL: Module ath is in use. Unloading p54pci... Unloading p54usb... Unloading rt2400pci... Unloading rt2500pci... Unloading rt61pci... Unloading rt2500usb... Unloading rt73usb... Unloading rt2x00lib... Unloading rtl8187... Unloading mwl8k... Unloading mac80211_hwsim... Unloading at76c50x_usb... Unloading rndis_wlan... Unloading cdc_ether... Unloading mac80211... modprobe: FATAL: Module mac80211 is in use. Unloading cfg80211... modprobe: FATAL: Module cfg80211 is in use. Unloading lib80211... Unloading hidp... Unloading rfcomm... Unloading bnep... Unloading btusb... Unloading bluetooth... /sbin/modprobe: invalid option -- 'l' /sbin/modprobe: invalid option -- 'l' Loading ipw2100... modprobe: FATAL: Module ipw2100 not found in directory /lib/modules/6.3.0-kali1-amd64 Loading ipw2200... Loading libertas_cs... Loading usb8xxx... Loading p54pci... Loading p54usb... Loading adm8211... Loading zd1211rw... Loading rtl8180... modprobe: FATAL: Module rtl8180 not found in directory /lib/modules/6.3.0-kali1-amd64 Loading rtl8187... Loading p54pci... Loading p54usb... Loading iwl3945... Loading iwlagn... modprobe: FATAL: Module iwlagn not found in directory /lib/modules/6.3.0-kali1-amd64 Loading ath... Loading ar9170usb... Loading rtl8180... modprobe: FATAL: Module rtl8180 not found in directory /lib/modules/6.3.0-kali1-amd64 Loading rtl8187... Loading rt2400pci... Loading rt2500pci... Loading rt61pci... Loading rt2500usb... Loading rt73usb... Loading rndis_wlan... Loading at76_usb... modprobe: FATAL: Module at76_usb not found in directory /lib/modules/6.3.0-kali1-amd64 Loading mwl8k... Loading mac80211_hwsim... Loading at76c50x_usb... Loading bluetooth... Loading btusb... Loading l2cap... modprobe: FATAL: Module l2cap not found in directory /lib/modules/6.3.0-kali1-amd64 Loading sco... modprobe: FATAL: Module sco not found in directory /lib/modules/6.3.0-kali1-amd64 Loading hidp... Loading rfcomm... Loading bnep... ./scripts/load.sh: line 21: athload: command not found ./scripts/load.sh: line 23: b43load: command not found Starting bluetooth service.. Starting bluetooth (via systemctl): bluetooth.service. ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled; preset: disabled) Active: active (running) since Wed 2023-08-23 05:45:36 EDT; 61ms ago Docs: man:bluetoothd(8) Main PID: 11794 (bluetoothd) Status: "Running" Tasks: 1 (limit: 12503) Memory: 768.0K CPU: 31ms CGroup: /system.slice/bluetooth.service └─11794 /usr/libexec/bluetooth/bluetoothd

Aug 23 05:45:36 kali bluetoothd[11794]: Bluetooth daemon 5.66 Aug 23 05:45:36 kali systemd[1]: Started bluetooth.service - Bluetooth service. Aug 23 05:45:36 kali bluetoothd[11794]: Starting SDP server Aug 23 05:45:36 kali bluetoothd[11794]: profiles/audio/vcp.c:vcp_init() D-Bus experimental not enabled Aug 23 05:45:36 kali bluetoothd[11794]: src/plugin.c:plugin_init() Failed to init vcp plugin Aug 23 05:45:36 kali bluetoothd[11794]: profiles/audio/mcp.c:mcp_init() D-Bus experimental not enabled Aug 23 05:45:36 kali bluetoothd[11794]: src/plugin.c:plugin_init() Failed to init mcp plugin Aug 23 05:45:36 kali bluetoothd[11794]: profiles/audio/bap.c:bap_init() D-Bus experimental not enabled Aug 23 05:45:36 kali bluetoothd[11794]: src/plugin.c:plugin_init() Failed to init bap plugin Aug 23 05:45:36 kali bluetoothd[11794]: Bluetooth management interface 1.22 initialized

'airmon-ng' command:

(root㉿kali)-[/home/kali/Compact-Wireless-Kali-Linux-App/compat-wireless-2010-06-26-p] └─# airmon-ng

PHY Interface Driver Chipset

phy2 wlan0 mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211 phy3 wlan1 mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211

After doing this i try the lscript again and use the 'scan' command and it instead shows this.

cat: /root/lscript/tempscan.txt: No such file or directory cat: /root/lscript/tempscan.txt: No such file or directory No hosts found Press any key to go back...

bash: l: No such file or directory

┌──(root㉿kali)-[~/lscript] └─#

If I try the 'if' command for ifconfig in LScript I'll show you what the wifi section looks like:

wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 9e:1c:7e:ab:55:f7 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 16:b5:cd:a4:1a:2d txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0

Anyway half of this information might be useless as I'm quite new to all this but I hope something there was useful. I will provide two screenshots I took.

lazyscriptnetworkmanger

lazyscriptnohostfound

Thanks!