Code Monkey home page Code Monkey logo

Comments (2)

Jardaliao avatar Jardaliao commented on June 14, 2024

This problem occurs when building Thread 1: EXC_BAD_ACCESS (code=2, address=0x1fa3535d0) Is there any way to help me? I am using Xcode14.2 version

Replace fishhook.c & fishhook.h with this repo: https://github.com/facebook/fishhook, it works for me

from monkeydev.

CHJ1906 avatar CHJ1906 commented on June 14, 2024

I use the Logos tweak plugin for Hook,
After the app installs the deb, it will crash directly without any error
But when I run directly through Xcode directly on the phone, xcode will appear these errors
#0 0x00000001039a5d7c in __ARCLite__load() at /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/arclite_iOS/arclite-76/source/arclite.mm:1740

#1 0x00000001afb02660 in load_images ()
#37 0x0000000102f0d038 in _dyld_start ()

control

Package: com.test1.hook
Name: Demo Hook
Depends: mobilesubstrate
Architecture: iphoneos-arm
Description: Hook the viewDidLoad method in _TtC9Hooktest14ViewController class
Maintainer: yyy Name
Author: yyyy Name
Section: Tweaks
Version: 1.0

The original code is using swift
After the hopper comes out, the target func is as follows

/* @class _TtC9Hooktest14ViewController */

-(void)buttonforhook:(void *)arg2 {
    [self retain];
    Swift._bridgeAnyObjectToAny();
    r0 = sub_1000076c0(0x100011a40);
    r0 = swift_allocObject(r0, 0x40, 0x7);
    r8 = *type metadata for Swift.String;
    *(int128_t *)(r0 + 0x10) = *0x100009b40;
    *(r0 + 0x38) = r8;
    *(int128_t *)(r0 + 0x20) = 0x2073692073696854;
    *(int128_t *)(r0 + 0x28) = 0xef6b6f6f68206f6e;
    Swift.print();
    swift_release(r19);
    sub_1000076fc(&stack[-64]);
    [r20 release];
    return;
}

hook.xm

#import <UIKit/UIKit.h>

%hook _TtC9Hooktest14ViewController

-(void)buttonforhook:(void *)arg2 {

    
    
    NSLog(@"Hook成功");
    %orig;
}
%end

target phone
iphone11pro
ios 14.6
JB unc0ver
Can someone help me please

from monkeydev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.