Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Net;
- using System.IO;
- using Newtonsoft.Json;
- using System.Collections.Generic;
- namespace aesFortnite
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WindowWidth = 100; // X. Ancho.
- Console.WindowHeight = 50;// Y. Alto.
- var url = "https://fortnite-api.com/v2/aes";
- WebClient wc = new WebClient();
- var datos = wc.DownloadString(url);
- var rs = JsonConvert.DeserializeObject<Root>(datos);
- Console.Title = "Fortnite [Creado Por Jose89fcb]";
- Console.ForegroundColor = ConsoleColor.DarkRed;
- Console.Write("build: ");
- Console.ForegroundColor = ConsoleColor.DarkYellow;
- Console.WriteLine(rs.data.build);
- Console.ForegroundColor = ConsoleColor.Gray;
- Console.Write("clave AES: ");
- Console.WriteLine("0x" + rs.data.mainKey);
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine("\n");
- foreach (var Fortnite in rs.data.dynamicKeys)
- {
- Console.ForegroundColor = ConsoleColor.Yellow;
- Console.Write("pakFilename: ");
- Console.ForegroundColor = ConsoleColor.Blue;
- Console.WriteLine(Fortnite.pakFilename);
- Console.ForegroundColor = ConsoleColor.Cyan;
- Console.Write("pakGuid: ");
- Console.ForegroundColor = ConsoleColor.DarkGreen;
- Console.WriteLine(Fortnite.pakGuid);
- Console.ForegroundColor = ConsoleColor.Magenta;
- Console.Write("Key: ");
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine(Fortnite.key);
- Console.Write("\n");
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.Write("Actualizado: ");
- Console.WriteLine(rs.data.updated);
- Console.ReadLine();
- }
- public static string GetHttp(string url)
- {
- WebRequest oRequest = WebRequest.Create(url);
- WebResponse oResponse = oRequest.GetResponse();
- StreamReader sr = new StreamReader(oResponse.GetResponseStream());
- return sr.ReadToEnd().Trim();
- }
- public class DynamicKey
- {
- public string pakFilename { get; set; }
- public string pakGuid { get; set; }
- public string key { get; set; }
- }
- public class Data
- {
- public string build { get; set; }
- public string mainKey { get; set; }
- public List<DynamicKey> dynamicKeys { get; set; }
- public DateTime updated { get; set; }
- }
- public class Root
- {
- public int status { get; set; }
- public Data data { get; set; }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement