Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fs = require("fs");
- global.InstallLocation = undefined;
- global.FortniteItems = [];
- try {
- let ii = JSON.parse(fs.readFileSync("C:\\ProgramData\\Epic\\UnrealEngineLauncher\\LauncherInstalled.dat"));
- InstallLocation = ii.InstallationList.find(i => i.AppName === "Fortnite").InstallLocation;
- } catch (e) { }
- if (InstallLocation) {
- let file = fs.createReadStream(InstallLocation + "\\FortniteGame\\Content\\Paks\\pakchunk0-WindowsClient.pak");
- let lb = Buffer.from([]);
- file.on("data", e => {
- let buffer = Buffer.concat([lb, e]);
- lb = buffer.slice(buffer.length - 128);
- let index = 0;
- while (index < buffer.length) {
- if (buffer[index + 0] === 0 && buffer[index + 1] === 65 && buffer[index + 2] === 116 &&
- buffer[index + 3] === 104 && buffer[index + 4] === 101 && buffer[index + 5] === 110 && buffer[index + 6] === 97) {
- let lindex = 7;
- let lstr = "Athena";
- while (buffer[index + lindex]) {
- lstr += String.fromCharCode(buffer[index + lindex]);
- ++lindex
- }
- lstr += ":";
- lindex += 2;
- if (buffer[index + lindex - 1] === 139 && buffer[index + lindex] === 0) {
- while (buffer[index + lindex] !== undefined &&
- !((buffer[index + lindex] >= 65 && buffer[index + lindex] <= 90) ||
- (buffer[index + lindex] >= 97 && buffer[index + lindex] <= 122))) {
- lindex += 1;
- }
- while (buffer[index + lindex]) {
- lstr += String.fromCharCode(buffer[index + lindex]).toLowerCase();
- lindex += 1;
- }
- if (buffer[index + lindex] === 0) {
- if (!lstr.endsWith("_random") && FortniteItems.indexOf(lstr) === -1) {
- FortniteItems.push(lstr);
- }
- }
- }
- }
- ++index;
- }
- fs.writeFileSync("output.txt", FortniteItems.join("\n"))
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement