CyberChef
CyberChef copied to clipboard
Feature request: Inverting characters case
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.
For example : vgHPCYbcyxnLnJqGBwvHBNmGC29TzxrOAw5NlG== would become : VGhpcyBCYXNlNjQgbWVhbnMgc29tZXRoaW5nLg==
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]}]
Nice recipe. Thanks.
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":[]}]
This has been added in 10.1.0 here: #1499
awesome :) thanks a lot for your help.