Skip to content

yehia-mamdouh/Shell3er

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Shell3er

Shell3er PowerShell Reverse Shell

23

The Shell3er Reverse Features

Get-RandomProcessName Function

The Get-RandomProcessName function generates a random process name by concatenating "PS_" with a new GUID. This is used to create unique and seemingly random process names, making it harder to identify suspicious processes.

sd2

Run-BackgroundTask Function

The Run-BackgroundTask function accepts a ScriptBlock and an optional ProcessName as parameters. It then starts a new background job with a random job name, executes the script block, and retrieves the output. The main purpose of this function is to run tasks in the background without interfering with the main script.

Download and Upload Functions

The download and upload functions serve to transfer files between the client and the server. They use Base64 encoding to transmit the file data over the network. Errors, if encountered during the file transfer process, are sent back to the client.

keylog

Persistence Mechanisms

The script uses two different methods to achieve persistence on the target system. First, it copies itself to the "C:\ProgramData" folder and modifies the registry key "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" to start the script every time the user logs in. Second, it copies the script to the user's Startup folder, ensuring that it runs every time the user starts their system.

The Shell3er Tested Manually on the following Solutuions (Checkpoint EDR version E85.40) (Kaspersky Total Security) (Widdows Defender)

sdf

Usage

  • nc -nlvp 4444 on the Attacker Machine
  • Execute the script on the Victim Mcahine

Contributing

Awesome! Contributions are welcome and greatly appreciated. Please submit all on the GitHub pull requests tracker. Together we can make this even more amazing! 🚀

About

PowerShell Reverse Shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published