Hacking Question Payload loader for iOS?

naddel81

Well-Known Member
Member
Joined
Dec 14, 2009
Messages
2,552
Trophies
1
XP
3,815
Country
United States
does not everybody have a spare android phone lying around?

FWIW you only need to "kick-start" SX OS every once in a while. sleep mode works fine!
 
Last edited by naddel81,
  • Like
Reactions: OllieD

JustBrandonT

Well-Known Member
Newcomer
Joined
Mar 11, 2018
Messages
75
Trophies
0
Age
34
XP
518
Country
Canada
This is some incredible work, nice! Could you compile an ipa for the version that can choose payloads since TX's OS just came out? It would be very helpful. Installed the ipa that you put and haven't even tested it yet, but I look forward to it. Jailbroken 10.3.3

How do you want to choose the payload? From where? Currently as long as you compile it with a file called "payload.bin" and "intermezzo.bin", it'll use that. If not, then it'll use the built in one. If you want to be able to "choose" a payload, I need to know from where..
 

ConorsFlying

New Member
Newbie
Joined
Jun 21, 2018
Messages
4
Trophies
0
Age
28
XP
145
Country
Australia
What version of iOS do you have?
ios 11

--------------------- MERGED ---------------------------

How do you want to choose the payload? From where? Currently as long as you compile it with a file called "payload.bin" and "intermezzo.bin", it'll use that. If not, then it'll use the built in one. If you want to be able to "choose" a payload, I need to know from where..
How possible would it to load a payload from somewhere on the phone? Like how the PC versions of the playload injectors let you browse for a payload.
 
Last edited by ConorsFlying,

ConorsFlying

New Member
Newbie
Joined
Jun 21, 2018
Messages
4
Trophies
0
Age
28
XP
145
Country
Australia
How do you want to choose the payload? From where? Currently as long as you compile it with a file called "payload.bin" and "intermezzo.bin", it'll use that. If not, then it'll use the built in one. If you want to be able to "choose" a payload, I need to know from where..
@JustBrandonT
or is there some why it could just look for a "payload.bin" at the root of the phone or something like that?
 

unafilsyntax

New Member
Newbie
Joined
Jun 21, 2018
Messages
3
Trophies
0
Age
31
XP
38
Country
United States
How do you want to choose the payload? From where? Currently as long as you compile it with a file called "payload.bin" and "intermezzo.bin", it'll use that. If not, then it'll use the built in one. If you want to be able to "choose" a payload, I need to know from where..

Never compiled an ipa before and suspected there would be an option within the app or ability to put the payload somewhere on the device for the app to search maybe somewhere like /var/mobile/Documents/payloadFolder. I can try to compile but I don't have a mac. Looking to use SX OS payload. If someone could kindly compile an ipa using the payload from Team Xecuter's site for 10.3.3, that would be greatly appreciated. About to order the cable today, probably will get the one that isn't powered as I saw it should work by spamming the reload button.
 
Last edited by unafilsyntax,

Lil_SpazJoekp

Well-Known Member
Newcomer
Joined
Apr 11, 2018
Messages
89
Trophies
0
Age
28
XP
383
Country
United States
ios 11

--------------------- MERGED ---------------------------


How possible would it to load a payload from somewhere on the phone? Like how the PC versions of the playload injectors let you browse for a payload.
I was asking the exact version. iOS 11.0? iOS 11.4? I’m asking because if you do not have a jailbreakable version this will not work.
 

Milad407

New Member
Newbie
Joined
Jun 14, 2018
Messages
2
Trophies
0
Age
28
XP
64
Country
Denmark
How do you want to choose the payload? From where? Currently as long as you compile it with a file called "payload.bin" and "intermezzo.bin", it'll use that. If not, then it'll use the built in one. If you want to be able to "choose" a payload, I need to know from where..
DropBox or HTTP? Unless it’s too much work, i understand you are using your spare time. :yayswitch:
 
  • Like
Reactions: ConorsFlying

matias3ds

Well-Known Member
Member
Joined
Oct 25, 2017
Messages
3,677
Trophies
1
Age
38
XP
9,371
Country
Argentina
Used to love iPhone until I saw the all screen vivo apex and oppo find X ,, now that’s a phone with cutting edge technology also they lack of wireless charging
 

ConorsFlying

New Member
Newbie
Joined
Jun 21, 2018
Messages
4
Trophies
0
Age
28
XP
145
Country
Australia
I was asking the exact version. iOS 11.0? iOS 11.4? I’m asking because if you do not have a jailbreakable version this will not work.
I'm on 11.3.1, I'm aware there isn't a jailbreak currently. I'm hoping that Electra iOS thing eventually comes out. (I'm going to europe for 6 moths and was not planning on bringing a computer and was hoping I could bring a ipa for 11.3.1 (specifically for SX OS) for when I can use it).
I've been trying to learn how to compile the ipa myself but I keep having the "IOTypes.h file not found" issue.
I have added the
"#if __LP64__
typedef un..." thing immediatly after "#include <MacTypes.h>" in the OSTypes file. Honestly have no idea what I'm doing haha

I am having the error in the darwin_usb.h file (in libusb)
 
Last edited by ConorsFlying,

revamp

New Member
Newbie
Joined
Jun 24, 2018
Messages
4
Trophies
0
XP
181
Country
United States
I've tried this on ios 12 beta ip x, it cant detect my switch even though i tried to plug in and out many times and the switch is on rcm mode and seems that this app is not working for me.. or maybe i missed something
 

Ryab

Well-Known Member
Member
Joined
Aug 9, 2017
Messages
3,256
Trophies
1
XP
4,497
Country
United States
You would have to be jailbroke and have a file manager on iOS in order to implement this. It is possible to do this but the system lacks the software to do this as well as having to have the expensive lighting to type c cable
either jailbroken or use filza escaped which is filza for non jailbroken devices it can be found on tweakbox and a few other places
 

Lil_SpazJoekp

Well-Known Member
Newcomer
Joined
Apr 11, 2018
Messages
89
Trophies
0
Age
28
XP
383
Country
United States
I'm on 11.3.1, I'm aware there isn't a jailbreak currently. I'm hoping that Electra iOS thing eventually comes out. (I'm going to europe for 6 moths and was not planning on bringing a computer and was hoping I could bring a ipa for 11.3.1 (specifically for SX OS) for when I can use it).
I've been trying to learn how to compile the ipa myself but I keep having the "IOTypes.h file not found" issue.
I have added the
"#if __LP64__
typedef un..." thing immediatly after "#include <MacTypes.h>" in the OSTypes file. Honestly have no idea what I'm doing haha

I am having the error in the darwin_usb.h file (in libusb)

Okay I think I know what’s going wrong, follow these steps in Xcode:
  1. Click on the project file in the project navigator on the left.
  2. On the ‘General’ page make sure the ‘Deployment Target’ is set to your current iOS version.
  3. Go to the ‘Build Settings’ page.
  4. In the search box type: ‘Architectures’.
  5. Under the first section that pops up, find ‘Base SDK’ and change it to iOS.
  6. Also make sure the ‘Supported Architectures’ option is set to iOS.
  7. Open terminal.
  8. Run these commands:
    1. Code:
      sudo cp -r /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/IOKit.framework
    2. Code:
      sudo cp /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/OSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libkern
    3. Side note: if you are using Xcode beta then you need to change
      Code:
      xcode.app
      to
      Code:
      xcode-beta.app
  9. Add this code to the OSTypes.h file in
    Code:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libkern
    1. Code:
      #if __LP64__
      typedef unsigned int UInt32;
      #else
      typedef unsigned long UInt32;
      #endif
      
      
      #if __LP64__
      typedef signed int SInt32;
      #else
      typedef signed long SInt32;
      #endif

    2. You might have to copy the file to the desktop add it the copy it back. It’s what I had to do.
  10. Now find the Play button on the menu top bar to the far left, go two buttons to the right and click it and choose ‘libusb -> Generic iOS Device’
  11. Hit ‘⌘+B’ to build ‘libusb’
  12. Finally, switch it back to: ‘iOSNXLauncher -> (your device, e.g., “Joel’s iPhone”)’ and hit run.
It should build and run on your iPhone without any Xcode errors. Let me know if you need more help.
 
  • Like
Reactions: ConorsFlying

mologie

Active Member
Newcomer
Joined
Jul 8, 2018
Messages
30
Trophies
0
XP
396
Country
Germany
Hi gents, /r/jailbreak linked me to this thread. We've been working on the same problem in the past few weeks and with the iOS 11.3.1 jailbreak release I could finally complete and test mine. I'll post a write-up on my blog and link to it in this thread soon-ish.

@JustBrandonT I gave your PoC a try on my iPad with iOS 11.3.1, but found that it simply crashes the device while nothing happens on the Switch's end, so there may still be room for collaboration to create one implementation that works on all iOS versions. Ideally I'd aim to support iOS 9 to iOS 11, as these seem to be the most common jailbroken iOS versions out there that can be supported with reasonable effort.
 
  • Like
Reactions: Denitorious

Coldtrain6989XD

Member
Newcomer
Joined
Jul 9, 2018
Messages
23
Trophies
0
XP
75
Country
United States
i mostly would do it just to say that you can, or for people who would normally use nxloader but don't have an android.

Or you could just build a retroarch emulator from their source code if they allow it and create the ios version from there. all you would have to do to allow it on ur ios device is go to settings / General / profile to allow it on non jailbroken or broken devices but building that app to work with apple's swift code is hard to create an profile to allow it because you would also have to create a certificate to allow it to be signed. Anybody get what i'm saying ?
 

coned_miro

Well-Known Member
Newcomer
Joined
Nov 28, 2016
Messages
47
Trophies
0
Age
35
XP
211
Country
United States
Hi gents, /r/jailbreak linked me to this thread. We've been working on the same problem in the past few weeks and with the iOS 11.3.1 jailbreak release I could finally complete and test mine. I'll post a write-up on my blog and link to it in this thread soon-ish.

@JustBrandonT I gave your PoC a try on my iPad with iOS 11.3.1, but found that it simply crashes the device while nothing happens on the Switch's end, so there may still be room for collaboration to create one implementation that works on all iOS versions. Ideally I'd aim to support iOS 9 to iOS 11, as these seem to be the most common jailbroken iOS versions out there that can be supported with reasonable effort.


Are you hosting your code base anywhere like GitHub? I feel this could totally rock a mini filza-esque file browser now that coolstar dropped the jailbreak, it would just have to be implemented - and I'd like to help if you'll have it!

Also, are you just using a generic USB-C to Lightning adapter? I'll need to pick one up
 
Last edited by coned_miro,

Denitorious

Member
Newcomer
Joined
Jun 26, 2018
Messages
14
Trophies
0
Age
30
XP
145
Country
Germany
Hi gents, /r/jailbreak linked me to this thread. We've been working on the same problem in the past few weeks and with the iOS 11.3.1 jailbreak release I could finally complete and test mine. I'll post a write-up on my blog and link to it in this thread soon-ish.

@JustBrandonT I gave your PoC a try on my iPad with iOS 11.3.1, but found that it simply crashes the device while nothing happens on the Switch's end, so there may still be room for collaboration to create one implementation that works on all iOS versions. Ideally I'd aim to support iOS 9 to iOS 11, as these seem to be the most common jailbroken iOS versions out there that can be supported with reasonable effort.

11.3.1 has been jailbroken now as well, many on 9 have upgraded to it as well. I’d prioritize 11.x, anything below is also great for the ones that need it.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: Nobody is reading what you post.