Skip to content

Commit

Permalink
trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy-Z committed Aug 22, 2017
1 parent bfc854b commit 1f35eed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ OBJS = $(PNAME).o utils.o dsi.o
MBEDTLS_OBJS = sha1.o aes.o aesni.o
CFLAGS = -std=c11 -Wall -O2 -D__USE_MINGW_ANSI_STDIO=1

all: $(PNAME) $(PNAME)_mbedtls
all: $(PNAME)_openssl $(PNAME)_mbedtls

$(PNAME): $(OBJS) crypto_openssl_evp.o
$(PNAME)_openssl: $(OBJS) crypto_openssl_evp.o
$(CC) -o $@ $^ -lcrypto

$(PNAME)_mbedtls: $(OBJS) $(MBEDTLS_OBJS) crypto_mbedtls.o
$(CC) -o $@ $^

clean:
rm $(PNAME) $(PNAME)_* *.o
rm $(PNAME)_* *.o
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,17 @@ DSi Console ID or EMMC CID brute-force

`twlbf console_id [Console ID] [EMMC CID] [src] [verify] [offset]`

`twlbf console_id_bcd [Console ID] [EMMC CID] [src] [verify] [offset]`

- verify, 16 bytes, hex string.

when brute EMMC CID, the EMMC CID you provided was used as a template.
when bruting EMMC CID, the EMMC CID you provided was used as a template.
the OpenSSL build is faster for this.

when bruting Console ID, the Console ID you provided was used as a template.
the mbed TLS build is faster for this.

when brute Console ID, the Console ID you provided was used as a template.
the _bcd variant loops through 0~9 instead of 0~0xf.

usually you should read 16 bytes from EMMC dump at offset 0x1f0 as [src],
use `000000000000000000000000000055aa` as [verify], and `001f` as [offset].
Expand Down

0 comments on commit 1f35eed

Please sign in to comment.