Skip to content

Instantly share code, notes, and snippets.

@nukejello
nukejello / DL:
Created August 6, 2018 21:22 — forked from CHEF-KOCH/DL:
Windows 10 Enterprise 2016 LTSB ISO's MSDN Available Direct Download Links
Via
http://shadow-trooperz.xyz/sw/
x64:
http://5.9.37.199/sw/SW_DVD5_WIN_ENT_LTSB_2016_64BIT_English_MLF_X21-07421.ISO
Mirrors:
http://bit.ly/2dPO96m
x86:
http://5.9.37.199/sw/SW_DVD5_WIN_ENT_LTSB_2016_32BIT_English_MLF_X21-07420.ISO
@nukejello
nukejello / exiftool-recursive-filename-date.sh
Last active August 5, 2018 03:12
exiftool: add DateOriginal to filenames (Canon CR2 and JPG) recursively in current directory (synology)
#!/bin/bash
printf "Adding date to filenames (Canon CR2 and JPG) in current directory recursively\n\n"
CWD=$(pwd)
DATE=`date '+%Y-%m-%d %H:%M:%S'`
DATELOG=`date '+%Y-%m-%d_%H%M%S'`
SECONDS=0
printf "Started at: ${DATE}\n\n" | tee ${DATELOG}-photos_exiftool_filerename.txt && exiftool -ext JPG -ext CR2 -if '$make eq "Canon"' '-testname<${DateTimeOriginal}-${filename;$_=subst($_,4);}' -d "IMG_%Y%m%d_%H%M%S%%-c" -i "@eaDir" -P -overwrite_original_in_place -v -r "${CWD}" 2>&1 | tee -a ${DATELOG}-photos_exiftool_filerename.txt
DATEEND=`date '+%Y-%m-%d %H:%M:%S'`
###############################################
# TX SX OS unpacker - by hexkyz and naehrwert #
###############################################
from Crypto.Cipher import AES
from Crypto.Util import Counter
import os
import struct
"""
@nukejello
nukejello / sx_packer.py
Created June 19, 2018 20:41
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;