iOS Dev - The Dark Side

318643095c83b914cf80a7f99f247fe6?s=47 Wei Wang
February 03, 2017

iOS Dev - The Dark Side

Some basic of Jail-breaking iOS development. Cydia, Cycript, Theos and more.

318643095c83b914cf80a7f99f247fe6?s=128

Wei Wang

February 03, 2017
Tweet

Transcript

  1. 4.
  2. 5.
  3. 6.

    It seems that "Dark" is not so good... • Fear

    • Despair • Unpresentable • Negative
  4. 8.
  5. 9.
  6. 10.
  7. 11.
  8. 12.
  9. 13.
  10. 17.
  11. 18.

    iOS Sandbox • Apps live in a sandbox. • No

    interacting with the system.
  12. 19.

    iOS Sandbox • Apps live in a sandbox. • No

    interacting with the system. • You can only USE your phone as Apple wanted you to. • But never OWN your phone (if you are a geek).
  13. 21.
  14. 22.

    Jailbreak • Root access of iOS file system. • Install

    apps/software unavailable through App Store.
  15. 26.

    bash> cycript -p LineLive cy> var app = [UIApplication sharedApplication]

    # @"<UIApplication: 0x16530640>" cy> app.delegate # @"<AppDelegate: 0x165384d0>" cy> var appDelegate = new Instance(0x165384d0) # @"<AppDelegate: 0x165384d0>" cy> [appDelegate someMethod]; ...
  16. 35.
  17. 42.

    Demo 3 Theos • Creating a basic tweak. • Makefile

    and modification source. • A real life example of tweak.
  18. 44.

    cycript • One time. Javascript & Objective-C syntax. • Explore

    & Modify by script on fly. Tweak • Hook & replace. Use the power of Cydia Substrate. • Dynamic framework and ldid (Link Identity Editor) signed.
  19. 45.
  20. 48.

    FAQ

  21. 50.

    Is jailbreaking legal? • In 2010, 2012, and 2015, the

    U.S. Copyright Office approved. • Not forbidden or threatened by any government or Apple. • Two jailbreakers have been given positions at Apple. • Apple is "stealing" ideas from JB community. And it helps to improve iOS security.
  22. 51.

    Is jailbreaking legal? But...It's the dark side. • Against EULA.

    • Lose warranty if being jailbroken. (But you can always restore it back into jail.) • So, consider the risk. (or use an old, warranty- exipred device.)
  23. 53.

    Is it safe to use a jailbroken device? • No,

    unless you use it properly. • Change root password. Do not install anything untrusted. • Jailbreak a clean device. Do not bind Apple ID or store sensitive information. • Do not connect it to company network. • Do no evil. Just use it for study and research.
  24. 55.

    Why should I know the dark side of iOS? •

    Do you think your app is perfectly safe? • You could use the skills in normal app development. • It's fun!
  25. 57.

    I am terrified. How could I defend my app from

    dark developers? • Good question as a bright guy! • Learn them and consider your app safety as you are a dark side dev. • And more... (Another story)