Skip to content

Instantly share code, notes, and snippets.

@devbug
Created July 29, 2014 04:27
Show Gist options
  • Save devbug/d470599cfdf2159e3358 to your computer and use it in GitHub Desktop.
Save devbug/d470599cfdf2159e3358 to your computer and use it in GitHub Desktop.
StupidHanaNBank
Package: me.devbug.stupidhananbank
Name: StupidHanaNBank
Depends: mobilesubstrate
Version: 0.0.1
Architecture: iphoneos-arm
Description: Patch HanaNBank(v4.01) crash bug
Maintainer: deVbug
Author: deVbug
Section: Tweaks
include theos/makefiles/common.mk
TWEAK_NAME = StupidHanaNBank
StupidHanaNBank_FILES = Tweak.xm
StupidHanaNBank_FRAMEWORKS = Security
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 HanaNBank"
{ Filter = { Bundles = ( "com.hanabank.smart.HanaNBank" ); }; }
// HanaNBank v4.01 bug patch
%hook Keychain
- (id)objectForKey:(id)key {
id rtn = %orig;
if ([key isEqual:(id)kSecValueData] && ![rtn isKindOfClass:[NSData class]]) {
rtn = [NSData data];
}
return rtn;
}
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment