02-11-2023, 10:30 AM
EzpzShell: An Easy-Peasy Python Script That Simplifies Revshell Creation
5/5 – (1 vote)
![[Image: lyteCache.php?origThumbUrl=https%3A%2F%2...efault.jpg]](https://blog.finxter.com/wp-content/plugins/wp-youtube-lyte/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2F0UI4X6rigQA%2Fhqdefault.jpg)
EzpzShell GitHub: https://github.com/H0j3n/EzpzShell
WHAT IS EzpzShell?
![[Image: demo.gif]](https://github.com/H0j3n/EzpzShell/raw/main/demo.gif)
EzpzShell is a Python script that helps to streamline the revshell payload and listener creation process for ethical hackers, pentesters, and CTF gamers.
![[Image: image-119.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-119.png)
There are many file types available, and it outputs several different payload options to choose from, letting you pick the most efficient option for your specific use case.
Today I’ll guide you through the installation and setup of on Kali Linux in a virtual hacking lab setup.
Recommended: How I Set Up My Virtual Hacking Laboratory for Safe and Legal Penetration Testing
INSTALLATION
![[Image: image-120.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-120.png)
We’ll need to temporarily switch the internet setting on our attack machine (Kali) to “bridged adapter”. This will create an IP for our virtual machine as if it was a physical machine on our own network.
After switching the setting, we boot up Kali and grab the Git repo for.
![[Image: image-117.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-117.png)
![[Image: image-116.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-116.png)
Now that we have installed on our Kali VM, let’s shut it down and switch the network setting back to “host-only adapter”.
This will switch the internet off again and put the attack box back into the hacking lab network.
CREATE A BASH ALIAS
To simplify the command () into a one-word command we can add the following line to a new file
![[Image: image-115.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-115.png)
Next, let’s run the following command to make the bash alias permanent.
Now we can easily run from any directory on Kali with the command:
EXAMPLE OF A REVERSHELL EZPZSHELL ON OUR VIRTUAL HACKINGLAB
![[Image: image-114.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-114.png)
We’ll run the command “” to see a list of reverse shell payloads.
This is quicker than poking around the web for the right kind of shell, and it is also super handy that the listener is automatically started up and set to receive the revshell.
Let’s use the first payload, the python script:
![[Image: image-113.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-113.png)
After copying and pasting this into a new file on the target machine, we can trigger the revshell by running the program on our target machine:
And we catch it with EzPzShell immediately on our Kali attack machine!
![[Image: image-112-1024x444.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-112-1024x444.png)
FINAL THOUGHTS
![[Image: image-121.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-121.png)
As you can see, EzPzShell is a versatile Python script for reverse shell payload creation and listener spawning.
It seamlessly sets up our listener to catch the revshell using the file type of our choice from a long list of options. I’ll be adding EzPzShell to my regular pen-testing toolkit and am confident that it will save me lots of time down the road in various CTF challenges and pentesting scenarios.
Lookout for EzpzShell in future hacking tutorial videos.
Recommended: [TryHackMe] Skynet Walkthrough Using Remote File Inclusion
5/5 – (1 vote)
Code:
EzpzShell = "Easy Peasy Shell"
EzpzShell GitHub: https://github.com/H0j3n/EzpzShellWHAT IS EzpzShell?
![[Image: demo.gif]](https://github.com/H0j3n/EzpzShell/raw/main/demo.gif)
EzpzShell is a Python script that helps to streamline the revshell payload and listener creation process for ethical hackers, pentesters, and CTF gamers.
![[Image: image-119.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-119.png)
There are many file types available, and it outputs several different payload options to choose from, letting you pick the most efficient option for your specific use case.
Today I’ll guide you through the installation and setup of
Code:
EzpzShell.py
Recommended: How I Set Up My Virtual Hacking Laboratory for Safe and Legal Penetration TestingINSTALLATION
![[Image: image-120.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-120.png)
We’ll need to temporarily switch the internet setting on our attack machine (Kali) to “bridged adapter”. This will create an IP for our virtual machine as if it was a physical machine on our own network.
After switching the setting, we boot up Kali and grab the Git repo for
Code:
EzpzShell.py![[Image: image-117.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-117.png)
![[Image: image-116.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-116.png)
Now that we have installed
Code:
EzpzShell.pyThis will switch the internet off again and put the attack box back into the hacking lab network.
CREATE A BASH ALIAS
To simplify the command (
Code:
python3 ~/EzpzShell.pyCode:
.bash_aliases![[Image: image-115.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-115.png)
Next, let’s run the following command to make the bash alias permanent.
Code:
source ~/.bashrcNow we can easily run
Code:
EzPzShell.pyCode:
ezpz![[Image: image-114.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-114.png)
We’ll run the command “
Code:
ezpz 192.168.60.4 8888 pyThis is quicker than poking around the web for the right kind of shell, and it is also super handy that the listener is automatically started up and set to receive the revshell.
Let’s use the first payload, the python script:
![[Image: image-113.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-113.png)
After copying and pasting this into a new
Code:
shell.pyCode:
python shell.pyAnd we catch it with EzPzShell immediately on our Kali attack machine!
![[Image: image-112-1024x444.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-112-1024x444.png)
FINAL THOUGHTS
![[Image: image-121.png]](https://blog.finxter.com/wp-content/uploads/2023/02/image-121.png)
As you can see, EzPzShell is a versatile Python script for reverse shell payload creation and listener spawning.
It seamlessly sets up our listener to catch the revshell using the file type of our choice from a long list of options. I’ll be adding EzPzShell to my regular pen-testing toolkit and am confident that it will save me lots of time down the road in various CTF challenges and pentesting scenarios.
Lookout for EzpzShell in future hacking tutorial videos.
Recommended: [TryHackMe] Skynet Walkthrough Using Remote File Inclusion

