Open abdulbbh opened 3 months ago
Kali Linux
Kali Linux
The error you encountered suggests that Windows PowerShell does not recognize the bash
command because the Bash shell is not installed or properly configured in your system. Here's how you can resolve the issue:
If you want to run bash
commands on Windows, you'll need to install the Windows Subsystem for Linux (WSL). Here’s how to set it up:
Enable WSL:
wsl --install
Restart Your PC.
Run Bash Commands:
blackeye.sh
is stored, and run the command:
bash blackeye.sh
You might need to move the blackeye.sh
file to your Linux environment if it's currently in your Windows directories.
THESE ARE WHAT YOU HAVE TO DO NEXT...
Now that you have Ubuntu installed and an account created, follow these steps to run your blackeye.sh
script:
blackeye.sh
blackeye.sh
file is stored in a directory on your Windows file system, you can access it from Ubuntu through the /mnt/
directory.Windows drives are mounted under /mnt/
, so:
C:
drive is under /mnt/c/
D:
drive is under /mnt/d/
and so on.Example: If your blackeye.sh
file is in C:\Users\DELL\blackeye
, the equivalent path in Ubuntu is:
cd /mnt/c/Users/DELL/blackeye
blackeye.sh
ExecutableBefore running the script, ensure it has execute permissions. Run this command:
chmod +x blackeye.sh
Now that the script has the right permissions, you can run it by executing:
./blackeye.sh
If the script relies on any dependencies that aren't installed yet, you might get some error messages. You can use the following command to install missing packages in Ubuntu:
sudo apt update && sudo apt install <package-name>
Common packages that might be needed are git
, curl
, or wget
.
After following these steps, your blackeye.sh
script should run in the Ubuntu environment. It worked for me, if you run into issues, reach out to ChatGPT.
You have to type in sudo bash ./blackeye.sh
Right.
sudo: ./blackeye.sh: command not found