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 - SECFORCE/SharpASM: SharpASM is a C# project that aims to automate ASM (i.e. shellcode) execution in .NET programs by exploiting code caves in RWX sections allocated by the CLR.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
SharpASM
SharpASM
 
 
examples
examples
 
 
README.md
README.md
 
 
logo.png
logo.png
 
 

Repository files navigation

SharpASM

LOGO

SharpASM is a C# project that aims to automate ASM (i.e. shellcode) execution in .NET programs by exploiting code caves in RWX sections allocated by the CLR.

Read the blog post for the technical details: https://secforce.com/blog/sharpasm-sharpwhispers

Requirements

  • Visual Studio
  • .NET Framework >= 3.5

Usage

  • Create Visual Studio .NET Framework project (follow the instructions here)
  • Import SharpASM.cs file in the Visual Studio .NET Framework project.
  • Include the namespace in the program
     using SharpASM = SharpAssembly.SharpASM;
  • Define a byte array containing the shellcode
     // __readgsqword(0x60)
     static byte[] bReadgsqword =
     {
         0x65, 0x48, 0x8B, 0x04, 0x25, 0x60,     // mov rax, qword ptr gs:[0x60]
         0x00, 0x00, 0x00,
         0xc3                                    // ret
     };
  • Call the shellcode using SharpASM.callASM()
     var peb = SharpASM.callASM(bReadgsqword);

Example

A complete example to retrieve the PEB using assembly can be found here.

About

SharpASM is a C# project that aims to automate ASM (i.e. shellcode) execution in .NET programs by exploiting code caves in RWX sections allocated by the CLR.

www.secforce.com/

Topics

edr-evasioninfosecredteamredteam-toolresearchwindows-security

Resources

Readme
Activity
Custom properties

Stars

62 stars

Watchers

2 watching

Forks

8 forks
Report repository

Contributors

Languages

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.