GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AzRunRCE/MemoryShellCodeExploit: A POC using a dynamic compiler (CodeDOM) and TCPListener to run in memory and remotly malicius instructions

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
screens
screens
 
 
README.md
README.md
 
 

Repository files navigation

MemoryShellCodeExploit (Source code published soon)

A POC using a dynamic compiler (CodeDOM) and TCPListener to run in memory and remotely malicius instructions

Image of Yaktocat

Basic Concept

Evade AV detection using dynamic compiler

Step 1 - The malware is executed by the victim

Step 2 - His load C# instructions from (in string format in this exemple):

  • tcp/ip
  • http rest
  • Unamaged ressources / Managed Ressources

Step 3 - The malware compile these instructions in memory and evade most AV.

  • To compile he can use:
  • Roslyn (+4.0 Framework)
  • CodeDOM (+2.0 Framework)
  • Mono

Proof Of Concept

Run a shellcode msgbox over network from a file appenrently trusted. In my case i have used :

  • A TCP Listener on port 444 (Often open in compagny) on the attacker computer
  • The C# CodeDOM compiler for most compatibility
  • Differents unsafe C# instructions to loading the msgbox shellcode Image of Yaktocat

Detections Ratio

  • First try 1/37 (Avira threats found) first_try_result

  • Second try 0/37 (No threats found second_try_result

  • Note: To bypass Avira i have make differents manipulation (Merge assembly, and export sensible code to a library)

Use Case (Same concept)

  • Execute a RunPe fully in memory to run a knowed malware
  • Use this network implement to run c# remotely
  • Make differents variant of malwares (signature, and polymorph)

Librarys

I used Protocol Buffer for serialize/deserialize data sended over network. I used System.CodeDom.Compiler to compile C# instructions. I used System.Reflection Namespace to run compiled assembly in memory and evade AV.

Authors

  • **Quentin Martinez - Initial work

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A POC using a dynamic compiler (CodeDOM) and TCPListener to run in memory and remotly malicius instructions

Resources

Readme
Activity

Stars

2 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.