ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

Stuck at PyArmor deobfusaction


  • Please log in to reply
Stuck at PyArmor deobfusaction

#1

Aqu4
Aqu4
    Offline
    6
    Rep
    33
    Likes

    TRADER

Posts: 88
Threads: 24
Joined: Sep 13, 2019
Credits: 0

Five years registered
#1

I am reverse engineering my first piece of software and already fixed the "unknown magic numbers" errors.

 

I have run into a block of code that says this and i don't know what to do. Any tips appreciated:

Please Login or Register to see this Hidden Content


  • 2

#2

FaithHF
FaithHF
    Offline
    36
    Rep
    235
    Likes

    SESH

Posts: 408
Threads: 36
Joined: Dec 04, 2016
Credits: 0

Eight years registered
#2

Although I'm not familiar with pyarmor (or much regarding python obfuscation,) I do know that it basically works like this:

 

Please Login or Register to see this Hidden Content

 

Now, again, it's my assumption that the pyarmor runtime, rather than executing data within the function, will simply decrypt the data and shift it down to the offset of 0 (or maybe just call it at the offset for the bytecode.) From there, it'll call the bytecode as a function, finish execution, then finally return/exit the program.

 

My best guess is to maybe play around with the pyarmor runtime and see if you can get it to output anything. Poke around until something moves, I guess. Maybe find a pirated copy of IDA and some python plugins so you can step through and see how the bytecode actually works.

 

Sorry I probably can't be too much help :/


  • 0

#3

tonu96
tonu96
    Offline
    6
    Rep
    40
    Likes

    Addicted

Posts: 211
Threads: 6
Joined: Mar 12, 2019
Credits: 0
Five years registered
#3

Perhaps PyArmor somehow defeats this, but with a decent IDE like PyCharm you should be able to run the software through the debugger and have it show the decompiled code as it's executed. It'll still be obfuscated, but at least you could capture the obfuscated code portion and try to work out what it's doing manually and/or write a script to deobfuscate it.


  • 0

#4

Lavidon
Lavidon
    Offline
    150
    Rep
    685
    Likes

    Jockers best friend

  • PipPipPipPipPipPipPip
Posts: 1739
Threads: 469
Joined: Dec 30, 2016
Credits: 4

Deal with caution
User has an open scam report.
User has joined recently.
Make sure to use a MiddleMan.
Seven years registered
#4

Please Login or Register to see this Hidden Content


If you are lucky enough person was using trial version wich means you can use any lib to run software,idk if that helps you in any way tho.
PS here are docs 

Please Login or Register to see this Hidden Content

,take a look it will give you some clues and good luck :D

 

I am reverse engineering my first piece of software and already fixed the "unknown magic numbers" errors.

 

I have run into a block of code that says this and i don't know what to do. Any tips appreciated:

Please Login or Register to see this Hidden Content


  • 1

i88abQ.gif


#5

leonh03
leonh03
    Offline
    0
    Rep
    0
    Likes

    Advanced Member

Posts: 105
Threads: 0
Joined: Aug 13, 2017
Credits: 0
Seven years registered
#5

thank you bro  i will try this out bro!


  • 0

#6

SkillDima
SkillDima
    Offline
    0
    Rep
    2
    Likes

    New Member

Posts: 22
Threads: 0
Joined: Aug 18, 2018
Credits: 0

Six years registered
#6

any one know how to deobfuscate it?


  • 0


 Users browsing this thread: and 1 guests