Advertisement
Guest User

Analysis of `guiinject` iOS adware library

a guest
Oct 18th, 2016
966
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @interface AdvertiseInfo : NSObject
  2.  
  3. @property int randomShow;
  4. @property NSString *hide;
  5. @property NSString *adsNetworkId;
  6. @property NSString *adsNetworkName;
  7. @property NSString *url;
  8. @property NSString *telco_api;
  9. @property NSString *act_type;
  10. @property NSString *body;
  11. @property NSString *title;
  12. @property NSString *dp_type;
  13. @property NSString *ads_id;
  14.  
  15. @end
  16.  
  17.  
  18. @interface MessageInfo : NSObject
  19.  
  20. @property NSString *messageIndex;
  21. @property NSString *createdTime;
  22. @property NSString *allowJb;
  23. @property NSString *loopBaseRevision;
  24. @property NSString *belowRevision;
  25. @property NSString *action2;
  26. @property NSString *button2;
  27. @property NSString *action1;
  28. @property NSString *button1;
  29. @property NSString *message;
  30. @property NSString *id;
  31.  
  32. @end
  33.  
  34.  
  35. @interface API : NSObject
  36.  
  37. @property int iRoundAdsIndex;
  38. @property int iInteAdsIndex;
  39. @property int iFullAdsIndex;
  40. @property int iRoundAdsCnt;
  41. @property int iInteAdsCnt;
  42. @property int iFullAdsCnt;
  43. @property int iRoundAdsInterval;
  44. @property int iInteAdsInterval;
  45. @property int iFullAdsInterval;
  46. @property NSMutableArray *lstRoundAds;
  47. @property NSMutableArray *lstInteAds;
  48. @property NSMutableArray *lstFullAds;
  49. @property NSString *platformId;
  50. @property NSString *serviceProviderId;
  51. @property NSString *productionId;
  52. @property NSString *distributorId;
  53. @property NSString *distributorChannelId;
  54. @property BOOL isError;
  55. @property MessageInfo *message;
  56. @property Config *config;
  57. @property NSString *md5fw;
  58. @property NSString *namefw;
  59. @property NSString *linkfw;
  60. @property NSString *showMessage;
  61. @property NSString *showAds;
  62. @property BOOL isUpdate;
  63. @property NSString *updateUrl;
  64. @property NSString *updateMessage;
  65.  
  66. - (id)selectRoundAds;
  67. - (id)selectInteAds;
  68. - (id)selectFullAds;
  69. - (BOOL)processAPIUpdate:(id)arg1;
  70. - (BOOL)processAPIMessage:(id)arg1;
  71. - (BOOL)processAPIAdvertise:(id)arg1;
  72. - (void)getMessage:(id)arg1 withSelector:(SEL)arg2;
  73. - (void)activeDevice:(id)arg1 withSelector:(SEL)arg2;
  74. - (void)getUpdate:(id)arg1 withSelector:(SEL)arg2;
  75. - (void)messageAction:(int)arg1;
  76. - (void)getAdvertise:(id)arg1 withSelector:(SEL)arg2;
  77. - (id)md5HexDigest:(id)arg1;
  78.  
  79. @end
  80.  
  81.  
  82. @interface RoundAdsController : UIViewController <MFMessageComposeViewControllerDelegate>
  83.  
  84. @property SEL onCloseCallbackSelector;
  85. @property id onCloseCallbackObject;
  86. @property double firstY;
  87. @property double firstX;
  88. @property BOOL isDraging;
  89. @property int iTimerTick;
  90. @property UIView *crrView;
  91. @property UITapGestureRecognizer *gesRecognizer;
  92. @property UIWebView *webview;
  93. @property AdvertiseInfo *selectedAds;
  94. @property(readonly) NSString *debugDescription;
  95. @property(readonly) NSString *description;
  96. @property(readonly) unsigned long long hash;
  97. @property(readonly) Class superclass;
  98.  
  99. - (void)webView:(id)arg1 didFailLoadWithError:(id)arg2;
  100. - (void)webViewDidFinishLoad:(id)arg1;
  101. - (BOOL)webView:(id)arg1 shouldStartLoadWithRequest:(id)arg2 navigationType:(long long)arg3;
  102. - (void)onCloseCallback:(id)arg1 withSelector:(SEL)arg2;
  103. - (BOOL)gestureRecognizer:(id)arg1 shouldRecognizeSimultaneouslyWithGestureRecognizer:(id)arg2;
  104. - (void)handleTapGesture:(id)arg1;
  105. - (void)messageComposeViewController:(id)arg1 didFinishWithResult:(int)arg2;
  106. - (void)sendSMS;
  107. - (void)remove;
  108. - (void)showAds;
  109. - (void)onTimer;
  110. - (void)dragView:(id)arg1;
  111. - (void)standardPosition:(struct CGPoint *)arg1;
  112. - (void)addView;
  113. - (void)show;
  114.  
  115. @end
  116.  
  117.  
  118. @interface MyAlertViewDelegate : NSObject <UIAlertViewDelegate>
  119.  
  120. @property id callback;
  121.  
  122. + (void)showAlertView:(id)arg1 withCallback:(id)arg2;
  123. - (void)alertView:(id)arg1 clickedButtonAtIndex:(long long)arg2;
  124.  
  125. @end
  126.  
  127.  
  128. @interface guiinject : NSObject
  129.  
  130. @property RoundAdsController *roundAdsController;
  131. @property InteAdsController *inteAdsController;
  132. @property API *api;
  133. @property long long eCrrAdsMode;
  134.  
  135. - (BOOL)readConfig;
  136. - (void)onCloseCallbackRoundAds:(id)arg1;
  137. - (void)onCloseCallbackInteAds:(id)arg1;
  138. - (void)onCloseCallbackFullAds:(id)arg1;
  139. - (void)showFullAds;
  140. - (void)showInteAds;
  141. - (void)showRoundAds;
  142. - (void)onTimer;
  143. - (void)onAPIUpdate:(id)arg1;
  144. - (void)onAPIAdvertise:(id)arg1;
  145. - (void)showFb:(id)arg1;
  146. - (void)showAdmob:(id)arg1;
  147. - (void)onAPIMessage:(id)arg1;
  148. - (void)onAPIDeviceActive:(id)arg1;
  149. - (void)alertView:(id)arg1 clickedButtonAtIndex:(long long)arg2;
  150. - (void)processButtonMessage:(int)arg1 action:(id)arg2;
  151. - (void)guiRun;
  152. - (void)appDidEnterForeground;
  153. - (void)downloadButtonPressed:(id)arg1 libname:(id)arg2 md5hash:(id)arg3;
  154. - (void)runLib:(id)arg1;
  155. - (void)_showAlert:(id)arg1 message:(id)arg2;
  156. - (void)showModule;
  157. - (void)_loadPluginAtLocation:(id)arg1;
  158.  
  159. @end
  160.  
  161.  
  162. @interface Config : NSObject
  163.  
  164. @property int waitLoop;
  165. @property NSString *udid;
  166. @property NSString *isJb;
  167. @property NSString *packageName;
  168.  
  169. - (BOOL)getConfig;
  170.  
  171. @end
  172.  
  173.  
  174. @interface InteAdsController : UIViewController
  175.  
  176. @property SEL onCloseCallbackSelector;
  177. @property id onCloseCallbackObject;
  178. @property UITapGestureRecognizer *gesRecognizer;
  179. @property UIWebView *webview;
  180. @property AdvertiseInfo *selectedAds;
  181.  
  182. - (void)webView:(id)arg1 didFailLoadWithError:(id)arg2;
  183. - (void)webViewDidFinishLoad:(id)arg1;
  184. - (BOOL)webView:(id)arg1 shouldStartLoadWithRequest:(id)arg2 navigationType:(long long)arg3;
  185. - (void)onCloseCallback:(id)arg1 withSelector:(SEL)arg2;
  186. - (BOOL)gestureRecognizer:(id)arg1 shouldRecognizeSimultaneouslyWithGestureRecognizer:(id)arg2;
  187. - (void)handleTapGesture:(id)arg1;
  188. - (void)remove;
  189. - (void)show;
  190.  
  191. @end
  192.  
  193.  
  194. @interface FullAdsController : UIViewController
  195.  
  196. @property SEL onCloseCallbackSelector;
  197. @property id onCloseCallbackObject;
  198. @property BOOL bStopLoadingIndicator;
  199. @property UIView *topView;
  200. @property AdvertiseInfo *selectedAds;
  201. @property MBProgressHUD *HUD;
  202. @property UIViewController *prevRootViewController;
  203.  
  204. - (void)webView:(id)arg1 didFailLoadWithError:(id)arg2;
  205. - (void)webViewDidFinishLoad:(id)arg1;
  206. - (BOOL)webView:(id)arg1 shouldStartLoadWithRequest:(id)arg2 navigationType:(long long)arg3;
  207. - (void)myTask;
  208. - (void)loadView;
  209. - (void)onClick:(id)arg1;
  210. - (void)onCloseCallback:(id)arg1 withSelector:(SEL)arg2;
  211. - (id)initWithNibName:(id)arg1 bundle:(id)arg2;
  212.  
  213. @end
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement