Advertisement
mainINDS

Untitled

Nov 20th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.31 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Threading;
  7. using System.IO;
  8.  
  9. namespace CCDetect
  10. {
  11.     class Program
  12.     {
  13.  
  14.      
  15.  
  16.  
  17.  
  18.  
  19.     // Ajoutez vos string de cheat ici, ou alors vous pouvez les crypter en premier.
  20.     private static readonly List<string> strings = new List<string>
  21.         {
  22.             "string1",
  23.             "string2",
  24.             "string3",
  25.  
  26.         };
  27.  
  28.      
  29.  
  30.  
  31.  
  32.  
  33.  
  34.         static void Main(string[] args)
  35.         {
  36.        
  37.  
  38.  
  39.  
  40.             Console.Title = "[!] CCDetector [!]";
  41.             Console.WriteLine("Welcome on CCDetector !");
  42.             Thread.Sleep(900);
  43.             Console.WriteLine("This app has been created by Prometheo :)");
  44.             Thread.Sleep(1000);
  45.             Console.Clear();
  46.             Console.WriteLine("Please put the game scan into the same folder as CCDetector and name it 'strings.txt'");
  47.             Thread.Sleep(10000);
  48.             Console.Clear();
  49.             Console.WriteLine("Press any key to start scan...");
  50.             Console.ReadKey();
  51.  
  52.  
  53.             string mainpath = Directory.GetCurrentDirectory(); ;
  54.             string path = mainpath + @"\strings.txt";
  55.             List<string> StringsToScan = File.ReadAllLines(path).ToList();
  56.  
  57.  
  58.  
  59.             if (!File.Exists(path))
  60.             {
  61.                 Console.Clear();
  62.                 Console.WriteLine("Error ! File doesn't exists [!]");
  63.                 Thread.Sleep(3000);
  64.                 Environment.Exit(0);
  65.             }
  66.             else
  67.             {
  68.            
  69.                 scan();
  70.             }
  71.  
  72.             void scan()
  73.             {
  74.                 for (int i = 0; i < strings.Count; i++)
  75.                 {
  76.                     string str = strings[i];
  77.                 }
  78.  
  79.  
  80.  
  81.                 if (StringsToScan.Contains(strings.ToString()))
  82.                 {
  83.                     Console.Clear();
  84.                     Console.WriteLine("Cheat Found !");
  85.                     Console.ReadLine();
  86.  
  87.                 }
  88.                 else
  89.                 {
  90.                     Console.Clear();
  91.                     Console.WriteLine("Nothing Found !");
  92.                     Console.ReadLine();
  93.                 }
  94.                    
  95.             }
  96.         }
  97.     }
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement