{"id":13530987,"url":"https://github.com/mhasbini/duprule","last_synced_at":"2025-04-06T03:19:37.975Z","repository":{"id":45932935,"uuid":"64414123","full_name":"mhasbini/duprule","owner":"mhasbini","description":"Detect \u0026 filter duplicate hashcat rules","archived":false,"fork":false,"pushed_at":"2025-01-14T23:21:31.000Z","size":76,"stargazers_count":43,"open_issues_count":4,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-01T19:37:03.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhasbini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-28T17:14:27.000Z","updated_at":"2025-03-18T00:51:10.000Z","dependencies_parsed_at":"2025-04-01T19:32:57.610Z","dependency_job_id":"aac493f6-4a4f-450a-85d3-3eb6f7f8a86d","html_url":"https://github.com/mhasbini/duprule","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhasbini%2Fduprule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhasbini%2Fduprule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhasbini%2Fduprule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhasbini%2Fduprule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhasbini","download_url":"https://codeload.github.com/mhasbini/duprule/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427396,"owners_count":20937272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:00:58.790Z","updated_at":"2025-04-06T03:19:37.965Z","avatar_url":"https://github.com/mhasbini.png","language":"Rust","funding_links":[],"categories":["Hashcat"],"sub_categories":["Rule tools"],"readme":"# duprule\n\n![](https://travis-ci.org/0xbsec/duprule.svg?branch=master)\n\n# What\n\nRemove duplicate Hashcat rules.\n\n# How does it works ?\n\nTL;DR: Each rule change is mapped, and a unique id is generated for each rule with functions count.\n\nThe mechanism is like this:\n\n- A blank map is created with N ( from 1 to 36 ) slots.\n- Each rule change will be applied to the map.\n    Example rule: 'u', will change all characters cases from '?' ( unknown ) to 'u' ( upper case ).\n    'sab', will add {'a' -\u003e 'b'} to the map. And same logic apply for the other rules.\n- An id is generated from the map.\n- The ids are compared to detect duplicate rules.\n- The rule with the least functions count will be selected.\n\n# Which rules are supported ?\n\nAll rules on [this page](https://hashcat.net/wiki/doku.php?id=rule_based_attack) are supported except:\n\n    - Memory rules: X, 4, 6, M\n    - Reject plains rules\n    - L, R, +, -\n    - E, e\n\n# Usage\n\n```\nRemove duplicate Hashcat rules.\n\nUsage:\n    duprule [options] \u003c input\n\n\nReads input from STDIN and prints to STDOUT.\n\nOptions:\n    -o, --output      optional\t file to write duplicate rules to\n    -v, --version     optional\t print version info\n    -h, --help        optional\t print this help message\n    -s, --supported   optional\t list all supported rules\n\nExamples:\n\nduprule \u003c rockyou.rule \u003e rockyou.rule.uniq\nduprule -o duplicates.txt \u003c rockyou.rule \u003e rockyou.rule.uniq\n```\n\n# Installation\n\nduprule is written in Rust.\n\n```\n# run dev after clonning:\ncargo run \u003c input.rule\ncargo run \u003c input.rule -- -o duplicates.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhasbini%2Fduprule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhasbini%2Fduprule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhasbini%2Fduprule/lists"}