Skip to content

Commit

Permalink
iOS continue..
Browse files Browse the repository at this point in the history
  • Loading branch information
WebDucerBlog committed Jun 20, 2020
1 parent 7c574b4 commit b21a111
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ final boolean handleCommon(Unicorn u, String line, long address, int size, long
int index = 0;
long filterAddress = -1;
if (filter != null && filter.startsWith("0x")) {
filterAddress = Long.parseLong(filter.substring(2));
filterAddress = Long.parseLong(filter.substring(2), 16);
}
for (Module module : memory.getLoadedModules()) {
if (filter == null || module.getPath().toLowerCase().contains(filter.toLowerCase()) || (filterAddress >= module.base && filterAddress < module.base + module.size)) {
Expand Down
10 changes: 4 additions & 6 deletions unidbg-ios/src/main/native/ios/bootstrap.m
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,11 @@ static void test_CommonDigest() {
memset(out, 0, 32);
CCCryptorStatus status = CCCrypt(kCCDecrypt, kCCAlgorithmAES, kCCOptionPKCS7Padding, key, 16, iv, data, 16, out, 32, &outSize);
NSLog(@"test_CommonDigest status=%d, outSize=%lu", status, outSize);
if(outSize > 0) {
fprintf(stderr, "test_CommonDigest:");
for(size_t i = 0; i < outSize; i++) {
fprintf(stderr, " %02x", out[i] & 0xff);
}
fprintf(stderr, "\n");
fprintf(stderr, "test_CommonDigest outSize=%lu:", outSize);
for(size_t i = 0; i < 16; i++) {
fprintf(stderr, " %02x", out[i] & 0xff);
}
fprintf(stderr, "\n");
}

int main(int argc, char *argv[]) {
Expand Down
Binary file modified unidbg-ios/src/main/resources/ios/bootstrap_objc
Binary file not shown.

0 comments on commit b21a111

Please sign in to comment.