Skip to content
  • Categories
  • Recent
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Slate)
  • No Skin
Collapse
Brand Logo

hashpwn

  1. Home
  2. Tools
  3. Scripts
  4. rulest - GPU Rules Extractor

rulest - GPU Rules Extractor

Scheduled Pinned Locked Moved Scripts
29 Posts 2 Posters 1.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A1131A
    A1131A
    A1131
    Trusted
    wrote on last edited by
    #21

    Phase 3 GA improvements

    • Novelty‑weighted fitness – Chains not found by Phase 1/S/2 get a 2× bonus during selection → drives GA toward new rules, not rediscovered ones.

    • Unexplored‑seed initial population – The 40 % Phase‑S fill slot prefers chains absent from known_rules; known seeds only as fallback. Depth‑3+ chains biased (70 %) when --max-depth ≥ 3.

    • Dedicated time reservation – 20 % of --target-hours (min 120 s) reserved for GA before Phase 2 starts → GA always gets meaningful runtime.

    • Stagnation guard – No fitness improvement for 5 generations → bottom 30 % of population replaced with fresh random chains (depth‑3+ biased).

    • Depth‑2 warning – Warns that Phase 2 already covers depth‑2 exhaustively → GA adds nothing at depth 2; recommends --max-depth ≥ 3.

    • Functional‑signature registry – Tracks equivalence classes via built‑in probe set. Novelty bonus is functionally aware – equivalent variants get no bonus.

    • Adaptive mutation – If mutated chain falls into a known signature class, up to 2 extra escape mutations applied to break out.

    • Signature‑based offspring filter – Offspring still covered after adaptive mutation → replaced by a fresh random chain (depth‑3+ biased).

    • Honest raw‑hit merging – Stores raw (un‑bonused) hit counts for output; novelty bonus only affects selection.

    • Genuinely novel reporting – Log shows both total GA hits and how many were truly new (absent from known_rules at GA start).

    Amateur of mycology and hashcracking | 1x3060Ti | 1x1050Ti
    PGP:4B0A386530D789157435DC7489138FB52FDD7FC1

    1 Reply Last reply
    0
    • A1131A
      A1131A
      A1131
      Trusted
      wrote on last edited by
      #22

      Benchmarks of GA and the new stage 0 (rule extraction using token strip) are available here

      Amateur of mycology and hashcracking | 1x3060Ti | 1x1050Ti
      PGP:4B0A386530D789157435DC7489138FB52FDD7FC1

      1 Reply Last reply
      0
      • A1131A
        A1131A
        A1131
        Trusted
        wrote on last edited by
        #23

        The Bloom filter — previously one of the slowest parts of tool startup — is now built on the GPU in a seconds, regardless of how large the target wordlist is. The CPU used to grind through it word by word; the GPU does it all at once. If your hardware doesn't support it, it silently falls back to the old way.

        Amateur of mycology and hashcracking | 1x3060Ti | 1x1050Ti
        PGP:4B0A386530D789157435DC7489138FB52FDD7FC1

        1 Reply Last reply
        0
        • A1131A
          A1131A
          A1131
          Trusted
          wrote on last edited by
          #24

          rulestv3 is out

          • Single-file engine → modular package
          • new exact coverage evaluation
          • CELF greedy selection that maximises unique password recovery instead of raw hit count

          https://github.com/A113L/rulest/releases/tag/v3

          Amateur of mycology and hashcracking | 1x3060Ti | 1x1050Ti
          PGP:4B0A386530D789157435DC7489138FB52FDD7FC1

          1 Reply Last reply
          👍
          0
          • A1131A
            A1131A
            A1131
            Trusted
            wrote on last edited by
            #25

            Benchmark comparison (same corpus)

            Single-run results on base = hashmob.mini, target = hashmob.medium
            (time-to-result comparison of obtaining similar rule counts: hcrt.pages.dev/debug_rules_efficiency
            Full benchmark table: Google Sheet)

            Ruleset Cover Size Eff.
            rulest.greedy.150000.rule 36.12% 150000 0.2408
            rulest.freq.150000.rule 28.02% 150000 0.1868
            rulest.greedy.50000.rule 29.78% 50000 0.5956
            rulest.freq.50000.rule 20.25% 50000 0.4050
            rulest.greedy.25000.rule 24.91% 25000 0.9964
            rulest.freq.25000.rule 15.99% 25000 0.6396
            rulest.greedy.10000.rule 19.71% 10000 1.971
            rulest.freq.10000.rule 11.44% 10000 1.144
            rulest.greedy.1500.rule 10.45% 1500 6.9667
            rulest.freq.1500.rule 4.61% 1500 3.0733
            rulest.greedy.250.rule 5.06% 250 20.24
            rulest.freq.250.rule 1.73% 250 6.92
            rulest.greedy.64.rule 2.10% 64 32.8125
            rulest.freq.64.rule 0.88% 64 13.75

            Amateur of mycology and hashcracking | 1x3060Ti | 1x1050Ti
            PGP:4B0A386530D789157435DC7489138FB52FDD7FC1

            1 Reply Last reply
            0
            • A1131A
              A1131A
              A1131
              Trusted
              wrote on last edited by A1131
              #26

              Early benchmark of rulest_heap* rules after tool update.

              Ruleset Cover Count Eff.
              rulest_heap.150000.rule 37.96% 150,001 0.2531
              rulest.greedy.150000.rule 36.12% 150,000 0.2408
              rulest.freq.150000.rule 28.02% 150,000 0.1868
              rulest_heap.50000.rule 33.02% 50,001 0.6604
              rulest.greedy.50000.rule 29.78% 50,000 0.5956
              rulest.freq.50000.rule 20.25% 50,000 0.4050
              rulest_heap.25000.rule 29.59% 25,001 1.1836
              rulest.greedy.25000.rule 24.91% 25,000 0.9964
              rulest.freq.25000.rule 15.99% 25,000 0.6396
              rulest_heap.10000.rule 24.72% 10,001 2.4718
              rulest.greedy.10000.rule 19.71% 10,000 1.9710
              rulest.freq.10000.rule 11.44% 10,000 1.1440
              rulest_heap.5000.rule 20.98% 5,001 4.1952
              rulest_heap.1500.rule 15.46% 1,501 10.2998
              rulest.greedy.1500.rule 10.45% 1,500 6.9667
              rulest.freq.1500.rule 4.61% 1,500 3.0733
              rulest_heap.250.rule 9.00% 251 35.8566
              rulest.greedy.250.rule 5.06% 250 20.2400
              rulest.freq.250.rule 1.73% 250 6.9200
              rulest_heap.64.rule 4.77% 65 73.3846
              rulest.greedy.64.rule 2.10% 64 32.8125

              They fall a bit short of the better ones, but not bad considering the rules were obtained in just one hour and semi-generated. The dictionaries I used were hashmob.mini (base) and hashmob.medium (target), with all settings enabled:

              Ruleset Cover Count Eff.
              concentrator_MT_50000.rule 36.71% 50,000 0.7342
              ORTRTS.rule 35.80% 48,439 0.7391
              rulest_heap.50000.rule 33.02% 50,001 0.6604
              concentrator_MT_25000.rule 31.82% 25,000 1.2728
              rulest_heap.25000.rule 29.59% 25,001 1.1836
              concentrator_MT_5000.rule 23.38% 5,000 4.6760
              rulest_heap.5000.rule 20.98% 5,001 4.1952
              concentrator_MT_64.rule 4.92% 64 76.8750
              rulest_heap.64.rule 4.77% 65 73.3846
              concentrator_MT_64.skull.optimized.rule 4.28% 64 66.8750
              • --token-strip
              • --token-strip-max-prefix=8
              • --token-strip-max-suffix=8
              • --genetic
              • --genetic-generations=400
              • --genetic-pop=800
              • --target-hours=0.5 (default)
              • --select-mode=greedy

              The remaining stages were enabled by default.

              Amateur of mycology and hashcracking | 1x3060Ti | 1x1050Ti
              PGP:4B0A386530D789157435DC7489138FB52FDD7FC1

              1 Reply Last reply
              0
              • A1131A
                A1131A
                A1131
                Trusted
                wrote on last edited by
                #27

                rulest v3.2 – GPU-Resident CELF

                Major update focused on performance and memory:

                • Full GPU-resident CELF (no more coverage matrix)
                • Memory for 14.37M targets: ~6.85 GiB -> ~114 MiB (~61x less)
                • Adaptive batch size based on VRAM
                • Much faster: (RTX 3060 Ti 8 GB, ~132k base, ~14.37M targets), CELF setup (heap build) - ~40 min -> ~1 min, full selection (150k rules, ~700k candidates): ~15 min instead of ~40 min

                Local-search removed. Output format unchanged.

                https://github.com/A113L/rulest/releases/tag/v3.2

                Amateur of mycology and hashcracking | 1x3060Ti | 1x1050Ti
                PGP:4B0A386530D789157435DC7489138FB52FDD7FC1

                1 Reply Last reply
                0
                • A1131A
                  A1131A
                  A1131
                  Trusted
                  wrote on last edited by
                  #28

                  Improvement introducing batched, precise re-evaluation of candidates in the CELF algorithm

                  By using a profiler and implementing optimizations during the initial candidate-counting stage of the CELF+heap process, we have managed to accelerate this stage of rulest by ~38%.

                  Selection (CELF greedy)          13:13   33.6%  (620.5 candidates/s)
                  score calls=533,785 (batched=64,128, singleton=469,657), candidates=2,759,654; wall time=471.294 s; host allocation=2.361 s; host enqueueing=81.524 s; GPU kernel=293.786 s; H2D=0.516 s; filling=7.462 s; readback=2.024 s; wait for synchronization=315.712 s; average time per call=0.88 ms
                  Selection (CELF greedy)          08:11   24.0%  (1,006.0 candidates/s)
                  score calls=525,423 (batched=88,982, singleton=436,441), candidates=2,833,397; wall time=409.614 s; host allocation=1.458 s; host enqueueing=74.758 s; GPU kernel=303.370 s; H2D=0.502 s; filling=6.669 s; readback=1.039s; synchronization wait=311.601s; avg wall/call=0.78ms
                  
                  • Time saved: 5.02 min
                  • Reduction in stage duration: 38.23%

                  What has changed

                  • The CELF algorithm continues to use simplified upper bounds (based on raw hits) to discard candidates.
                  • Candidates whose refined upper bounds still allow for a result better than the current best are now evaluated precisely and in batches - using a dedicated bitmap row of target IDs for each candidate.
                  • For the winning candidate, an additional registration scan is performed to retrieve the exact target IDs. The gain obtained this way is verified against the precise gain calculated during the batch process before the coverage state is committed.
                  • The OpenCL compute kernel supports three modes: fast upper-bound estimation, batch calculation of precise gains, and precise evaluation of a single candidate, including hit registration for the winner.
                  • The ProcessEngineProxy component issues the command to use this new precise-counting mode, while maintaining the CELF algorithm's execution on the previously selected single GPU.
                  • The method for allocating the coverage matrix remains unchanged: the full "candidate–target" coverage matrix is ​​not created.

                  Ability to roll back changes (rollback)

                  Batch-based, precise re-evaluation of candidates is enabled now by default. To use the legacy CELF-style re-evaluation (rescore) path, you must set this environment variable before running the program.

                  RULEST_CELF_EXACT_BATCH=0
                  

                  Please be aware, however, that for a period of 2–5 minutes, the rule processing rate will start/drop to 0 rules per second (depending on the heap load - specifically, how many "dead" candidates with inflated upper bounds caused by duplicates - reside at the top of the heap, ahead of the winning rule).

                  Amateur of mycology and hashcracking | 1x3060Ti | 1x1050Ti
                  PGP:4B0A386530D789157435DC7489138FB52FDD7FC1

                  1 Reply Last reply
                  0
                  • A1131A
                    A1131A
                    A1131
                    Trusted
                    wrote last edited by
                    #29

                    Changelog

                    Latest update — CELF optimization

                    Improved

                    • Batch small CELF exact-scoring workloads where safe to reduce repeated GPU calls.
                    • Expanded CELF profiling to distinguish upper-bound checks, exact scoring, and result recording.
                    • Improved live CELF progress reporting with selection and runtime statistics.
                    • Retained the existing greedy selection behavior and scoring logic.

                    RULEST Control Center

                    Added

                    • Password-protected access with session management.
                    • LAN access for other devices on the same network.
                    • GPU/OpenCL diagnostics and controls for Token Strip and Genetic Algorithm stages.
                    • Live logs, current-phase monitoring, and log clearing.
                    • File uploads for BASE, TARGET, and optional seed rules.
                    • Automatic cleanup of uploaded input files after a run stops or finishes.

                    Improved

                    • Updated dark interface and application branding.
                    • Clearer run controls and progress information.

                    rulest1.jpg

                    rulest2.jpg

                    Amateur of mycology and hashcracking | 1x3060Ti | 1x1050Ti
                    PGP:4B0A386530D789157435DC7489138FB52FDD7FC1

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    homogenous-expeditionary
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent