nano syntax highlighting masks
#1
Rainbow 
[Image: 00qvI67.png]
Made a really simple nanorc file to highlight syntax in mask files if you open them in the nano text editor.
If you make a small mistake like ?? or dd it will highlight it in red.

Instructions
add your .nanorc file:
include "~/.nano/hcmask.nanorc"
command to include:
Code:
echo 'include "~/.nano/hcmask.nanorc"' >> ~/.nanorc

copy this code to ~/.nano/hcmask.nanorc
Code:
# nano syntax highlighting for hashcat hcmask files
syntax "hcmask" "\.hcmask"
# if you want to incluse *.masks add this behind the \.hcmask
# "|\.masks"

color brightblack "\?"
color brightwhite "u"
color yellow "d"
color brightcyan "a"
color brightblue "s"
color green "1"
color cyan "2"
color brightmagenta "3"
color brightyellow "4"

# gives warning
color brightred "\?\?"
color brightred "uu"
color brightred "dd"
color brightred "ss"
color brightred "ll"
color brightred "hh"
color brightred "HH"
color brightred "aa"
color brightred "bb"

If you only want the warnings use the lines below "# gives warning".
Reply


Messages In This Thread
nano syntax highlighting masks - by 2048 - 05-28-2019, 06:33 PM
RE: nano syntax highlighting masks - by philsmd - 05-28-2019, 07:42 PM
RE: nano syntax highlighting masks - by 2048 - 05-29-2019, 10:49 AM