Jump to content

niro

Senior Member
  • Posts

    372
  • Joined

  • Last visited

Posts posted by niro

  1. I get this response after doing part 3:

     

    HTTP/1.1 200 OK

    Date: Tue, 18 Aug 2015 00:37:55 GMT

    Content-Type: application/json

    Connection: keep-alive

    X-Powered-By: PHP/5.5.25

    Server: cloudflare-nginx

    CF-RAY: 21798d8e2a8a0520-SEA

    Content-Length: 63

     

    {"error":"Could not get coins for user account.","errorcode":0}

     

    Do I need to install an app or something on my iPhone first?

    Yeah sign in first on iPhone or register it through burp and the requests I've included

  2. Hey so I'm trying to fix an issue with lag for Kik but can't seem to figure it out, I'm trying to block all mom acsii characters but it only works if I have the literal string of characters and as "lag codes" come out everyday for Kik that's difficult so if possible, I want to block every message that has that certain character in it.. So an example would be

     

    %hook HybridSmileyLabel

     

    - (void)setText(id)arg1

    {

    [arg1 ifStringisEqualTo : @"a"] arg1 = @"SPAM";

    return %orig;

    }

    %end

     

    So I know the signs aren't in the right places but that should be give a clear example :3

    Now what I want is everything with "a" in it to be blocked so

     

    - (void)setText(id)arg1

    {

    [arg1 ifStringisEqualTo : @"abcedfg"] arg1 = @"SPAM";

    return %orig;

    }

    %end

     

    I want that to be blocked as well since it has the character "a" in it, hopefully that explains it :/? Thank you

  3. Post the code please :)

    //code//
    
    @interface SettingsOptionBase : NSObject
    @property(nonatomic, retain) NSString *optionKey;
    @property(nonatomic, retain) KESettingsViewController *KEManager;
    @end
    
    
    @interface SettingsOptionLabel : SettingsOptionBase
    - (id)initWithHeight:(double)arg1 text:(id)arg2;
    @end
    
    //code//
    
    %subclass KESettingsViewController : SettingsPane
    
    - (void)loadView
    {
      %orig;
      UIViewController *con = self.navigationController.previousViewController;
    
      if ([con isKindOfClass:%c(ProfileChatInfoViewController)])
      {
        ProfileChatInfoViewController *profVC = (ProfileChatInfoViewController *)con;
        self.username = profVC.user.username;
      }
    }
    
    - (void)viewDidLoad
    {
      %orig;
      self.title = @"K8 Settings";
    }
    
    %new
    - (NSString *)username
    {
      return objc_getAssociatedObject(self, @selector(username));
    }
    
    %new
    - (void)setUsername:(NSString *)value
    {
      objc_setAssociatedObject(self, @selector(username), value, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
    }
    
    %new
    - (void)saveOption:(NSObject *)obj forKey:(NSString *)key
    {
      saveOptionForKey(obj, key, self.username);
      [self reloadSettingsOptions];
    }
    
    %new
    - (NSObject *)getOptionForKey:(NSString *)key
    {
      return getOptionForKey(key, self.username);
    }
    
    - (id)initWithCore:(id)core
    {
      self = %orig;
      self.username = kGlobalUser;
      // [self setup];
      return self;
    }
    
    %new
    - (NSArray *)generateSettingsOptions
    {
      NSArray *newArr =
      @[
      ];
    
      NSMutableArray *mutableNewArr = [NSMutableArray arrayWithArray:newArr];
      if (![self.username isEqualToString:kGlobalUser]) // not global
      {
        //code//
      }
      if ([self.username isEqualToString:kGlobalUser]) // global only
      {
        //code//
        [mutableNewArr addObject:[[[%c(SettingsOptionLabel) alloc] initWithHeight:90 text:
      @"test"] autorelease],
      }
    
      // [newArr addObject:[[%c(SettingsOptionSubPane) alloc] initWithTitle:@"Kik8 Options" iconImage:nil subPaneClass:%c(KESettingsViewController)]];
    
      return (NSArray *)mutableNewArr;
    }
    
    %new
    - (void)dealloc
    {
      // [self.tableView release];
      [self.username release];
    
      // [super dealloc];
    }
    
    %end
    
    
  4. addObject to what instance of a class, usually its addSubview to add to a UIView or a UIViewController

    I think I did viewDidLoad and i put the UIabel in an NSArray

     

    so it was -(NSArray *)generateSettingsOption

     

    BLAH BLAH UI LABEL

  5. hey! so recenlty ive ran into a problem, im trying to add UILabels, and ive been adding them with addObject:BLAH BLAH BLAH, well it works on idevices newer than the iphone 5s but everything under crashes instantly! If anyone might know what the problem is off top of their head that would be sweet :) if not i can post the code :p thanks

     

    skype - @kekigotrekt

    kik - @a3t

     

    or just respond here :p

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines