Skip to content

Commit

Permalink
fix: category class_address offset error
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulghost committed Apr 27, 2021
1 parent a0d95d3 commit 8ee2206
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions iblessing/iblessing/mach-o/runtime/ObjcCategory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,11 @@ shared_ptr<ObjcCategory> ObjcCategory::loadFromAddress(uint64_t address) {
category->name = name;
address += 8;

uint64_t classPtr = vm2->read64(address, nullptr);
if (!classPtr) {
uint64_t classAddr = vm2->read64(address, nullptr);
if (!classAddr) {
return nullptr;
}
category->decoratedClass = make_shared<ObjcCategoryDecoratedClass>();
uint64_t classAddr = vm2->read64(classPtr, nullptr);
category->decoratedClass->address = classAddr;
if (classAddr) {
ObjcClassRuntimeInfo *classInfo = ObjcRuntime::getInstance()->getClassInfoByAddress(classAddr);
Expand Down
2 changes: 1 addition & 1 deletion iblessing/iblessing/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main(int argc, const char *argv[]) {
\n");

// hello text
printf("[***] iblessing iOS Security Exploiting Toolkit Beta 0.6.3 (http://blog.asm.im)\n");
printf("[***] iblessing iOS Security Exploiting Toolkit Beta 0.6.4 (http://blog.asm.im)\n");
printf("[***] Author: Soulghost (高级页面仔) @ (https://github.com/Soulghost)\n");

#ifdef IB_CSR_ENABLED
Expand Down

0 comments on commit 8ee2206

Please sign in to comment.