小编Jaf*_*iff的帖子

无法拆解iOS Banking应用程序

我使用漏斗反汇编程序来反汇编iOS应用程序.它适用于大多数应用程序.

然而今天我只是好奇地了解一个银行应用程序,所以我试图拆解它.所以,我将应用程序从我的越狱设备移动到我的mac,当我尝试用漏斗拆卸它时,它只给了我一些无用的东西.

在此输入图像描述

为什么会这样?此银行应用程序的二进制文件是否加密?如果是,那我该怎么解密呢?

他们如何模糊代码?他们的代码与其他应用程序代码有何不同?

我使用iFunbox从我的iPhone到我的mac获取应用程序的可执行文件.以这种方式导出的所有应用程序在拆卸时都没有问题.所以我认为iFunbox会删除DRM.只有这个特定的银行应用程序不起作用.

我甚至尝试过类转储,它只给了我一个名为CDStructures.h的文件.

ida disassembly ios hopper

12
推荐指数
1
解决办法
815
查看次数

设置SKLabelNode的背景颜色?

我想知道有没有办法为SKLabelNode设置背景颜色而不是字体颜色.我正在寻找类似下面提到的代码,可在ios应用程序中找到.

     label.backgroundColor = [UIColor redColor];
Run Code Online (Sandbox Code Playgroud)

ios skspritenode sklabelnode

10
推荐指数
1
解决办法
4308
查看次数

无法在UITableViewCell中访问UIView的图层属性

我有一个奇怪的问题.我创建了一个继承自UITableViewCell的类,其成员为UIView.

@interface MTReportPieChartTableViewCell : UITableViewCell {
    UIView *_colorView;
}
@property (nonatomic, retain) IBOutlet UIView *colorView;
@end
Run Code Online (Sandbox Code Playgroud)

在实现文件中,我想访问colorView的图层属性,但xcode显示"没有完成".

@implementation MTReportPieChartTableViewCell
@synthesize colorView = _colorView;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.colorView.layer.cornerRadius = 3.0f;    // Error occurs in this line
    }
    return self;
}
@end
Run Code Online (Sandbox Code Playgroud)

xcode说"在前向类对象'CALayer'中找不到"属性'cornerRadius'.但是,我可以在其他类中访问cornerRadius.

MTReportPieChartTableViewCell *cell = (MTReportPieChartTableViewCell *) [tableView dequeueReusableCellWithIdentifier:[MTReportPieChartTableViewCell identifier]];
cell.colorView.layer.cornerRadius = 3.0f;    // This line works fine!
Run Code Online (Sandbox Code Playgroud)

为什么会这样!我完全没有任何想法,我在代码中做错了!

objective-c ios

9
推荐指数
2
解决办法
4336
查看次数

在级联2音频文件期间,trackWithMediaType始终返回空数组

我有2个音频文件audioFile1.m4aaudioFile2.m4a.我想创建一个combined.m4a包含audioFile1.m4aaudioFile2.m4a一个接一个的级联音频.我使用下面的代码,我的问题tracksWithMediaType总是返回空数组.audioIds包含音频文件名.

    NSError *error = nil;
    BOOL ok = NO;


    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,    NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];


    CMTime nextClipStartTime = kCMTimeZero;
    //Create AVMutableComposition Object.This object will hold our multiple AVMutableCompositionTrack.
    AVMutableComposition *composition = [[AVMutableComposition alloc] init];

    AVMutableCompositionTrack *compositionAudioTrack = [composition addMutableTrackWithMediaType:AVMediaTypeAudio preferredTrackID:kCMPersistentTrackID_Invalid];

    for (int i = 0; i< [audioIds count]; i++) {
        NSString *audioFileName = [audioIds objectAtIndex:i];

        //Build the filename with path

        NSString *soundOne = …
Run Code Online (Sandbox Code Playgroud)

audio avaudiorecorder ios avaudiofile

5
推荐指数
0
解决办法
131
查看次数

使用 CIDetector 扫描条形码(一维和二维)

我想从实时摄像头和图像中扫描二维码和条形码。我之前使用ZBar库来扫码。它不扫描特定类型的二维码和条形码。此外,苹果的 AVFoundation 框架在从实时摄像头扫描代码时似乎更加快速和准确。

所以我不想使用ZBar。为了扫描从图库中选取的图像中的代码,我使用 CIDetector。但 CIDetector 似乎无法扫描图像中的条形码。我已经在流 CIDetector 的整个堆栈中搜索了其他条形码类型本机从 UIImage 扫描条形码(即不使用 ZBar)

但我还没有找到使用 CIDetector 扫描从图库中挑选的图像条形码的方法。是否可以使用 CIDetector 从 UIImages 扫描条形码?

不建议其他第三方库。我想使用苹果的默认框架来完成这项工作。

-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info
{

     [picker dismissViewControllerAnimated:YES completion:nil];

     UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
     CIImage *img = [[CIImage alloc]initWithImage:image];

     CIDetector* detector = [CIDetector detectorOfType:CIDetectorTypeQRCode context:nil options:@{CIDetectorAccuracy:CIDetectorAccuracyHigh}];
     if (detector) 
    {
        NSArray* featuresR = [detector featuresInImage:img];
        NSString* decodeR;
        for (CIQRCodeFeature* featureR in featuresR) 
        {
            NSLog(@"decode %@ ",featureR.messageString);
            decodeR = featureR.messageString;

            [self showAlertWithTitle:@"Success" withMessage:decodeR];
           return;
         }

    [self showAlertWithTitle:@"Error" withMessage:@"Invalid Image"]; …
Run Code Online (Sandbox Code Playgroud)

qr-code objective-c ios cidetector

5
推荐指数
1
解决办法
3235
查看次数

代码折叠在Xcode 9.0 beta 2中不起作用

我经常在Xcode中使用代码折叠.最近我尝试使用快捷方式在Xcode 9 beta中进行代码折叠Command + alt + left arrow,没有任何反应.

所以我尝试使用菜单栏中的编辑器选项执行相同操作,但似乎禁用了代码折叠选项.如何在Xcode 9中启用代码折叠选项,并使其像Xcode 8一样再次工作.

图片

ios xcode9-beta

5
推荐指数
2
解决办法
2581
查看次数

从mac app可执行文件中删除代码签名

我有一个签名的mac app可执行文件.我初始化NSMutableData了代码签名可执行文件的内容.然后我修改了可执行文件的一部分,并保存了修改后的可执行文件.当我尝试使用此修改后的可执行文件运行原始应用程序时,应用程序崩溃了.

崩溃日志是,

 System Integrity Protection: disabled

 Crashed Thread:        0  Dispatch queue: com.apple.main-thread

 Exception Type:        EXC_CRASH (Code Signature Invalid)
 Exception Codes:       0x0000000000000001, 0x0000000000000000
 Exception Note:        EXC_CORPSE_NOTIFY

 Termination Reason:    Namespace CODESIGNING, Code 0x2 
Run Code Online (Sandbox Code Playgroud)

从崩溃日志中可以清楚地看到它由于无效的代码签名而崩溃.我没有应用程序的源代码,我只是想修复一些人的旧应用程序中的一些错误.

所以我的问题是如何在目标c中删除二进制代码签名?

macos assembly objective-c

2
推荐指数
1
解决办法
1299
查看次数

如何获取 pine 脚本中脚本的当日最高价、最低价、开盘价?

嗨,我对 pine 脚本很陌生。如果我遗漏了一些非常明显的东西,我很抱歉。我试图在给定的脚本上绘制当天的开盘价、最高价、最低价和收盘价。为此,我使用下面的代码。

strategy("Intraday Test Strategy", overlay=true)


dh = security(syminfo.tickerid,"D",high)
do = security(syminfo.tickerid,"D",open)
dl = security(syminfo.tickerid,"D",low)

plot(dh, title="High",color=color.red,linewidth=2,trackprice=true)
plot(do, title="Open",color=color.yellow,linewidth=2,trackprice=true)
plot(dl, title="Low",color=color.green,linewidth=2,trackprice=true)
Run Code Online (Sandbox Code Playgroud)

当我执行此操作时,我看到的只是前一天的高价、开盘价、低价,而不是当天的高价、开盘价、低价。很明显我错过了一些非常基本的东西。如果您能澄清我在这里缺少的内容,我将非常感激。

间谍

正如我们从上面的图片中可以看到的那样,前一天的开盘价、最低价和最高价都被绘制在我需要当天价值的地方。

pine-script

1
推荐指数
1
解决办法
1万
查看次数