Skip to content
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

Feature request: Inverting characters case #1307

Closed
R-eyes opened this issue Jan 16, 2022 · 6 comments
Closed

Feature request: Inverting characters case #1307

R-eyes opened this issue Jan 16, 2022 · 6 comments
Labels

Comments

@R-eyes
Copy link

R-eyes commented Jan 16, 2022

Hello,

Some obfuscation techniques used by malicious code consist of inverting the case of characters after passing them to base64 or other encoding scheme: (Upper --> Lower and Lower --> Upper)

It would be nice to have a Operation : Inverting characters case

Also, this could be used by the Magic Operation.

Thanks.

@R-eyes R-eyes added the feature label Jan 16, 2022
@R-eyes
Copy link
Author

R-eyes commented Apr 9, 2022

For example :
vgHPCYbcyxnLnJqGBwvHBNmGC29TzxrOAw5NlG==
would become :
VGhpcyBCYXNlNjQgbWVhbnMgc29tZXRoaW5nLg==

@mattnotmax
Copy link
Contributor

Not a single operation but here's a recipe that will do the same.

[{"op":"Fork","args":["","\\n",false]},{"op":"Conditional Jump","args":["[A-Z]",false,"tolowercase",1]},{"op":"To Upper case","args":["All"]},{"op":"Jump","args":["end",1]},{"op":"Label","args":["tolowercase"]},{"op":"To Lower case","args":[]},{"op":"Label","args":["end"]},{"op":"Merge","args":[]},{"op":"Find / Replace","args":[{"option":"Extended (\\n, \\t, \\x...)","string":"\\n"},"",true,false,true,false]}]

@R-eyes
Copy link
Author

R-eyes commented Apr 20, 2022

Nice recipe. Thanks.

@mattnotmax
Copy link
Contributor

ooh, can be done slightly better by forking each character:
[{"op":"Fork","args":["","",false]},{"op":"Conditional Jump","args":["[A-Z]",false,"tolowercase",1]},{"op":"To Upper case","args":["All"]},{"op":"Jump","args":["end",1]},{"op":"Label","args":["tolowercase"]},{"op":"To Lower case","args":[]},{"op":"Label","args":["end"]},{"op":"Merge","args":[]}]

@ParkerM
Copy link
Contributor

ParkerM commented Mar 27, 2023

This has been added in 10.1.0 here: #1499

@R-eyes
Copy link
Author

R-eyes commented Mar 30, 2023

awesome :)
thanks a lot for your help.

@R-eyes R-eyes closed this as completed Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants