Created
July 12, 2021 14:06
-
-
Save forensicmike/3f9886feaea1a23568b250b3cec80200 to your computer and use it in GitHub Desktop.
Add colors to your frida script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const colors = { | |
colorize: (str, cc) => `\x1b${cc}${str}\x1b[0m`, | |
red: str => colors.colorize(str, '[31m'), | |
green: str => colors.colorize(str, '[32m'), | |
yellow: str => colors.colorize(str, '[33m'), | |
blue: str => colors.colorize(str, '[34m'), | |
cyan: str => colors.colorize(str, '[36m'), | |
white: str => colors.colorize(str, '[37m'), | |
}; | |
// Usage: | |
// console.log(colors.yellow('This is a test')); |
Author
forensicmike
commented
Jul 12, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment