Xeca | PowerShell Payload Generator - kapish singh

Latest

WE Are Known To Provide Premium Content Which Helps User TO Get Best Information We Works In All Aspects Of Life so We Have All conten Fell free to ask A Powerful Blog Which keeps you updated about daily news and daily important notes important for UPSC perspective which enhances your knowledge with a tremendous amount of data in simple language keep like and subscribe to our feed and feel free to ask any question in the contact form

Search Bar

Friday, 7 August 2020

Xeca | PowerShell Payload Generator

 

xeca

xeca is a project that creates encrypted PowerShell payloads for offensive purposes.'

image

Creating position independent shellcode from DLL files is also possible.

Table of Contents

Install

Firstly ensure that rust is installed, then build the project with the following command:

cargo build

How It Works

  1. Identify and encrypt the payload. Load encrypted payload into a powershell script and save to a file named "launch.txt"
  2. The key to decrypt the payload is saved to a file named "safe.txt"
  3. Execute "launch.txt" on a remote host
    • The script will call back to the attacker defined web server to retrieve the decryption key "safe.txt"
    • Decrypt the payload in memory
    • Execute the intended payload in memory

Mitigations

If users must have access to programs such as powershell.exe, consider minimising security risks with Just Enough Administration and PowerShell Logging. Application control policies can be deployed via a whitelisting technology such as AppLocker.

Examples

Empire

Empire PowerShell payload. https://github.com/postrequest/storage/raw/master/xeca/empire.gif?raw=true

Merlin

Merlin DLL payload. gif

Sliver

Sliver Shellcode payload. gif

Acknowledgments

This tool would not be possible without the sharing of knowledge and information. Ideas, snippets, and code from the following authors should be acknowledged:
@monoxgas
@H0neyBadger
@stephenfewer
@dismantl

License

xeca is licensed under GPLv3, some sub-components may have separate licenses. See their respective references in this project for details.


GIT: https://github.com/kapish33/xeca

No comments:

Post a Comment