nanpuhaha

Tweak.xm for SmartPIB

Apr 27th, 2019
402
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %hook MainViewController
  2. -(bool)checkJailBreak {
  3.     return 0;
  4. }
  5. %end
  6.  
  7. %hook BTWCGXMLParser
  8. -(id)checkRooting:(id)arg1 {
  9.     return @"0123456";       // @"0"; or @"0123456";
  10. }
  11. -(id)checkRootingWithRCL:(id)arg1 {
  12.     return @"0";
  13. }
  14. -(id)getEncRootingResult:(id)arg1 {
  15.     return 0;
  16. }
  17. -(bool)isJailBroken {
  18.     return 0;
  19. }
  20. -(id)runningProcesses {
  21.     return 0;
  22. }
  23. %end
  24.  
  25. %hook Codeguard
  26. +(bool)isJailBroken {
  27.     return 0;
  28. }
  29. +(id)checkRooting {
  30.     return @"0123456";     // @"0"; or @"0123456";
  31. }
  32. -(bool)rootingCheck {
  33.     return 0;
  34. }
  35. -(void)setRootingCheck:(bool)arg2 {
  36.     // *(int8_t *)(int64_t *)&self->_rootingCheck = arg2;
  37.     return;
  38. }
  39. -(void)setRootingInfo:(id)arg2 {
  40.     // objc_setProperty(self, _cmd, sign_extend_64(*(int32_t *)ivar_offset(_rootingInfo)), arg2, 0x0, 0x0);
  41.     return;
  42. }
  43. -(id)rootingInfo {
  44.     return r0;
  45. }
  46. -(bool)isBloking {
  47.     return 0;
  48. }
  49. %end
  50.  
  51.  
  52. %hook KSFileUtil
  53. +(int)checkJailBreak {
  54.     return 0;
  55. }
  56. +(void)fileWriteToDocumentWithName:(id)arg1 contents:(char *)arg2 length:(int)arg3 {
  57.     return;
  58. }
  59. +(bool)accessToSpecificDirectory:(id)arg1 {
  60.     return 0;
  61. }
  62. %end
  63.  
  64.  
  65. %hook I3GDeviceInfo
  66. +(id)getJailbreakInfo {
  67.     return @"NO";
  68. }
  69. %end
  70.  
  71.  
  72. %hook BTWCodeGuardManager
  73. -(bool)rootingCheck {
  74.     // r0 = *(int8_t *)(int64_t *)&self->_rootingCheck;
  75.     return 0;
  76. }
  77. -(void)setRootingCheck:(bool)arg2 {
  78.     // *(int8_t *)(int64_t *)&self->_rootingCheck = arg2;
  79.     return;
  80. }
  81. -(id)rootingInfo {
  82.     // r0 = self->_rootingInfo;
  83.     return 0;
  84. }
  85. -(void)setRootingInfo:(id)arg2 {
  86.     objc_setProperty(self, _cmd, sign_extend_64(*(int32_t *)ivar_offset(_rootingInfo)), arg2, 0x0, 0x0);
  87.     return;
  88. }
  89. -(id)jbCheckArray {
  90.     // r0 = self->_jbCheckArray;
  91.     return 0;
  92. }
  93. -(void)setJbCheckArray:(id)arg2 {
  94.     // objc_setProperty(self, _cmd, sign_extend_64(*(int32_t *)ivar_offset(_jbCheckArray)), arg2, 0x0, 0x0);
  95.     return;
  96. }
  97. %end
RAW Paste Data