2012. 8. 8. 19:13ㆍ제2외국어/iOS
탈옥하게 되면 깔리게되는 내부 파일을 검사하는 방법과 포트를 검사하는 방법 2가지 방법이 있다고 합니다.
1. 디렉토리/파일 존재 여부 검사
/Applications/Cydia.app
/Applications/RockApp.app
/Applications/Icy.app
/usr/sbin/sshd
/usr/bin/sshd
/usr/libexec/sftp-server
/Applications/WinterBoard.app
/Applications/SBSettings.app
/Applications/MxTube.app
/Applications/IntelliScreen.app
/Library/MobileSubstrate/DynamicLibraries/Veency.plist
/Applications/FakeCarrier.app
/Library/MobileSubstrate/DynamicLibraries/LiveClock.plist
/private/var/lib/apt
/Applications/blackra1n.app
/private/var/stash
/private/var/mobile/Library/SBSettings/Themes
/System/Library/LaunchDaemons/com.ikey.bbot.plist
/System/Library/LaunchDaemons/com.saurik.Cydia.Startup.plist
/private/var/tmp/cydia.log
/private/var/lib/cydia
샘플 Code '/Applications/Cydia.app'
// 탈옥 체크
UIAlertView *alter_ok = [[UIAlertView alloc]initWithTitle:@"Confirm" message:@"This is not Jailbreak phone" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
UIAlertView *alter_error = [[UIAlertView alloc]initWithTitle:@"Confirm" message:@"This is Jailbreak phone" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
NSString *filePath = @"/Applications/Cydia.app";
if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]){
// 탈옥했음!
NSLog(@"Cydia Existed. JailBroken #2");
[alter_error show];
}else{
NSLog(@"Normal");
[alter_ok show];
}
2. 포트검사 : 21번, 22번, 23번
소켓 프로그래밍 써야될듯? 더 간단한 방법을 찾아봐야겠다.
'제2외국어 > iOS' 카테고리의 다른 글
[iOS]UINavigationController에서 데이터 넘길 때 (0) | 2012.09.14 |
---|---|
Naming is important!!! (1) | 2012.09.11 |
WWDC2012에 대한 기대 (0) | 2012.06.08 |
[Customize] 4. UIAlertView (0) | 2012.04.24 |
[Customize] 3. Tabbar (2) | 2012.04.13 |