I’ve a new project. I want to do my website in HTML and CSS. I’ve begin to code this, but it’s not finished at all. I just post one photo and feel free to comment and say if it’s really horrible. Thank’s 🙂 .
I’ve made three posts that explains you how to begin in iOs jailbreak development and I gave you some code to do basics tweaks. If you want to continue and go further, you can go and see some other source code. There’s a website where you can find a lot of source code, this is TweakWeek.
To see the source code, just click on one tweak and you’ll be on GitHub. Then click on the Tweak.xm file and you’ll have the source code 🙂 .
You can find the source code of some tweak of the french developer M_Vincent_M on his website : Vincentmm.free.fr
I hope that it had helped you.
This time we will change the action when you press the power button. We will just show a little frame with a custom message.
To begin, you have to create a new tweak project with Theos (instructions in the first post). In this tutorial I put the name PowerInject, but like in the others posts, you can choose the name you want. When you have made this, you can go into iFile and go in the directory of your tweak.
Now open the “Tweak.xm” file. Delete all the text that is in it and copy the following code into this :
UIAlertView *powerinjectAlert = [[UIAlertView alloc] initWithTitle:@"PowerInject" message:@"You can't power off your iDevice with this method"
otherButtonTitles:@"Awwwww :"(", nil];
Go back into the Terminal and compile the tweak. Now when you want to turn off your iDevice with the power button, you can’t and you’ll have a beautiful message 🙂 .
The original code and idea of this tweak are from ReverseEffect.
I made a post which explain how to make a basic tweak that changes the color of the screenshot. Now, if you have a good knowledge in Objective-c, you can make others (and better) tweaks.
When you want to make a tweak, you hook a system file to inject a new code to be run. You can hook a lot of different files that make a lot of different things. But to hook a file, you have to know his name and the methods that are in it.
The files are in .h, you can find them in /var/sdk/usr/local/include. The most you will normally use are in /var/sdk/usr/local/include/SpringBoard. To open a file, just tap on it and choose “Text editor” or maybe it will be open without asking that. When you are in it, you can see all the methods (-(void)…).
In the first post, we made a tweak that changes the color of the screenshot. The second line of the code was :
Then we put :
So we were working on the method
-(void)flashColor:(UIColor*)color; that you can see in the file SBScreenFlash.h.
Now you can search into the files (the names are really easy to understand, I mean you understand easily what the file do and it’s the same for the metods).
Enjoy jailbreak development.
You want to begin in iOs jailbreak but you don’t know how? You want to make tweaks and jailbreak apps? You want to do all this things but you don’t have a Mac? So here’s the right place to begin.
Before beginning to read this post, you have to know that it’s better (and recommended) to have a good knowledge in Objective-C if you want to do better tweaks. But you will learn by yourslef too.
- A jailbroken iDevice
- MobileTerminal installed on it
- iFile installed on it
- Theos installed on it (tutorial here).
- Knowledge in Objective-c
Now that you have all these things on your iDevice, we can start.
Now open the MobileTerminal app.
Type : su
Type your ssh password (default password is “alpine” wihtout the “).
Touch the “return” button.
Type : $THEOS/bin/nic.pl
Touch the “return” button.
Now you have to choose what you want to do. In this tutorial we will do a little tweak.
Type : choose phone/tweak (put the number that is between the [ ] )
Touch the “return” button.
Now you choose a project name (BlueFlash for example).
Now the package name (com.devsk0re.blueflash, but you can put your dev name or what you want, but in this form extension.whatyouwant.yourtweakname).
Now you enter the maintainer name (you).
Now type com.apple.springboard.
Your tweak is ready to be written.
Close the MobileTerminal application and open iFile. Go into this directory :
There’s some file. Go into the file called “Tweak.xm”.
Remove all what’s written in it.
Now copy this in the file :
After this, save and close the file “Tweak.xm” and open the file “MakeFile”. If all was done right, you should have the following lines :
TWEAK_NAME = BlueFlash (if you put an other name, there will be the name you choose)
BlueFlash_FILES = Tweak.xm
Add the following line after BlueFlash_FILES = Tweak.xm :
BlueFlash_FRAMEWORKS = UIKit
Now save the file and go into MobileTerminal. Type “su”, your password and then type :
(You can see your folder name in iFile)
Then type :
make package install
Press the “return” button and wait, it will respring and you will have a blue flash for the screenshot instead of white.
The hacker i0n1c, named Stefan Esser, is back on the jailbreak scene. He tweeted a link of his blog to say that he’s back.
He worked on the jailbreak for iOs 4.3.1, 4.3.2 and 4.3.3. He said that maybe a paid jailbreak would be better, but we didn’t heard about this again.
After two years of not blogging and spending way to much time on Twitter, I decided it is time to return to blogging. In the coming next week I will start with several new postings about various iOs kernel exploitation topics, discuss some of my private bugs and techniques that Apple has killed with the iOs 6 update, will discuss some of the new security features and will also drop an iOs 6 kernel 0-day in the near future. So stay tuned…
That’s what he said on his blog.