-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] pyobfuscate not being detected/deobfuscated properly #49
Comments
This seems to have been further obfuscated after the pyobfuscate, if not a different obfuscation schema entirely. I'll look into it and see if this should be added into the existing pyobfuscate deobf, or be its own thing entirely. |
Seemingly pyobfuscate uses a new schema. Generated 3 samples earlier and none were deobfuscated. Tested with a simple one line program ( Tested on latest version @ a1c7ee2
apologies in advance for the sample, it ends up breaking markdown so trying to use code tags is annoying Obfuscated sample, formatted with `black`
Using a longer script, it generated the following to run the payload: fromstring1 = "-_+!1@2#3$4%5^6&7*8(9)0qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFG"
alphanumeric = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
lIlllllIl = "ihQlwp=="
lIIIIIlI = "e2)dtYTmyh)Eym=="
IlIlIlIIIIllI = "uq*h%(p="
IllIIllIlll = "+p=="
def fromb64(base64str):
fromstring = (
"-_+!1@2#3$4%5^6&7*8(9)0qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFG".encode()
)
alphanum = (
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".encode()
)
translatedbytes = bytes.maketrans(fromstring, alphanum)
return base64.b64decode(base64str.translate(translatedbytes)).decode()
import zlib
exec(
zlib.decompress(bytes.fromhex(payload.replace("!", "").replace("\n", ""))).decode(
"utf-8"
)
) I'm confident enough saying that this is a new version/schema of pyobfuscate. |
https://inspector.pypi.io/project/whoisbuild/1.0.1/packages/91/2b/0be0b33c7a81a7bd66820ac29d02245f6b90efbecd8729d100de73cd3bae/whoisbuild-1.0.1.tar.gz/whoisbuild-1.0.1/whoisbuild/utils.py
For some reason this
pyobfuscate
sample is not being detected nor deobfuscated properly even if the obfuscation schema is supplied explicitly.The text was updated successfully, but these errors were encountered: