Skip to content

Instantly share code, notes, and snippets.

Kurisu2 (INCOMPLETE)

Kurisu2 is a complete rewrite of the Kurisu bot. This document explains most of the major changes.

Actions Log

There is a new log which contains every action against a user, channel, or other things. For example, every takehelp and givehelp, warn and warn deletion, and more, each have their own entry in the log.

Action entries each have their own snowflake ID (based on the date), and contain the user, target, kind, description, and certain extra information. Entries can be exported on demand to CSV files.

Action entries can also have attachment URLs. You can add URLs manually with . 78465448093417472 https://.... You can also attach files when calling . 78465448093417472.

#!/usr/bin/python
from __future__ import print_function
from __future__ import division
import subprocess as sp
from os.path import exists, expanduser
from sys import argv
from datetime import datetime
from Foundation import NSUserNotification
# Pure python AES128 implementation
# SciresM, 2017
from struct import unpack as up, pack as pk
def sxor(s1, s2):
'''Xors two strings.'''
assert(len(s1) == len(s2))
return ''.join([chr(ord(x) ^ ord(y)) for x,y in zip(s1, s2)])
class AESCBC:
@ihaveamac
ihaveamac / unrestrict.c
Created August 3, 2017 00:23 — forked from SonoSooS/unrestrict.c
Unrestrict - parental control remover for Nintendo 3DS
#include <3ds.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void __system_allocateHeaps(void)
{
extern char* fake_heap_start;
extern char* fake_heap_end;
#!/usr/bin/env python3
import asyncio
import discord
import time
text = open("welcome-update.md").read()
client = discord.Client()
#!/bin/bash
for f in 3dsbootldr_fatfs 3dsbootldr_firm 3dshax unprotboot9_sdmmc; do cd $f; make clean; cd ..; done
OUTPATH=/Volumes/EMUNAND9SD
cd unprotboot9_sdmmc
make
cd ../3dshax
#!/usr/bin/env python3
import binascii
import struct
import sys
from Crypto.Cipher import AES
if len(sys.argv) < 3:
print("usage: cia_extract_deckey.py <cia-file> <decrypted-titlekey>")
sys.exit(1)
#!/usr/bin/env python3
import os
import sys
from Crypto.Cipher import AES
from Crypto.Hash import SHA256
if len(sys.argv) < 4:
sys.exit("encrypt_keysector.py <otp> <secret_sector> <output>")
#!/usr/bin/env python3
# Picross 3D: Round 2 amiibo puzzle unlocker
# based on https://github.com/Rohul1997/Picross-R2-Amiibo-Unlocker
import sys
if len(sys.argv) == 1:
sys.exit("p3dr2_amiibo_unlock.py <SAVEDATA>")