Skip to content

A simple PowerShell script that we can use for easing the process of creating a reverse shell and automating Meterpreter update

Notifications You must be signed in to change notification settings

Hackplayers/ReverseShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

ShellReverse

ReverseShell is a simple PowerShell script that we can use for 1/ easing the process of creating a reverse shell (or inverse, as you prefer) with different payloads depending on the interpreter that supports the server (python, bash, perl, java, php or ruby) and 2 / automating the update to Meterpreter.

Usage

Its syntax is very simple:

./shell-reverse.ps1 -Lhost 10.10.10.1 -Lport 4444 -payload -web -metasploit

  • payload: python, python3, bash, perl, php, ruby, java
  • web: encode the payload for URL (encoder)
  • metasploit: start Metasploit and leave it waiting for session to update it to Meterpreter

Install in Debian or Kali

git clone https://github.com/Hackplayers/ReverseShell
cd shellreverse
sudo apt-get update > /dev/null
wget http://http.us.debian.org/debian/pool/main/libu/libunwind/libunwind8_1.1-4.1_amd64.deb 
sudo dpkg -i libunwind8_1.1-4.1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7_amd64.deb
sudo dpkg -i  libicu55_55.1-7_amd64.deb
wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.13/powershell_6.0.0-alpha.13-1ubuntu1.16.04.1_amd64.deb
sudo dpkg -i powershell_6.0.0-alpha.13-1ubuntu1.16.04.1_amd64.deb
powershell
./shell-reverse.ps1 -LHOST 192.168.1.20 -LPORT 4444 -Lenguaje

Languaje

   Perl  
   Python  
   Python3  
   Ruby  
   PHP  
   Java  
   Bash  
   Netcat  
   PowershellTCP  
   PowerrshellUDP  
   PowershellICMP  

Video Example

AutoUpdate to Meterpreter

About

A simple PowerShell script that we can use for easing the process of creating a reverse shell and automating Meterpreter update

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published