我在尝试爬取xxyoga的一些数据做我的毕业设计数据分析,但是在获取习练历程的时候出现了一个动态cookies校验。我尝试逆向了整个app来获取cookies的远程获取代码,在查找到了setcookies并且使用androidkiller中的insert log在这些地方分别插入了log信息输出,编译就出现了问题。即使删除了这些代码也没有办法继续恢复正常编译。报错如下:
当前 Apktool 使用版本:Android Killer Default APKTOOL
正在编译 APK,请稍等...
>I: Using Apktool 2.4.1
>I: Smaling smali folder into classes.dex...
>Exception in thread "main" org.jf.util.ExceptionWithContext: Exception occurred while writing code_item for method Lkotlin/internal/RequireKotlinVersionKind;->values()[Lkotlin/internal/RequireKotlinVersionKind;
> at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:917)
> at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:341)
> at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:297)
> at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:61)
> at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36)
> at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:418)
> at brut.androlib.Androlib.buildSources(Androlib.java:349)
> at brut.androlib.Androlib.build(Androlib.java:301)
> at brut.androlib.Androlib.build(Androlib.java:268)
> at brut.apktool.Main.cmdBuild(Main.java:251)
> at brut.apktool.Main.main(Main.java:79)
>Caused by: org.jf.util.ExceptionWithContext: Error while writing instruction at code offset 0x2
> at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1190)
> at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:913)
> ... 10 more
>Caused by: org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65536
> at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116)
> at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:356)
> at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1150)
> ... 11 more
请问我应该如何修正这个问题?以及应当如何定位cookies位置来获取访问指定url的位置以获取cookies?
apk获取:链接:https://pan.baidu.com/s/1VfSsLwyqnhbw04GjBuRtjg
提取码:153t
复制这段内容后打开百度网盘手机App,操作更方便哦
我已经尝试了DMS获取按钮id但是没能获取到任何按钮信息并且电脑变得非常卡,且常常会死机(电脑配置:联想拯救者y720内存16g)这是正常现象吗?