-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update demos to use asm for better output
- Loading branch information
1 parent
21dc00e
commit a9141ed
Showing
18 changed files
with
617 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
r2 -q -i sec_hardcoded_rsa.r2 -A MASTestApp > output.txt | ||
r2 -q -i sec_hardcoded_rsa.r2 -A MASTestApp > output.asm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
e asm.bytes = false | ||
e scr.color=false | ||
|
||
!printf "Uses of CryptoKit.P256.Signing.PrivateKey:\n" | ||
afl~CryptoKit.P256.Signing.PrivateKey | ||
|
||
!printf "\n" | ||
|
||
!printf "xrefs to CryptoKit.P256.Signing.PrivateKey.rawRepresentation:\n" | ||
axt @ 0x100007388 | ||
|
||
!printf "\n" | ||
|
||
!printf "Use of CryptoKit.P256.Signing.PrivateKey.rawRepresentation:\n" | ||
|
||
pd-- 9 @ 0x1000048d4 | ||
|
||
pdf @ sym.func.1000046dc > function.asm | ||
|
||
px 32 @ 0x1000100c8 > key.asm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
0x1000047b4 adrp x0, segment.__DATA ; 0x100010000 -> This instruction loads the base address of the `.data` segment into register `x0`. | ||
0x1000047b8 add x0, x0, 0xe8 ; int64_t arg1 -> This adds an offset to the base address, pointing to a specific memory location within the `.data` segment, possibly where the hardcoded key or related data is stored. | ||
0x1000047bc bl sym.func.100004e0c -> A function is called, with `x0` as an argument, likely using the data at the computed address (which could be the key) for further operations. | ||
0x1000047c0 ldur x8, [x0, -8] -> This loads data from the memory location computed earlier (potentially part of the key) into register `x8`. | ||
0x1000047c4 ldr x8, [x8, 0x40] -> Further data manipulation, loading another piece of data related to the earlier load. This could be part of the key processing. | ||
0x1000047f0 bl sym CryptoKit.P256.Signing.PrivateKey. -> This calls the `PrivateKey` initializer, which may use the previously loaded data (potentially a hardcoded key) in its process of key creation. |
Oops, something went wrong.