Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Download a .NET assembly, and execute a static, parameterless method.
//Download a .NET assembly, and execute a static, parameterless method. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Net; using System.Reflection; namespace Rextester { public class Program { public static void Main(string[] args) { string in_url = Console.ReadLine(); string in_class = Console.ReadLine(); string in_method = Console.ReadLine(); WebClient wc = new WebClient(); byte[] data = wc.DownloadData(in_url); Assembly asm = Assembly.Load(data); Type typ = asm.GetType(in_class); MethodInfo proc = typ.GetMethod(in_method); proc.Invoke(null,null); } } }
run
|
edit
|
history
|
help
0
my first
asxasxscdf
for (int i= 2 ; i==5 ; i++)
ARM
1.2 Basics: object orientation
A2Z Dice Roll
asxsdxsdf
23
to find all substring
defalt branch name