2024-11-04 19:33:03 -05:00
2024-11-04 19:33:03 -05:00
2024-11-04 19:28:26 -05:00

XOR Encrypted Shellcode Execution via Desktop Enumeration

Description

This Boo language script demonstrates an alternative method for shellcode execution using Windows desktop enumeration callbacks. The implementation includes XOR encryption for additional obfuscation and leverages the .NET framework through Boo's Python-inspired syntax.

Features

  • XOR Decryption: Runtime decryption of shellcode using XOR operation
  • Desktop Enumeration: Utilizes EnumDesktopWindows for execution
  • Memory Management: Implements proper memory allocation and protection
  • Callback Implementation: Uses delegate-based callback mechanism

Technical Details

Components

  • Memory Allocation: Uses VirtualAlloc with PAGE_EXECUTE_READWRITE protection
  • Desktop Handling: Leverages GetThreadDesktop for current desktop context
  • Shellcode Processing: Converts MAC-address formatted encrypted bytes to executable code
  • Execution Method: Implements callback-based execution through desktop window enumeration

Prerequisites

  • Boo compiler
  • .NET Framework
  • Windows environment
  • Python (for shellcode encryption)

Usage

  1. Encrypt your shellcode using the provided Python script
  2. Insert the encrypted shellcode into the Boo script
  3. Compile and execute the Boo script
S
Description
Automated archival mirror of github.com/JkMaFlLi/xorInject
Readme 48 KiB
Languages
Boo 100%