psudohash icon indicating copy to clipboard operation
psudohash copied to clipboard

[New feature] Reverse keywords

Open t3l3machus opened this issue 2 years ago • 1 comments
trafficstars

Create mutations of the reversed version of the keyword(s) as well.

t3l3machus avatar May 17 '23 07:05 t3l3machus

hey @t3l3machus , I would love to work on this. Could you please assign me the issue?

prbhtkumr avatar Jul 01 '23 07:07 prbhtkumr

Would this work for you?

below https://github.com/t3l3machus/psudohash/blob/238a76851713f849227aa5eb6be7f1782bafb914/psudohash.py#L62 add

parser.add_argument("-rev", "--reverse", action="store_true", help="Also generate mutations of each keyword reversed (character order)")

above https://github.com/t3l3machus/psudohash/blob/238a76851713f849227aa5eb6be7f1782bafb914/psudohash.py#L687 add

if args.reverse:
         keywords.extend(k[::-1] for k in keywords)
         keywords = list(dict.fromkeys(keywords))

L1-0 avatar Jul 15 '25 10:07 L1-0