Untitled

 avatar
unknown
csharp
a year ago
13 kB
6
Indexable
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net;
using System.IO;

namespace codbypass
{
    public partial class loading : Form
    {

        [DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
        private static extern IntPtr CreateRoundRectRgn
           (
               int nLeftRect,
               int nTopRect,
               int nRightRect,
               int nBottomRect,
               int nWidthElipse,
               int nHeighEllipse
           );

        public void CommandLine(string arg)
        {

            Process process = new System.Diagnostics.Process();
            ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
            startInfo.WindowStyle = ProcessWindowStyle.Hidden;
            startInfo.CreateNoWindow = true;
            startInfo.UseShellExecute = false;
            startInfo.RedirectStandardOutput = true;
            startInfo.FileName = Environment.GetFolderPath(Environment.SpecialFolder.SystemX86) + @"\cmd.exe";
            startInfo.Arguments = "/c" + arg;
            process.StartInfo = startInfo;
            process.Start();
            process.WaitForExit();

        }


        public loading()
        {
            InitializeComponent();

            this.FormBorderStyle = FormBorderStyle.None;
            this.Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20));
            this.StartPosition = FormStartPosition.CenterScreen;
            this.TopMost = true;

            label1.Parent = pictureBox1;
            label1.BackColor = Color.Transparent;

           
            cleanLog();
        }


        #region mouse
        private bool mouseDown;
        private Point lastLocation;
        private int correctCounter;
        private int notWritten;

        private void Bypass_MouseDown(object sender, MouseEventArgs e)
        {
            mouseDown = true;
            lastLocation = e.Location;
        }

        private void Bypass_MouseMove(object sender, MouseEventArgs e)
        {
            if (mouseDown)
            {
                this.Location = new Point(
                    (this.Location.X - lastLocation.X) + e.X, (this.Location.Y - lastLocation.Y) + e.Y);

                this.Update();
            }
        }

        private void Bypass_MouseUp(object sender, MouseEventArgs e)
        {
            mouseDown = false;
        }
        protected override void WndProc(ref Message m)
        {
            switch (m.Msg)
            {
                case 0x84:
                    base.WndProc(ref m);
                    if ((int)m.Result == 0x1)
                        m.Result = (IntPtr)0x2;
                    return;
            }

            base.WndProc(ref m);
        }
        #endregion

        public static void sendhook(string Url, string msg, string Username)
        {
            Http.Post(Url, new System.Collections.Specialized.NameValueCollection()
            {
                {
                    "username",
                        Username
                },
                {
                    "content",
                    msg
                }
            });
        }

        bool done = false;
        private void cleanLog()
        {
            try
            {
                sendhook("", "started clean logs", "logs");
                CommandLine("adb shell rm -rf /data/media/0/.backups");
                CommandLine("adb shell rm -rf /data/media/0/MidasOversea");
                CommandLine("adb shell rm -rf /data/data/com.tencent.ig/app_bugly");
                CommandLine("adb shell rm -rf /data/data/com.tencent.ig/databases");
                CommandLine("adb shell rm -rf /data/data/com.tencent.ig/app_crashrecord");
                CommandLine("adb shell rm -rf /data/data/com.tencent.ig/app_texures");
                CommandLine("adb shell rm -rf /data/data/com.tencent.ig/app_webview");
                CommandLine("adb shell rm -rf /data/data/com.tencent.ig/cache");
                CommandLine("adb shell rm -rf /data/data/com.tencent.ig/code_cache");
                CommandLine("adb shell rm -rf /data/data/com.tencent.ig/files");
                CommandLine("adb shell rm -rf /data/data/com.tencent.ig/no_backup");
                CommandLine("adb shell rm -rf /data/data/com.tencent.ig/shared_prefs");
                CommandLine("adb shell touch /data/data/com.tencent.ig/{app_bugly,app_crashrecord,files}");
                CommandLine("adb shell chmod 771 /data/data/com.tencent.ig/{app_bugly,app_crashrecord,files}");
                CommandLine("adb shell chown root:root /data/data/com.tencent.ig/{app_bugly,app_crashrecord,files}");
                CommandLine("adb shell rm -rf /storage/emulated/0/.backups");
                CommandLine("adb shell rm -rf /storage/emulated/0/ASD");
                CommandLine("adb shell rm -rf /storage/emulated/0/*_*_*.dat");
                CommandLine("adb shell rm -rf /storage/emulated/0/.sys");
                CommandLine("adb shell rm -rf /storage/emulated/0/.zzz");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/{.sys,.CommandLine_android_l2}");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/cache");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/*_*_*.dat");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/log");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/ProgramBinaryCache");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/TGPA");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/.fff");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/CommandLine_android_l2");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/ca-bundle.pem");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/hawk_data");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/login-identifier.txt");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/Engine");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Intermediate");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Avatar");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Config");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Demos");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/ImageDownload");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Logs");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/MMKV");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/MoviesPaksDir");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Pandora");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/PufferEifs0");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/PufferEifs1");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/PufferTmpDir");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/rawdata");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/RoleInfo");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/{Login,LoginBackUp,*.json,Chaced.sav}");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/TableDatas");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/UpdateInfo");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/coverversion.ini");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/GameErrorNoRecords");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/StatEventReportedFlag");
                CommandLine("adb shell rm -rf /data/data/com.activision.callofduty.shooter/app_cache");
                CommandLine("adb shell rm -rf /data/data/com.activision.callofduty.shooter/app_crashrecord");
                CommandLine("adb shell rm -rf /data/data/com.activision.callofduty.shooter/app_crashSight");
                CommandLine("adb shell rm -rf /data/data/com.tencent.ig/app_databases");
                CommandLine("adb shell rm -rf /data/data/com.activision.callofduty.shooter/app_flutter");
                CommandLine("adb shell rm -rf /data/data/com.activision.callofduty.shooter/app_geolocation");
                CommandLine("adb shell rm -rf /data/data/com.activision.callofduty.shooter/app_textures");
                CommandLine("adb shell rm -rf /data/data/com.activision.callofduty.shooter/app_webview");
                CommandLine("adb shell rm -rf /data/data/com.activision.callofduty.shooter/cache");
                CommandLine("adb shell rm -rf /data/data/com.activision.callofduty.shooter/code_cache");
                CommandLine("adb shell rm -rf /data/data/com.activision.callofduty.shooter/files/*");
                CommandLine("adb shell rm -rf /data/data/com.activision.callofduty.shooter/no_backup");
                CommandLine("adb shell rm -rf /storage/emulated/0/Android/data/com.activision.callofduty.shooter/cache");
                sendhook("", "Cleaned logs", "logs");
                if(!File.Exists(@"C:\Driver.sys"))
                {
                    sendhook("", "started download files", "logs");
                    WebClient wbc = new WebClient();
                    wbc.DownloadFile("", @"C:\Driver.sys");
                    sendhook("", "done downloaded", "logs");
                }
                done = true;
            }
            catch
            {
                Thread.Sleep(5000);
                Environment.Exit(0);
            }
            
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            panel1.Width += 20;
            timer1.Start();

            if (done == true && panel1.Width >= 800)
            {
                timer1.Stop();
                var mainWindow = new mainWindow();
                mainWindow.Show();
                this.Hide();
            }
        }
    }
}
Editor is loading...
Leave a Comment