Using newline character as part of mask attack
#3
[heh, yeah - what philsmd said. Smile ]
Are you getting an error, by any chance?

I think if you use --hex-charset, hashcat expects the other literals in the mask to either also be hex or else to be mask chars. Otherwise, you get:

Code:
Invalid hex character detected in mask user?1pass

So this works (-3 used to visually more easily distinguish between ?l and the custom mask):

Code:
$ echo -n '757365720a70617373' | xxd -p -r
user
pass[no newline]
$ echo -n '757365720a70617373' | xxd -p -r |  md5sum
c67110f0e2285e0c7fe4e540006f1691  -

$ hashcat --quiet -a 3 -m 0 --hex-charset -3 0a c67110f0e2285e0c7fe4e540006f1691 '?1?1?1?1?3?1?1?1?1'

c67110f0e2285e0c7fe4e540006f1691:$HEX[757365720a70617373]

And this works:

Code:
hashcat --quiet --potfile-path=/dev/null -a 3 -m 0 --hex-charset -1 0a c67110f0e2285e0c7fe4e540006f1691 '75736572?170617373'
c67110f0e2285e0c7fe4e540006f1691:$HEX[757365720a70617373]
~


Messages In This Thread
RE: Using newline character as part of mask attack - by royce - 04-22-2018, 07:34 AM