[iOS] Functions Hooking

What Functions? iOS ์•ฑ์„ ์ง„๋‹จํ•˜๋‹ค ๋ณด๋ฉด ํƒˆ์˜ฅ์„ ํƒ์ง€ํ•˜๋Š” ํŠน์ • ๋ฒ„์ „์ด ์žˆ์„ ์ˆ˜๋„ ์žˆ๊ณ  ์–ด๋–ค ํ•จ์ˆ˜๋ฅผ ํ†ตํ•ด ๋””๋ฐ”์ด์Šค ๋‚ด๋ถ€๋ฅผ ๊ฒ€์‚ฌํ•˜๋Š”์ง€ ์กฐ๊ธˆ์”ฉ ๋‹ค๋ฆ…๋‹ˆ๋‹ค. ๊ทธ์ค‘์—์„œ ๋Œ€ํ‘œ์ ์œผ๋กœ NSFileManager ํด๋ž˜์Šค์˜ "fileExistsAtpath:"๋ฅผ ํ†ตํ•ด ํ˜„์žฌ ์‹คํ–‰๋œ ๋””๋ฐ”์ด์Šค ๋‚ด๋ถ€์— ํƒˆ์˜ฅ๊ณผ ๊ด€๋ จ๋œ ๋””๋ ‰ํ† ๋ฆฌ ๋˜๋Š” ํŒŒ์ผ์ด ์กด์žฌํ•˜๋Š”์ง€ ์ฒดํฌ ํ›„ Boolean ๋ฐ˜ํ™˜์„ ์ง„ํ–‰ํ•˜๋Š” ๋ฐฉ๋ฒ•๊ณผ UIApplication ํด๋ž˜์Šค์˜ "canOpenURL:" ํ•จ์ˆ˜๋ฅผ ํ†ตํ•ด ํƒˆ์˜ฅ๊ณผ ๊ด€๋ จ๋œ ์•ฑ์ด ์กด์žฌํ•˜๋Š”์ง€ URL Scheme ํ˜ธ์ถœํ•˜๋Š” 2๊ฐ€์ง€ ๋ฐฉ์‹์ด ์กด์žฌํ•ฉ๋‹ˆ๋‹ค. Example ์ฝ”๋“œ NSString *filePath = @"/Applications/Cydia.app"; if ([[NSFileManager defaultManager] f..

MOBILE