Skip to content

Instantly share code, notes, and snippets.

View JayFoxRox's full-sized avatar

Jannik Vogel JayFoxRox

View GitHub Profile
@JayFoxRox
JayFoxRox / index.md
Last active August 15, 2024 04:18
3D Gaussian Splatting

Notes about gsplat / 3DGS: 3D Gaussian Splatting (~WIP)

I'm planning to turn this into an "awesome-gsplat" repository (https://github.com/sindresorhus/awesome) or a wiki on some repository.

Feel free to add comments to this gist for now.

I'm contiuining to update this, and will hopefully get to reformatting it with thumbnails and further information (especially on performance and capabilities of implementations).


@JayFoxRox
JayFoxRox / fortnite-decrypt.py
Created February 28, 2023 19:07
Decryptor for the Fortnite Chapter 4, Season 1 / 2 encrypted Cipher Quests
#!/usr/bin/env python3
#
# Decryptor for the Fortnite Chapter 4, Season 1 / 2 encrypted Cipher Quests.
#
# The scheme for the encryption has been described here:
# https://twitter.com/realNumberSets/status/1630581327018831883
#
# Example:
#
@JayFoxRox
JayFoxRox / ATAPI_12__inquiry.c
Created March 16, 2020 00:43
Analysis of SDG605B x010 firmware
void FUN_CODE_33cd_12__handle_INQUIRY(void)
{
// EVPD must be zero
if (BYTE_INTMEM_9b & 1) {
FUN_CODE_27e2_error_tracking_probably(SPC_SK_ILLEGAL_REQUEST,0x24,0);
return;
}
// Page code must be zero
@JayFoxRox
JayFoxRox / notes.md
Created January 21, 2020 21:46
IDC Script and information about Hitachi-LG GDR-8050L (Original Xbox Drive)

(This information stems from a french forum post which I'll not link here to avoid legal issues)

I believe this information is about the 360 variant of the drive.

According to TheSpecialist the firmware has a checksum which is verified at the start of the firmware at offset 0x000099. By patching the bytes C8 23 FC in CC 23 00 the checksum is bypassed and the console starts without problem!

Addresses in firmware (47DH):

@JayFoxRox
JayFoxRox / code.rb
Last active August 27, 2019 00:32
Futurama Easter-Egg
# Based on research using https://github.com/JayFoxRox/futurama-tools
# LABEL: [{'name': '@@action@@aEgg', 'path': 'Level1\\Level1-1\\Level1-1A.fis', 'address': 28580, 'type': 40, 'unk4': 385, 'locals': [{'name': 'eggdoor', 'offset': 0, 'type': 27}, {'name': 't_next', 'offset': 216, 'type': 12}, {'name': 't_hit', 'offset': 220, 'type': 12}]}]
function StageA:@@action@@aEgg {
.stack_size 0
.extra_stack_size 224
.local Door eggdoor # Offset 0
.local Trigger t_next # Offset 216
.local Trigger t_hit # Offset 220
@JayFoxRox
JayFoxRox / nxdk-rdt-proto.md
Created July 14, 2018 03:10
nxdk-rdt protocol specification (failed attempt iirc?)

nxdk-rdt Protocol specification

This protocol was designed to be simple to understand and implement.

However, nxdk-rdt only provides helper functions which are enough to inject your own code into an Xbox. nxdk-rdt itself does not provide a high-level set of functions to do anything useful on their own. To find out how to create these high-level functions using nxdk-rdt, see the examples section.

Reasons for this design are:

diff --git a/build.sh b/build.sh
index 86031fc8fe..5ab64ecaa2 100755
--- a/build.sh
+++ b/build.sh
@@ -50,7 +50,7 @@ set -x # Print commands from now on
        --disable-curl \
        --disable-vnc \
        --disable-docs \
- --disable-tools \
@JayFoxRox
JayFoxRox / README.md
Last active April 22, 2018 09:32
OpenSWE1R Disassembly Completeness Script

Horrible code ahead!

I wrote this as a small motivation for my RE efforts. It was rushed together, so please be careful when using it.

Needs a clone of the OpenSWE1R wiki in "openswe1r.wiki" folder. Also requires a decopilation of the game binary using "Retargetable Decompiler" (retdec) which must be passed as argument to completeness.py

I'm not sure when I wrote this script and wether it was for the patched version or the demo version. I seem to have ran it for one of the patched binaries though.

@JayFoxRox
JayFoxRox / convert.sh
Created January 7, 2018 05:41
N64 ROM (z64) to ELF
#!/usr/bin/bash
# Get entry point from N64 ROM
dd if=test.z64 bs=1 skip=8 count=4 of=entrypoint >& /dev/null
# Convert entrypoint to little endian
#mips-elf-objcopy -I binary -O binary --reverse-bytes=4 entrypoint entrypoint
# Construct an ELF
mips-elf-objcopy -I binary test.z64 -O elf32-bigmips -B mips --adjust-section-vma .data+0x80000000 foo.elf
# Patch to MIPS III
printf '\x20\x00\x00\x00' | dd bs=1 seek=36 count=4 conv=notrunc of=foo.elf >& /dev/null
@JayFoxRox
JayFoxRox / jfr-plans-2017.md
Last active May 17, 2017 23:16
JayFoxRox 2017

JayFoxRox Projects 2017 (plans and wishes)

XQEMU Plans

  1. Create emuwell, an open-source MCPX ROM + Flash
  2. Create dump-xbox, an open-source xboxkrnl.exe and HDD image dumper
  3. Create an open-source RPC tool (NXDK-RDT or nv2a-re / xbox-re) to remote control an Xbox
  4. Add basic travis CI support for the Linux version of XQEMU
  5. Integrate unit tests through the remote tool to automatically test XQEMU on travis using all of the above tools (and a hidden xboxkrnl.exe)
  6. Document usage of freecell and gain permission for ss_sector_range; create portable flashing tool to make XGD dumping easier