https://github.com/avdaredevil/closure-set
Finds the closure set for any given character sequence, by traversing the ruleset
https://github.com/avdaredevil/closure-set
Last synced: about 1 month ago
JSON representation
Finds the closure set for any given character sequence, by traversing the ruleset
- Host: GitHub
- URL: https://github.com/avdaredevil/closure-set
- Owner: avdaredevil
- License: mit
- Created: 2016-10-16T00:09:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-31T20:04:31.000Z (over 9 years ago)
- Last Synced: 2025-06-25T05:41:39.062Z (about 1 year ago)
- Language: PowerShell
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Closure-Set
> Finds all closures for a given keyset [**WINDOWS Only**]
## Usage
>
- Open Powershell [*With Admin, if you don't have ExecutionPolicy enabled*]
- If your *execution policy* is not correct, or you have no idea what I'm saying:
- In your shell enter `Set-ExecutionPolicy Bypass`
- This allows script to be allowed to run in your PowerShell console
- Cd to the directory where this script is downloaded
- Copy the rule to your clipboard (the script will read the rules from there!)
- If this isn't done, the script will also ask you for the ruleset on execution
- run `./Closure-Set.ps1`
## Examples
>
- Normal Example [Copy the rules to your clipboard first]:
- Copied my rules [`AB → C, CD → E, EF → G, FG → E, DE → C, and BC → A`]
- run `./Closure-Set.ps1`
- Output:
```powershell
[+] Rules:
[+] AB -> C
[+] CD -> E
[+] EF -> G
[+] FG -> E
[+] DE -> C
[+] BC -> A
Enter Query: ABD
ABCDE
Enter Query:
```
- With Mask [Copy the rules to your clipboard first]:
- Copied my rules [`AB → C, CD → E, EF → G, FG → E, DE → C, and BC → A`]
- run `./Closure-Set.ps1 -Mask`
- Output:
```powershell
[+] Rules:
[+] AB -> C
[+] CD -> E
[+] EF -> G
[+] FG -> E
[+] DE -> C
[+] BC -> A
Enter Query: ABD
CE
Enter Query:
```
## Parameters
>
param | Definition
----- | ----------
-Mask | Only show added characters from the traversal