Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Database_Get_02
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] cache = new string[800000];
- string[] cat = new string[499];
- string[] user = new string[800000];
- string[] mail = new string[800000];
- string[] pass = new string[800000];
- string[] salt = new string[800000];
- int count = 0;
- using (StreamReader sr = new StreamReader(@"C:\Users\mikkr\Downloads\bh.txt"))
- {
- while (sr.Peek() >= 0)
- {
- Console.Clear();
- Console.SetCursorPosition(0, 1);
- cache[count] = sr.ReadLine();
- Console.WriteLine(count);
- count++;
- }
- cat = CatArray(cache[0]);
- salt = LoadCat(CatGet("password", cat), cache);
- Console.WriteLine("Done!");
- }
- }
- static string[] CatArray(string cache)
- {
- int manager = 0;
- int count = 0;
- int encap = 0;
- string localCache = "";
- string[] output = new string[400];
- string separator = ",";
- string encapsulator = "`";
- string starter = "(";
- string ender = ")";
- for (int x = 0; x <= cache.Length; x++)
- {
- string temp = cache.Substring(x, 1);
- if (temp == ender) { break; }
- if (manager == 1)
- {
- if (temp == encapsulator)
- {
- encap++;
- temp = "";
- }
- else if (temp != encapsulator && temp != separator && temp != " ")
- {
- localCache += temp;
- }
- }
- if (encap == 2)
- {
- output[count] = localCache;
- localCache = "";
- count++;
- encap = 0;
- }
- if (temp == starter) { manager = 1; }
- }
- return output;
- }
- static int CatGet(string category, string[] categories)
- {
- int cat = 0;
- for (int x = 0; x <= categories.Length; x++)
- {
- Console.WriteLine(x + " : " + categories[x]);
- if (categories[x] == category) { cat = x; break; }
- }
- Console.WriteLine(cat + " : " + categories[cat]);
- Console.ReadLine();
- return cat;
- }
- static string[] LoadCat(int cat, string[] cache)
- {
- string[] output = new string[800000];
- int count = 0;
- string temp = "";
- string separator = ",";
- string encapsulator = "`";
- string starter = "(";
- string ender = ")";
- for (int x = 1; x <= cache.Length - 1; x++)
- {
- string tempCache = cache[x];
- for(int y = 0; y <= tempCache.Length; y++)
- {
- if (tempCache.Substring(y, 1) == ender) { x++; break; }
- temp += tempCache.Substring(y, 1);
- }
- Console.WriteLine(count);
- count++;
- temp = "";
- Console.Clear();
- }
- return output;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement