This commit is contained in:
JimmyZ 2017-08-30 18:48:56 +08:00
parent 6d1becd014
commit ffd261f855
13 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ mbedtls/aesni.h
mbedtls/sha1.h
mbedtls/version.h
twlbf_*

View File

@ -13,3 +13,4 @@ $(PNAME)_mbedtls: $(OBJS) $(MBEDTLS_OBJS) crypto_mbedtls.o
clean:
rm $(PNAME)_* *.o

View File

@ -91,3 +91,4 @@ I'm not sure.
### Thanks:
- Martin Korth for [GBATEK](http://problemkaputt.de/gbatek.htm)
- Wulfystylez/WinterMute for [TWLTool](https://github.com/WinterMute/twltool)

View File

@ -7,3 +7,4 @@ typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;

View File

@ -12,3 +12,4 @@ void crypto_init();
void aes_128_ecb_set_key(const u8 *key);
void aes_128_ecb_crypt_1(u8 *out, const u8 *in);
void aes_128_ecb_crypt(u8 *out, const u8 *in, unsigned len);

View File

@ -56,3 +56,4 @@ void aes_128_ecb_crypt(u8 *out, const u8 *in, unsigned len){
out += 16;
}
}

View File

@ -61,3 +61,4 @@ void aes_128_ecb_crypt(u8 *out, const u8 *in, unsigned len){
assert(EVP_EncryptUpdate(&ctx, out, &len_out, in, len) == 1);
assert(len_out == len);
}

1
dsi.c
View File

@ -343,3 +343,4 @@ void dsi_brute_console_id(const u8 *console_id_template, const u8 *emmc_cid,
double td = difftime(time(0), start);
printf("%.2f seconds, %.2f M/s\n", td, tested / 1000000.0 / td);
}

1
dsi.h
View File

@ -11,3 +11,4 @@ void dsi_brute_emmc_cid(const u8 *console_id, const u8 *emmc_cid_template,
void dsi_brute_console_id(const u8 *console_id_template, const u8 *emmc_cid,
const u8 *offset, const u8 *src, const u8 *verify, int bcd);

View File

@ -10,3 +10,4 @@
#define MBEDTLS_AESNI_C
#define MBEDTLS_HAVE_X86_64
#define MBEDTLS_HAVE_ASM

View File

@ -59,3 +59,4 @@ int main(int argc, const char *argv[]){
#endif
return 0;
}

View File

@ -56,3 +56,4 @@ const char *hexdump(const void *b, unsigned l, int space){
}
return hexdump_buf;
}

View File

@ -6,3 +6,4 @@
int hex2bytes(u8 *out, unsigned byte_len, const char *in, int critical);
const char * hexdump(const void *a, unsigned l, int space);