import-pandas-as-numpy / pyobfuscate-decoder

Attempts to decode PyObfuscate obfuscation.
MIT License
4 stars 0 forks source link

Err #1

Open Were-Logan-0110 opened 7 months ago

Were-Logan-0110 commented 7 months ago
Traceback (most recent call last):
  File "E:\fbvenv\Auto_Share\pyobfuscate-decoder\pyobfuscate_decoder\decoder.py", line 75, in <module>       
    main()
  File "E:\fbvenv\Auto_Share\pyobfuscate-decoder\pyobfuscate_decoder\decoder.py", line 59, in main
    extracted_payload = extract_payload(args.filename)
  File "E:\fbvenv\Auto_Share\pyobfuscate-decoder\pyobfuscate_decoder\decoder.py", line 12, in extract_payload
    return re.search(bytes_regex, payload)[0]
TypeError: 'NoneType' object is not subscriptable

the obfuscated file share-pro.txt

import-pandas-as-numpy commented 7 months ago

This error is raised due to the regex statement not detecting double quoted byte strings. I will fix this temporarily, but I have an ast aware fix that can be used to circumvent this issue entirely.

Were-Logan-0110 commented 7 months ago

This error is raised due to the regex statement not detecting double quoted byte strings. I will fix this temporarily, but I have an ast aware fix that can be used to circumvent this issue entirely.

okk

Were-Logan-0110 commented 7 months ago

This error is raised due to the regex statement not detecting double quoted byte strings. I will fix this temporarily, but I have an ast aware fix that can be used to circumvent this issue entirely.

i just tried replacing the " and still didnot work it wrote another obfuscated byte string

import-pandas-as-numpy commented 7 months ago

This error is raised due to the regex statement not detecting double quoted byte strings. I will fix this temporarily, but I have an ast aware fix that can be used to circumvent this issue entirely.

i just tried replacing the " and still didnot work it wrote another obfuscated byte string

It is not base case aware, you will need to step through each round of encoding until you reach the final marshalled payload, which will then be emitted in the console. In the future I'd like the opportunity to write this to a .pyc file.

Were-Logan-0110 commented 7 months ago

This error is raised due to the regex statement not detecting double quoted byte strings. I will fix this temporarily, but I have an ast aware fix that can be used to circumvent this issue entirely.

i just tried replacing the " and still didnot work it wrote another obfuscated byte string

It is not base case aware, you will need to step through each round of encoding until you reach the final marshalled payload, which will then be emitted in the console. In the future I'd like the opportunity to write this to a .pyc file.

image

import-pandas-as-numpy commented 7 months ago

I'll have to test this a bit more. I'll take care of this in the coming days.