Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.56 KB | None | 0 0
  1. #import <UIKit/UIKit.h>
  2. #import "Hack.h"
  3. #import"HackManager.h"
  4. @class Hack;
  5. @class HackManager;
  6.  
  7. #define PLIST_PATH @"/var/mobile/Library/Preferences/com.infection.plist"
  8.  
  9. #define CURRENTDNAPOINTSHACK 0
  10. #define LETHALITYHACK 1
  11. #define VISIBILITYHACK 2
  12. #define GEMSHACKS 3
  13.  
  14. HackManager *hackmanager = nil;
  15.  
  16. %hook AppController
  17. -(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12
  18. {
  19.     struct AllowedOrientations supportedOrientations = MakeInitialOrientations();
  20.     supportedOrientations.landscapeLeft = true;
  21.     supportedOrientations.landscapeRight = true;
  22.  
  23.     hackmanager = [[HackManager alloc]initWithDictPath:PLIST_PATH hackerName:@"Curry" coordX:10 coordY:20 andOrientation:UIInterfaceOrientationLandscapeRight andSupportedOrientations:supportedOrientations];
  24.  
  25.     [hackmanager addHackWithKey:@"currentdnapoint" andName:@"Currentdnapoints" andType:NUMBER];
  26.     [hackmanager addHackWithKey:@"lethality" andName:@"Lethality" andType:NUMBER];
  27.     [hackmanager addHackWithKey:@"visiblilty" andName:@"Visiblity" andType:NUMBER];
  28.     [hackmanager addHackWithKey:@"gems" andName:@"Gems" andType:NUMBER];
  29.      return %orig;
  30. }
  31. %end
  32.  
  33. %hook DNAWallet
  34. -(int)currentDNAPoints
  35. {
  36.     [[hackmanager getHackValueAtIndex:CURRENTDNAPOINTSHACK]intValue];
  37. }
  38. %end
  39.  
  40. %hook DiseaseTrait
  41. -(float)visibility
  42. {
  43.     [[hackmanager getHackValueAtIndex:VISIBLITYHACK]floatValue];
  44. }
  45.  
  46. -(float)lethality
  47. {
  48.     [[hackmanager getHackValueAtIndex:LETHALITYHACK]floatValue];
  49. }
  50. %end
  51.  
  52. %hook GemWallet
  53. -(int)gems
  54. {
  55.     [[hackmanager getHackValueAtIndex:GEMSHACK]intValue];
  56. }
  57. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement