Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
#!/bin/bash

# get the current shell type
current_shell=$(basename "$SHELL")

if [ "$current_shell" = "bash" ]; then
echo " add path to .bashrc"
echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.bashrc
source ~/.bashrc
elif [ "$current_shell" = "zsh" ]; then
echo " add path to .zshrc"
echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.zshrc
source ~/.zshrc
else
echo "unknown shell type: $current_shell"
echo "place add the path manually to the shell file"
fi

# Rename and move NucleiFuzzer.sh file to /usr/bin/nf
sudo cp NucleiFuzzer.sh /usr/bin/nf
cp NucleiFuzzer.sh $PREFIX/bin/nf

# Make the NucleiFuzzer file executable
sudo chmod +x /usr/bin/nf
chmod +x $PREFIX/bin/nf

echo "NucleiFuzzer has been installed successfully! Now Enter the command 'nf' to run the tool."