Questions tagged [cycript]

Cycript allows developers to explore and modify running applications on either iOS or Mac OS X using a hybrid of Objective-C++ and JavaScript syntax through an interactive console that features syntax highlighting and tab completion.

15 questions
9
votes
0 answers

Cycript injection on iOS simulator got a CYPoolError

As the video by Jay Freeman, we can inject the Cyript lib into iOS simulator, to debug our app dynamicly. But when I do the operarion and tried CYListenServer(5432); I got a crash: libc++abi.dylib: terminating with uncaught exception of type…
bazysong
  • 379
  • 2
  • 14
5
votes
3 answers

Detect if Cycript/Substrate or gdb is attached to an iOS app's process?

I am building an iOS app that transmits sensitive data to my server, and I'm signing my API requests as an additional measure. I want to make reverse engineering as hard as possible, and having used Cycript to find signing keys of some real-world…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
5
votes
1 answer

Is Swift resistant against hooking?

Cycript is a console based application that is a blend of Objective-C and JavaScript. Cycript is very useful for dynamic analysis of iOS applications. If you write any methods or the complete ipa with Swift is it still possible to hook the…
3
votes
1 answer

cycript TypeError("undefined is not an object when following tutorial

I am attempting to follow this tutorial - http://resources.infosecinstitute.com/ios-application-security-part-8-method-swizzling-using-cycript/#article Close to the bottom of the article, I am at the part where you…
Borgme
  • 55
  • 6
2
votes
1 answer

Using the Macro SEC_IS_BEING_DEBUGGED_RETURN_NIL in iOS app

I learnt about the below piece of code, which is claimed to prevent Method Swizzling to some extent. #ifndef DEBUG SEC_IS_BEING_DEBUGGED_RETURN_NIL(); #endif But while including in my project for testing, I get an error. Implicit declaration of…
Maheswaran Ravisankar
  • 17,652
  • 6
  • 47
  • 69
1
vote
0 answers

DarwinInjector.cpp[263]: _krncall(mach_vm_read_overwrite) =10000003 *** _assert(status == 0):../Inject.cpp(143):InjectLibrary

I have iPhone 7 with iOs 13.2.3 , I have jailbreaked it and installed cycript as usual, but whenever I want to inject some process, I got this error: cycript -p AppStore [3020] DarwinInjector.cpp[263]: _krncall(mach_vm_read_overwrite)…
woheras
  • 71
  • 1
  • 4
1
vote
1 answer

How does cycript / substrate work to hook into a process?

I am currently doing some research on techniques about hooking mobile applications and came across some frameworks like Xposed (Android), Frida (Android and iOS) and Cycript (iOS). The documentation about Xposed and Frida is fairly good explaining…
0
votes
1 answer

Unable to open database file with using Cycript

I am trying to attach Cycript to a running app on my jailbroken iPhone and I keep getting the following error: *** _sqlcall(sqlite3_open_v2(db, &database_, SQLITE_OPEN_READONLY, NULL)):../Execute.cpp(2157):CYInitializeDynamic 14:unable to open…
genghiskhan
  • 1,095
  • 12
  • 21
0
votes
1 answer

cycript access elements in JavaUtilArrays_ArrayList

I am running cycript on iOS and calling internal API in an App. I have a variable of type JavaUtilArrays_ArrayList returned from a call cy# l "[, , <_FieldDescriptor: 0x170a76200>,…
user1247196
  • 191
  • 11
0
votes
1 answer

In HTML file, how do I link to a cycript file?

I tried this in the head section but doesn't work: Thanks.
Nicoll
  • 257
  • 1
  • 5
  • 16
0
votes
1 answer

Cycript script to run app in background

I have a cycript backboardd script that works great on iOS 7 for modifying an app to continue running in the background. app = [BKProcess processForPid:$PID]; alive = [[BKProcessAssertion alloc] initWithReason:7 identifier:"AppKeepAlive"]; [alive…
Darren
  • 10,182
  • 20
  • 95
  • 162
0
votes
1 answer

Accessing from Cycript

I wan't to be able to use associated objects and ISA swizzle, but I can't figure out how to import objc/runtime.h for use with Cycript. I have tried in both the console and in .js files but no luck. Ideally I'd like to figure out how to include…
Casey
  • 6,531
  • 24
  • 43
0
votes
2 answers

How to attach Cycrypt or gdb before a program start

I am in the middle of PT where application is checking for JailBreak, sooner it starts and the first screen user see is Alert that application is Jailbroken and click okay to exit. My question: Is there a way to attach Cycript before application…
x0rcist
  • 23
  • 1
  • 5
0
votes
1 answer

Pointer to C++ function in Cycript

In cycript, it is possible to get a reference to a c function pointer, but I've been unable to use that syntax to retrieve a pointer to c++ functions using either their proper or mangled function names from the symbol table. Is there a way to get…
JoshRivers
  • 9,920
  • 8
  • 39
  • 39
-1
votes
2 answers

How do I shorten returned coordinates?

Using Cycript (mixed with javascript) via a tweak I have this code: var latitude = [IS2Weather currentLatitude]; This returns -1.65456038607131e+25 I want to limit it to 6 decimal places (-1.654560), what is the correct way to achieve this please?…
Nicoll
  • 257
  • 1
  • 5
  • 16