Skip to content

Commit

Permalink
Update ==> 更新微信v6.6.0 && 生成包含游戏作弊的dylib
Browse files Browse the repository at this point in the history
  • Loading branch information
TKkk-iOSer committed Dec 18, 2017
1 parent 5183822 commit 9e9c6b8
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 89 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ include $(THEOS)/makefiles/common.mk

TWEAK_NAME = robot
robot_FILES = $(wildcard src/*.m) src/Tweak.xm
robot_CFLAGS = -fobjc-arc
robot_OBJCFLAGS = -Wno-error

include $(THEOS_MAKE_PATH)/tweak.mk

Expand Down
Binary file modified Others/robot.dylib
Binary file not shown.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@

设置界面:

<img src="./Others/ScreenShots/Setting-01.jpg" height="500" hspace="20" style="display: inline-block"> <img src="./Others/ScreenShots/Setting-02.jpg" height="500" hspace="20" style="display: inline-block">
<img src="./Others/ScreenShots/Setting-03.jpg" height="500" hspace="20" style="display: inline-block"> <img src="./Others/ScreenShots/Setting-02.jpg" height="500" hspace="20" style="display: inline-block">


---

### 安装

~~详细安装方法可参考[iOS 逆向 - 微信 helloWorld](http://www.jianshu.com/p/04495a429324)~~
~~详细安装方法可参考[iOS 逆向 - 微信 helloWorld](http://www.tkkk.fun/2017/03/19/%E9%80%86%E5%90%91-%E5%BE%AE%E4%BF%A1helloWorld/)~~

#### 0. 准备

Expand All @@ -53,8 +53,7 @@
#### 2. 生成注入的app文件

* 可直接通过百度云下载
链接: https://pan.baidu.com/s/1c120oww 密码: 95bx(微信版本为6.5.16)
链接: https://pan.baidu.com/s/1bL1oei 密码: grbi (微信版本 6.5.17)
链接: https://pan.baidu.com/s/1o7UBqL8 密码: f71u (微信版本 6.6.0)

* 若想修改源码,生成新的dylib,可在修改之后执行`make`,之后拷贝生成的dylib(~~路径为`./theos/obj/debug/robot.dylib`~~),最后执行 `./Others/autoInsertDylib.sh ipa文件路径 dylib文件路径` 即可获得注入dylib的app文件。

Expand Down
9 changes: 7 additions & 2 deletions src/WeChatRobot.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ typedef NS_ENUM(NSUInteger, TKArrayTpye) {
TKArrayTpyeMsgUserName
};

@class MMTableViewInfo;

#pragma mark - MODEL

@interface CMessageWrap : NSObject
@property(nonatomic, assign) unsigned long m_uiGameType; // 1、猜拳; 2、骰子; 0、自定义表情
@property(nonatomic, assign) NSInteger m_uiGameType; // 1、猜拳; 2、骰子; 0、自定义表情
@property(nonatomic, assign) unsigned long m_uiGameContent;
@property(nonatomic, strong) NSString *m_nsEmoticonMD5;
@property(nonatomic) long long m_n64MesSvrID;
Expand Down Expand Up @@ -136,6 +138,7 @@ typedef NS_ENUM(NSUInteger, TKArrayTpye) {
- (void)AddLocalMsg:(id)arg1 MsgWrap:(id)arg2 fixTime:(_Bool)arg3 NewMsgArriveNotify:(_Bool)arg4;
- (void)AsyncOnSpecialSession:(id)arg1 MsgList:(id)arg2;
- (id)GetHelloUsers:(id)arg1 Limit:(unsigned int)arg2 OnlyUnread:(BOOL)arg3;
- (void)AddEmoticonMsg:(NSString *)msg MsgWrap:(CMessageWrap *)msgWrap;
// new
- (void)addAutoVerifyWithArray:(NSArray *)ary arrayType:(TKArrayTpye)type;
- (void)addAutoVerifyWithMessageInfo:(NSDictionary *)info;
Expand Down Expand Up @@ -177,6 +180,8 @@ typedef NS_ENUM(NSUInteger, TKArrayTpye) {
@end

@interface NewSettingViewController: MMUIViewController

@property(nonatomic, strong) MMTableViewInfo *m_tableViewInfo; //
- (void)reloadTableData;
@end

Expand Down Expand Up @@ -265,4 +270,4 @@ typedef NS_ENUM(NSUInteger, TKArrayTpye) {

@interface GameController : NSObject
+ (NSString*)getMD5ByGameContent:(NSInteger) content;
@end
@end
5 changes: 2 additions & 3 deletions src/zhFullView.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ - (void)setModels:(NSArray<zhIconLabelModel *> *)models {
}
}
}];

_models = models;
[self startAnimationsCompletion:NULL];
}

- (void)fullViewClicked:(UITapGestureRecognizer *)recognizer {
__weak zhFullView *_self = self;
zhFullView *_self = self;
[self endAnimationsCompletion:^(zhFullView *fullView) {
if (nil != self.didClickFullView) {
_self.didClickFullView((zhFullView *)recognizer.view);
Expand Down Expand Up @@ -193,4 +193,3 @@ - (void)endAnimationsCompletion:(void (^)(zhFullView *))completion {
}

@end

29 changes: 15 additions & 14 deletions src/zhIconLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ - (instancetype)initWithFrame:(CGRect)frame {
_iconView = [[UIImageView alloc] init];
_iconView.userInteractionEnabled = YES;
[self addSubview:_iconView];

_textLabel = [[UILabel alloc] init];
_textLabel.userInteractionEnabled = NO;
_textLabel.numberOfLines = 0;
_textLabel.textColor = [UIColor darkGrayColor];
_textLabel.font = [UIFont systemFontOfSize:12];
_textLabel.textAlignment = NSTextAlignmentCenter;
[self addSubview:_textLabel];

_horizontalLayout = NO;
_autoresizingFlexibleSize = NO;
}
Expand All @@ -36,30 +36,30 @@ - (instancetype)initWithFrame:(CGRect)frame {

/// 水平布局
- (void)horizontalLayoutSubviews {

CGFloat sideLength = self.frame.size.height - self.imageEdgeInsets.top - self.imageEdgeInsets.bottom;
_iconView.frame = CGRectMake(self.imageEdgeInsets.left, self.imageEdgeInsets.top, sideLength, sideLength);

if (_textLabel.text.length > 0) {

CGFloat x = CGRectGetMaxX(_iconView.frame) + self.imageEdgeInsets.right;
CGFloat h = self.frame.size.height;
CGSize size = [_textLabel sizeThatFits:CGSizeMake(MAXFLOAT, h)];
CGFloat y = (self.frame.size.height - size.height) / 2;

if (_autoresizingFlexibleSize) {
if (_sizeLimit > 0) { // 限宽
if (size.width > _sizeLimit) size.width = _sizeLimit;
}
_textLabel.frame = CGRectMake(x, y, size.width, size.height);

CGRect frame = self.frame;
frame.size.width = _textLabel.frame.origin.x + _textLabel.frame.size.width;
self.frame = frame;
} else {
_textLabel.frame = CGRectMake(x, y, size.width, size.height);
}

} else {
if (_autoresizingFlexibleSize) {
CGRect frame = self.frame;
Expand All @@ -73,29 +73,29 @@ - (void)horizontalLayoutSubviews {
- (void)verticalLayoutSubviews {
CGFloat sideLength = self.frame.size.width - self.imageEdgeInsets.left - self.imageEdgeInsets.right;
_iconView.frame = CGRectMake(self.imageEdgeInsets.left, self.imageEdgeInsets.top, sideLength, sideLength);

if (_textLabel.text.length > 0) {

CGFloat y = CGRectGetMaxY(_iconView.frame) + self.imageEdgeInsets.bottom;
CGFloat w = self.frame.size.width;
CGFloat h = self.frame.size.height - y;

if (!_autoresizingFlexibleSize) {
_textLabel.frame = CGRectMake(0, y, w, h);
} else {

CGSize size = [_textLabel sizeThatFits:CGSizeMake(w, h)];
CGFloat x = (self.frame.size.width - size.width) / 2;
if (_sizeLimit > 0) { // 限高
if (size.height > _sizeLimit) size.height = _sizeLimit;
}
_textLabel.frame = CGRectMake(x, y, size.width, size.height);

CGRect frame = self.frame;
frame.size.height = _textLabel.frame.origin.y + _textLabel.frame.size.height;
self.frame = frame;
}

} else {
if (_autoresizingFlexibleSize) {
CGRect frame = self.frame;
Expand All @@ -108,6 +108,7 @@ - (void)verticalLayoutSubviews {
- (void)setModel:(zhIconLabelModel *)model {
_textLabel.text = model.text;
_iconView.image = model.icon;
_model = model;
}

- (void)updateLayoutBySize:(CGSize)size finished:(void (^)(zhIconLabel *))finished {
Expand Down
4 changes: 2 additions & 2 deletions src/zhPopupController.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ typedef NS_ENUM(NSInteger, zhPopupSlideStyle) {

@interface zhPopupController : NSObject

@property (nonatomic, weak) id <zhPopupControllerDelegate> _Nullable delegate;
@property (nonatomic, strong) id <zhPopupControllerDelegate> delegate;

/// Convenient to initialize and set maske type. (Through the `- init` initialization, maskType is zhPopupMaskTypeBlackTranslucent)
+ (instancetype)popupControllerWithMaskType:(zhPopupMaskType)maskType;
Expand All @@ -63,7 +63,7 @@ typedef NS_ENUM(NSInteger, zhPopupSlideStyle) {
@property (nonatomic, assign) CGFloat maskAlpha; // When set maskType is zhPopupMaskTypeBlackTranslucent vaild.

/// default is YES. if NO, Mask view will not respond to events.
@property (nonatomic, assign) BOOL dismissOnMaskTouched;
@property (nonatomic, assign) BOOL dismissOnMaskTouched;

/// default is NO. if YES, Popup view disappear from the opposite direction.
@property (nonatomic, assign) BOOL dismissOppositeDirection; // When `layoutType = zhPopupLayoutTypeCenter` is vaild.
Expand Down
Loading

0 comments on commit 9e9c6b8

Please sign in to comment.