Advertisement
irokemr

aes fortnite consola

Apr 5th, 2021 (edited)
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.16 KB | None | 0 0
  1. using System;
  2. using System.Net;
  3. using System.IO;
  4. using Newtonsoft.Json;
  5. using System.Collections.Generic;
  6.  
  7. namespace aesFortnite
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.  
  14.             Console.WindowWidth = 100; // X. Ancho.
  15.             Console.WindowHeight = 50;// Y. Alto.
  16.  
  17.             var url = "https://fortnite-api.com/v2/aes";
  18.             WebClient wc = new WebClient();
  19.  
  20.             var datos = wc.DownloadString(url);
  21.  
  22.             var rs = JsonConvert.DeserializeObject<Root>(datos);
  23.             Console.Title = "Fortnite           [Creado Por Jose89fcb]";
  24.             Console.ForegroundColor = ConsoleColor.DarkRed;
  25.             Console.Write("build: ");
  26.             Console.ForegroundColor = ConsoleColor.DarkYellow;
  27.             Console.WriteLine(rs.data.build);
  28.  
  29.  
  30.             Console.ForegroundColor = ConsoleColor.Gray;
  31.             Console.Write("clave AES: ");
  32.            
  33.             Console.WriteLine("0x" + rs.data.mainKey);
  34.             Console.ForegroundColor = ConsoleColor.White;
  35.             Console.WriteLine("\n");
  36.  
  37.             foreach (var Fortnite in rs.data.dynamicKeys)
  38.             {
  39.                 Console.ForegroundColor = ConsoleColor.Yellow;
  40.                 Console.Write("pakFilename: ");
  41.                 Console.ForegroundColor = ConsoleColor.Blue;
  42.                 Console.WriteLine(Fortnite.pakFilename);
  43.  
  44.                
  45.  
  46.                 Console.ForegroundColor = ConsoleColor.Cyan;
  47.                 Console.Write("pakGuid: ");
  48.                 Console.ForegroundColor = ConsoleColor.DarkGreen;
  49.                 Console.WriteLine(Fortnite.pakGuid);
  50.  
  51.  
  52.  
  53.  
  54.                 Console.ForegroundColor = ConsoleColor.Magenta;
  55.                 Console.Write("Key: ");
  56.                 Console.ForegroundColor = ConsoleColor.Red;
  57.                 Console.WriteLine(Fortnite.key);
  58.                
  59.                 Console.Write("\n");
  60.  
  61.  
  62.  
  63.  
  64.             }
  65.  
  66.            
  67.             Console.ForegroundColor = ConsoleColor.White;
  68.             Console.Write("Actualizado: ");
  69.             Console.WriteLine(rs.data.updated);
  70.            
  71.  
  72.             Console.ReadLine();
  73.        
  74.  
  75.  
  76.  
  77.         }
  78.  
  79.         public static string GetHttp(string url)
  80.         {
  81.  
  82.  
  83.             WebRequest oRequest = WebRequest.Create(url);
  84.             WebResponse oResponse = oRequest.GetResponse();
  85.             StreamReader sr = new StreamReader(oResponse.GetResponseStream());
  86.             return sr.ReadToEnd().Trim();
  87.  
  88.         }
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.        
  96.         public class DynamicKey
  97.         {
  98.             public string pakFilename { get; set; }
  99.             public string pakGuid { get; set; }
  100.             public string key { get; set; }
  101.         }
  102.  
  103.         public class Data
  104.         {
  105.             public string build { get; set; }
  106.             public string mainKey { get; set; }
  107.             public List<DynamicKey> dynamicKeys { get; set; }
  108.             public DateTime updated { get; set; }
  109.         }
  110.  
  111.         public class Root
  112.         {
  113.             public int status { get; set; }
  114.             public Data data { get; set; }
  115.         }
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.     }
  150. }
  151.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement