Skip to content

Instantly share code, notes, and snippets.

View daCyuubi's full-sized avatar
😛
Programming. Isn't that what you're suppose to do as a programmer?

Cyuubi daCyuubi

😛
Programming. Isn't that what you're suppose to do as a programmer?
  • United States
View GitHub Profile
@daCyuubi
daCyuubi / CustomRules.cs
Last active June 14, 2021 17:49
Fortnite "1.8" custom rules for Fiddler (V2), now in C#
// Hi there, before you can install this FiddlerScript please follow this guide:
// 1.) Go into "Tools -> Options" select the "Scripting" tab and then set the "Language" to "C#", this is required.
// 2.) Select the "HTTPS" tab and then tick the "Decrypt HTTPS traffic" checkbox, Fiddler will bring up a few prompts which you'll want to hit "OK" to.
// 3.) Restart Fiddler, select the "FiddlerScript" tab and remove the code inside it. (CTRL+A, Backspace)
// 4.) Copy and paste my FiddlerScript into the "FiddlerScript" tab, hit "Save Script" and you're done!
//
// Unfortunately, there is some downsides to this new approach:
// 1.) If you sign into Fortnite, you'll get kicked out of EGL and you'll need to sign back in. (I can fix this issue, but I'm just lazy.)
// 2.) You must have EGL installed and be signed into it, otherwise you'll be unable to sign into Fortnite.
//
public class Example : SingletonBehaviour<Example>
{
private void Awake()
{
Assign(this);
// ...
}
}
// Class
class_OsuMain : #=zTK0jAOz9Gp_T8Faqlw== // osu
class_pWebRequest : #=zzFjb0nWbI2yH6BKdckcwcIU= // osu_common.Helpers
// Field
field_pWebRequest_url : #=zYYz1$8k=
// Method
method_OsuMain_FullPath : #=zVSnDhooH5w8t
method_OsuMain_Filename : #=zLV8AMhGe7Y8a
// Class
class_OsuMain : #=zwUcvxk6E$YaBc9Oqwg== // osu
class_pWebRequest : #=zawBUTzzVo8MlrU_OpuOIvuM= // osu_common.Helpers
// Field
field_pWebRequest_url : #=zeRKBP5w=
// Method
method_OsuMain_FullPath : #=zZsp5QLX1vgJj
method_OsuMain_Filename : #=zGiNP_NgMc7Rh
@daCyuubi
daCyuubi / NNHash.cs
Created April 7, 2019 13:32
Nintendo Network password hash function in C#
public string HashPassword(int Pid, string Password)
{
MemoryStream Stream = new MemoryStream();
BinaryWriter Writer = new BinaryWriter(Stream);
Writer.Write(Pid);
Writer.Write(new byte[] { 0x02, 0x65, 0x43, 0x46 }); // Salt
Writer.Write(Encoding.ASCII.GetBytes(Password));
byte[] Hash = Sha256.ComputeHash(Stream.ToArray());
@daCyuubi
daCyuubi / YEEHAW.md
Last active April 7, 2019 13:33
How to hash Nintendo Network passwords
// Class
class_OsuMain : #=zBRYjX1sAnSp374hhdQ== // osu
class_pWebRequest : #=z$EsbtAnd5xviPAfNWFHq4pw= // osu_common.Helpers
// Field
field_pWebRequest_url : #=zpJXEsgU=
// Method
method_OsuMain_FullPath : #=znpskdrI4O6kK
method_OsuMain_Filename : #=zNLZjf3mRdacx
@daCyuubi
daCyuubi / BetterBuffer.js
Created March 1, 2019 18:20
Node.js buffers which don't suck ass.
const BigIntBuffer = require('bigint-buffer');
function BetterBuffer() {
this.buffer = Buffer.alloc(0);
this.reset();
};
BetterBuffer.prototype.reset = function() {
if (this.buffer.length != 0)
this.buffer = Buffer.alloc(0);
@daCyuubi
daCyuubi / CustomRules.js
Last active June 14, 2021 17:44
Fortnite 1.8 custom rules for Fiddler (outdated)
import System;
import System.Web;
import System.Windows.Forms;
import Fiddler;
class Handlers
{
static var SquadPlayground = false;
static var RegionOverride = "NAE";

Keybase proof

I hereby claim:

  • I am cyuubi on github.
  • I am cyuubi (https://keybase.io/cyuubi) on keybase.
  • I have a public key ASB9KkiLybnjuDD9voFbQwZEAi-RrjorjLltSq9NKLXRYwo

To claim this, I am signing this object: