Skip to content

Instantly share code, notes, and snippets.

View jiuxiaxixi's full-sized avatar

jiuxiaxixi jiuxiaxixi

View GitHub Profile
@jiuxiaxixi
jiuxiaxixi / sx_packer.py
Created June 20, 2018 04:39
Py 2.7 - Needs original boot.dat in folder with the edited bin's
from Crypto.Cipher import AES
from Crypto.Util import Counter
import struct
import hashlib
from binascii import hexlify, unhexlify
"""
typedef struct boot_dat_hdr
{
from Crypto.Cipher import AES
from Crypto.Util import Counter
import struct
"""
typedef struct boot_dat_hdr
{
unsigned char ident[0x10];
unsigned char sha2_s2[0x20];
unsigned int s2_dst;
@jiuxiaxixi
jiuxiaxixi / libusb.patch
Created June 20, 2018 04:34 — forked from nwert/libusb.patch
nxboot
diff --git a/libusb/os/linux_usbfs.h b/libusb/os/linux_usbfs.h
index 2449632..5ef03ba 100644
--- a/libusb/os/linux_usbfs.h
+++ b/libusb/os/linux_usbfs.h
@@ -82,7 +82,7 @@ struct usbfs_iso_packet_desc {
};
#define MAX_BULK_BUFFER_LENGTH 16384
-#define MAX_CTRL_BUFFER_LENGTH 4096
+#define MAX_CTRL_BUFFER_LENGTH 0xFFFF
@jiuxiaxixi
jiuxiaxixi / howto-setup-transparent-proxied-router.md
Created November 27, 2016 08:49 — forked from snakevil/howto-setup-transparent-proxied-router.md
如何在路由器中实现透明代理?

如何在路由器中实现透明代理?

0 互联网现状

目前整个互联网环境,被破坏最严重地部分,是 Web 服务体验。当直接破坏难以实现时,就会从流程链的上下游着手,如:DNS 污染。

其它地互联网服务类型,例如:邮件,可能小部分会受到 Web 服务上下游破坏地余震,但整体上基本不受影响。