资源简介
mac-BaiduNetdiskPlugin.zip
代码片段和文件信息
#import “BaiduNetdisk+Hook.h“
#import “libBaiduNetdiskPlugin.h“
#import “CTSwizzledHelper.h“
@implementation NSobject (BaiduNetdisk)
+ (void)hookBaiduNetdisk
{
ct_hookMethod(objc_getClass(“BandwidthManager“) @selector(request:increaseBytesTransferred:) [self class] @selector(hook_request:increaseBytesTransferred:));
ct_hookMethod(objc_getClass(“BandwidthManager“) @selector(setMaxBytesPerSecond:) [self class] @selector(hook_setMaxBytesPerSecond:));
ct_hookMethod(objc_getClass(“BDUser“) @selector(isSVip) [self class] @selector(hook_isSVip));
ct_hookMethod(objc_getClass(“BDUserPersonalInfo“) @selector(setSvipExpireTime:) [self class] @selector(hook_setSvipExpireTime:));
[[objc_getClass(“FileTransSpeedUpTrialManager“) sharedInstance] resetTrialStatus];
[[objc_getClass(“FileTransSpeedUpTrialManager“) sharedInstance] checkProbationary];
[[objc_getClass(“FileTransSpeedUpTrialManager“) sharedInstance] startTrial];
ct_hookMethod(objc_getClass(“FileTransSpeedUpTrialManager“) @selector(setProbationaryDuration:) [self class] @selector(hook_setProbationaryDuration:));
ct_hookMethod(objc_getClass(“FileTransSpeedUpTrialManager“) @selector(trialToken) [self class] @selector(hook_trialToken));
ct_hookMethod(objc_getClass(“SpeedUpTrialModel“) @selector(setToken:) [self class] @selector(hook_setToken:));
}
- (void)hook_request:(long long)arg1 increaseBytesTransferred:(unsigned long long)arg2;
{
[self hook_request:MAXFLOAT increaseBytesTransferred:MAXFLOAT];
}
- (void)hook_setMaxBytesPerSecond:(unsigned long long)arg1
{
[self hook_setMaxBytesPerSecond:MAXFLOAT];
}
- (BOOL)hook_isSVip
{
return YES;
}
- (void)hook_setSvipExpireTime:(double)arg1
{
NSTimeInterval expireTime = [[NSDate dateWithTimeIntervalSinceNow:10 * 365 * 24 * 60 * 60] timeIntervalSince1970];
[self hook_setSvipExpireTime:expireTime];
}
- (void)hook_setProbationaryDuration:(long long)probationaryDuration
{
[self hook_setProbationaryDuration:MAXFRAG];
}
- (id)hook_trialToken
{
id token = [self hook_trialToken];
NSLog(@“trialtoken = %@“token);
// if (!token) {
// token = [[NSUserDefaults standardUserDefaults] objectForKey:@“token“];
// NSLog(@“localtrialtoken = %@“token);
// }
return token;
}
- (void)hook_setToken:(NSString*)token
{
if (token.length) {
[[NSUserDefaults standardUserDefaults] setobject:token forKey:@“token“];
[[NSUserDefaults standardUserDefaults] synchronize];
}
NSLog(@“token = %@“token);
[self hook_setToken:token];
}
@end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-04-17 10:32 BaiduNetdiskPlugin\
文件 6148 2018-11-29 13:29 BaiduNetdiskPlugin\.DS_Store
目录 0 2019-04-17 10:32 __MACOSX\
目录 0 2019-04-17 10:32 __MACOSX\BaiduNetdiskPlugin\
文件 212 2018-11-29 13:29 __MACOSX\BaiduNetdiskPlugin\._.DS_Store
目录 0 2019-04-10 10:55 BaiduNetdiskPlugin\libBaiduNetdiskPlugin\
文件 1163 2018-10-25 18:38 BaiduNetdiskPlugin\libBaiduNetdiskPlugin\libBaiduNetdiskPlugin.h
目录 0 2019-04-17 10:32 __MACOSX\BaiduNetdiskPlugin\libBaiduNetdiskPlugin\
文件 212 2018-10-25 18:38 __MACOSX\BaiduNetdiskPlugin\libBaiduNetdiskPlugin\._libBaiduNetdiskPlugin.h
文件 259 2018-10-25 18:38 BaiduNetdiskPlugin\libBaiduNetdiskPlugin\main.mm
文件 212 2018-10-25 18:38 __MACOSX\BaiduNetdiskPlugin\libBaiduNetdiskPlugin\._main.mm
文件 878 2018-10-25 18:38 BaiduNetdiskPlugin\libBaiduNetdiskPlugin\Info.plist
文件 212 2018-10-25 18:38 __MACOSX\BaiduNetdiskPlugin\libBaiduNetdiskPlugin\._Info.plist
文件 212 2019-04-10 10:55 __MACOSX\BaiduNetdiskPlugin\._libBaiduNetdiskPlugin
文件 1067 2018-10-25 18:38 BaiduNetdiskPlugin\LICENSE
文件 212 2018-10-25 18:38 __MACOSX\BaiduNetdiskPlugin\._LICENSE
目录 0 2019-04-10 10:55 BaiduNetdiskPlugin\Other\
目录 0 2019-04-10 10:55 BaiduNetdiskPlugin\Other\Screenshots\
文件 393877 2018-10-25 18:38 BaiduNetdiskPlugin\Other\Screenshots\baidubetdiskplugin.png
目录 0 2019-04-17 10:32 __MACOSX\BaiduNetdiskPlugin\Other\
目录 0 2019-04-17 10:32 __MACOSX\BaiduNetdiskPlugin\Other\Screenshots\
文件 212 2018-10-25 18:38 __MACOSX\BaiduNetdiskPlugin\Other\Screenshots\._baidubetdiskplugin.png
文件 11416 2018-10-25 18:38 BaiduNetdiskPlugin\Other\Screenshots\baidubetdiskplugin_2.png
文件 212 2018-10-25 18:38 __MACOSX\BaiduNetdiskPlugin\Other\Screenshots\._baidubetdiskplugin_2.png
文件 478867 2018-10-25 18:38 BaiduNetdiskPlugin\Other\Screenshots\baidubetdiskplugin_1.png
文件 212 2018-10-25 18:38 __MACOSX\BaiduNetdiskPlugin\Other\Screenshots\._baidubetdiskplugin_1.png
文件 212 2019-04-10 10:55 __MACOSX\BaiduNetdiskPlugin\Other\._Screenshots
目录 0 2018-10-25 18:38 BaiduNetdiskPlugin\Other\Products\
目录 0 2018-10-25 18:38 BaiduNetdiskPlugin\Other\Products\Debug\
目录 0 2019-04-10 10:55 BaiduNetdiskPlugin\Other\Products\Debug\libBaiduNetdiskPlugin.fr
文件 18000 2018-10-25 18:38 BaiduNetdiskPlugin\Other\Products\Debug\libBaiduNetdiskPlugin.fr
............此处省略141个文件信息
- 上一篇:哈工大微电子器件教材答案
- 下一篇:算法导论第三版课后答案
相关资源
- 病毒样本.rar
- CEGUI.txt
- pan.txt
- CVPR2018论文979篇.txt
- huabei.zip
- MIMOEqualizeMMSE.docx
- P_MMSE.rar
- P_ZF_SIC.rar
- memory_management.7z
- 基于Multisim10的电子摇号器设计与仿真
- hathitrust.zip
- 说明.txt
- 电力电子课程设计_secret.doc
- C.txt
- officescan.rar
- portal10.5.ecp
- Qimage.rar
- samp2_3.rar
- DropDataControl.rar
- 20.rar
- monihid.c
- sound.properties
- iso.txt
- MaskWindow.zip
- VS2010中文旗舰版(破解版).txt
- probability-sheldon-ross-solution-manual.pdf
- sc.zip
- cn4020026_2422865.zip
- cklover1_10516440.zip
- CorelProductsKeyGen20180618全家桶注册机.
评论
共有 条评论