文章预览
鸿蒙HarmonyOS逆向 找到的工具:HapViewer 发行版(https://gitee.com/westinyang/hap-viewer/releases) 查找鸿蒙.hap源码 鸿蒙逆向目前没有完整的逆向工具所以手动逆向。 先将.hap文件后缀更改为.zip解压后就可以看见.hap的文件结构了。 .abc文件类似于安卓的.dex文件,直接用txt文本打开发现并没有进行加密或者混淆源码直接在里面。 发现需要用utf-8可以解决部分中文乱码。 提取出主要的代码: constructor(parent, params, __localStorage, elmtId = -1) { super(parent, __localStorage, elmtId); this.context = getContext(this); this.__message = new ObservedPropertySimplePU('请输入flag', this, "message"); this.__button_name = new ObservedPropertySimplePU('提交', this, "button_name"); this.__flag = new ObservedPropertySimplePU('', this, "flag"); this.__result = new ObservedPropertySimplePU('', this, "result"); this.dialogContro
………………………………