Ejemplo n.º 1
0
        // Token: 0x06000001 RID: 1 RVA: 0x000020AC File Offset: 0x000002AC
        public static bool namedPipeExist(string pipeName)
        {
            bool result;

            try
            {
                if (!ApiModule.WaitNamedPipe(Path.GetFullPath(string.Format("\\\\.\\pipe\\{0}", pipeName)), 0))
                {
                    int lastWin32Error = Marshal.GetLastWin32Error();
                    if (lastWin32Error == 0)
                    {
                        result = false;
                        return(result);
                    }
                    if (lastWin32Error == 2)
                    {
                        result = false;
                        return(result);
                    }
                }
                result = true;
            }
            catch (Exception)
            {
                result = false;
            }
            return(result);
        }
Ejemplo n.º 2
0
 // Token: 0x06000003 RID: 3 RVA: 0x00002110 File Offset: 0x00000310
 public static void ExecuteScript(string Script)
 {
     if (!ApiModule.namedPipeExist("462B9C47BB16AF43C5CF0BB7C970349DCEA20D1BFB8AA87E688BAF8E93553B0F"))
     {
         MessageBox.Show("Please attach!", "NamedPipeDoesntExist", MessageBoxButtons.OK, MessageBoxIcon.Hand);
         return;
     }
     using (NamedPipeClientStream namedPipeClientStream = new NamedPipeClientStream(".", "462B9C47BB16AF43C5CF0BB7C970349DCEA20D1BFB8AA87E688BAF8E93553B0F", PipeDirection.Out))
     {
         namedPipeClientStream.Connect();
         using (StreamWriter streamWriter = new StreamWriter(namedPipeClientStream, Encoding.Default, 999999))
         {
             streamWriter.Write(Script);
             streamWriter.Dispose();
         }
         namedPipeClientStream.Dispose();
     }
 }
Ejemplo n.º 3
0
 // Token: 0x06000008 RID: 8 RVA: 0x0000230C File Offset: 0x0000050C
 public static void LaunchExploit()
 {
     if (ApiModule.namedPipeExist("462B9C47BB16AF43C5CF0BB7C970349DCEA20D1BFB8AA87E688BAF8E93553B0F"))
     {
         MessageBox.Show("Already Attached!", "NamedPipeExist!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
         return;
     }
     if (!CheckUpdate() && File.Exists("ApiModuleDLL.dll"))
     {
         InjectDLL();
         return;
     }
     if (DownloadDLL())
     {
         InjectDLL();
         return;
     }
     MessageBox.Show("Cant download the lastest version!", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand);
 }