Morsmalleo / AhMyth

Cross-Platform Android Remote Administration Tool | Official maintained repository for the AhMyth R.A.T Project | A dedicated revival of the original repository at https://GitHub.com/AhMyth/AhMyth-Android-RAT
GNU General Public License v3.0
828 stars 208 forks source link

binding report: Unsigned Short Value Out of Range #568

Open Morsmalleo opened 4 months ago

Morsmalleo commented 4 months ago

Payload Options

binding issue description

i am using a existing apk, i go to build it and it gets to the building apk part in the command center. but then it says failed.

Error logs

Error: Command failed: java -jar "C:\Users\Trey\AppData\Local\Programs\AhMyth\resources\app.asar.unpacked\app\Factory\apktool.jar" b "C:\Users\Trey\Desktop\test" -o "C:\Users\Trey\AhMyth\Output\Ahmyth.apk" --use-aapt2 ""
Exception in thread "main" org.jf.util.ExceptionWithContext: Exception occurred while writing code_item for method Landroid/arch/lifecycle/c$a;->values()[Landroid/arch/lifecycle/c$a;
    at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:1058)
    at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:354)
    at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:309)
    at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:58)
    at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
    at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:437)
    at brut.androlib.Androlib.buildSources(Androlib.java:368)
    at brut.androlib.Androlib.build(Androlib.java:320)
    at brut.androlib.Androlib.build(Androlib.java:287)
    at brut.apktool.Main.cmdBuild(Main.java:263)
    at brut.apktool.Main.main(Main.java:82)
Caused by: org.jf.util.ExceptionWithContext: Error while writing instruction at code offset 0x2
    at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1331)
    at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:1054)
    ... 10 more
Caused by: org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65764
    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:1291)
    ... 11 more

Solution

No response

Additional context

No response

Acknowledgements

Morsmalleo commented 1 month ago

This was reposted for another user.

Unfortunately I haven't managed to get to work on this yet, but I will so everyone be patient 😊

IXSENPA1XI commented 1 month ago

yea ima delete my issue submission cause im just getting the same thing after i manually inspected my log file

Morsmalleo commented 1 month ago

yea ima delete my issue submission cause im just getting the same thing after i manually inspected my log file

Appreciate you helping me keep this issues section clean, I hope to have this sorted out by the next release which I'm working on currently as we speak