monsterwolf00
New Member
I have root access but when I try to run ./ipsweeper.sh .It shows zsh: permission denied ... I tried different thing but I can't get it to work. Please tell me how to fix it.
prompt-$ ls -l
pronpt-$ ls -l ipsweeper.sh
prompt-$ whoami
#!/bin/bash
if [ "$1" == "" ]
then
echo "You forgot an IP adress!"
echo "Syntax: ./ipsweep.sh xxx.xxx.x"
else
for ip in `seq 1 254`; do
ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":" &
done
fi
andrew@darkstar:~/Desktop]$ sudo chmod a+x ipsweeper.sh (07-09 11:14)
[sudo] password for andrew:
[andrew@darkstar:~/Desktop]$ ./ipsweeper.sh (07-09 11:14)
You forgot an IP adress!
Syntax: ./ipsweep.sh xxx.xxx.x
[andrew@darkstar:~/Desktop]$ ./ipsweeper.sh 192.168.0.1 (07-09 11:14)
ping: 192.168.0.1.2: Name or service not known
sudo bash ./ipsweeper.sh
Did you run the terminal from the folder that the ipsweeper.sh file is in - is does not look like it - I don't know if Kali has a right click open terminal here function or not - since I do not use it - navigate to where the file is stored right click and select open terminal here then run the code listed aboveShould it look like this... Cz I don't know this is my first time
You should learn how the system(GNU/Linux) works before trying to learn how to hack. Learn to walk before you try to run.there is an app called hackerx I was trying to learn from it...
Source isn't a screenshot of the script but the link where you downloaded it from.I am totally new so i don't know if I am doing anything wrong
tryCode:sudo bash ./ipsweeper.sh
yes because its a sh file and has bin/bash if its the same script that i'm using - sometimes incompatibility running bash with zsh ?tryCode:sudo bash ./ipsweeper.sh
Shouldn't be a problem if bash is installed since the script uses a shebang pointing to /bin/bash.yes because its a sh file and has bin/bash if its the same script that i'm using - sometimes incompatibility running bash with zsh ?
Share it in plaintext with code tags here in the topic instead of as a screenshot.I didn't download i wrote it