-
Notifications
You must be signed in to change notification settings - Fork 102
Usage
Greg Toombs edited this page Oct 24, 2015
·
7 revisions
These examples assume that mimic has been installed as per the instructions
below. Before installation, invoke via python -m mimic
.
mimic --list # Show all of the homoglyphs
mimic --explain=o # What crazy things can we do with this letter?
mimic --me-harder 100 # Type some lines in and mess with every single char
mimic --reverse # Undo the mayhem. Boooring.
cat somefile | mimic # Pipe some source through at 1%
# Turn up the knob and save the results
cat somefile | mimic --me-harder 25 > mimicked
# Find out exactly where we broke the source
cat mimicked | mimic --check | less
# Now we know the source is broken, so fix it
cat mimicked | mimic --reverse > fixedfile
# This should output nothing (i.e. the files are the same)
diff fixedfile somefile