Skip to content

Instantly share code, notes, and snippets.

View deadphoenix8091's full-sized avatar

DeadPhoenix8091 deadphoenix8091

  • Bavaria, Germany
View GitHub Profile
@deadphoenix8091
deadphoenix8091 / importdata.php
Last active February 5, 2022 09:52
Project M json download script
<?php
function downloadFromApi($endpointUrl) {
if (!is_dir('./apicache'))
mkdir('./apicache');
if (file_exists('./apicache/' . md5($endpointUrl))) {
$content = file_get_contents('./apicache/' . md5($endpointUrl));
} else {
$baseApiUrl = 'https://flyff-api.sniegu.fr';
$retryCount = 0;
$downloadSuccess = false;
@mixin generateColumnBreakpoints($elemMinWidth, $columnSpacing, $windowMinWidth, $windowMaxWidth) {
$currentWidth: $windowMinWidth;
@media (max-width: $windowMinWidth) {
width: 100%;
margin-left: 0;
margin-right: 0;
}
@while $currentWidth < $windowMaxWidth {
<?php
//movable.sed_bak is the movable of the old/source 3ds extracted from a backup or wherever
$fileContentOriginal = file_get_contents('movable.sed');
$keyYOriginal = substr($fileContentOriginal, 0x110, 16);
//id0 of the new system that you want to find keyY for
$targetId0 = "ID0 here";
function getId0($keyY) {
$sha = hex2bin(hash("sha256", $keyY));
@deadphoenix8091
deadphoenix8091 / bruteforce_movable_after_format.php
Last active December 7, 2018 13:57
This little script is used to get the movable.sed if you have previously transfered LFCS_B from another system and did a system format afterwards.
<?php
//movable.sed_bak is the movable of the old/donor 3ds extracted from a backup or wherever
$fileContentOriginal = file_get_contents('movable.sed_bak');
$keyYOriginal = substr($fileContentOriginal, 0x110, 16);
//movable.sed is the movable.sed_bak from the old/donor 3ds with the LFCS changed to the new dumped one
$fileContentNewLFCS = file_get_contents('movable.sed');
$keyYNewLFCS = substr($fileContentNewLFCS, 0x110, 16);