Closed kpcyrd closed 2 years ago
[sn0int][rescope] > # our existing database [sn0int][rescope] > select domains #1, "sn0int.com" #2, "example.com" #3, "github.com" # this one is unscoped [sn0int][rescope] > [sn0int][rescope] > # add some autonoscope rules [sn0int][rescope] > autonoscope list [sn0int][rescope] > [sn0int][rescope] > autonoscope add domain . [sn0int][rescope] > autoscope add domain com [sn0int][rescope] > autonoscope add domain example.com [sn0int][rescope] > [sn0int][rescope] > autonoscope list noscope domain "example.com" scope domain "com" noscope domain "." [sn0int][rescope] > [sn0int][rescope] > # run a rescope [sn0int][rescope] > rescope [*] Loaded 3 rules [-] updating entity true => false: Domain { id: 2, value: "example.com", unscoped: false } [+] updating entity false => true: Domain { id: 3, value: "github.com", unscoped: true } [?] Apply 2 changes to scope now? [y/N]: y [+] Applying now: 2 changes [sn0int][rescope] > [sn0int][rescope] > # show updated database again [sn0int][rescope] > select domains #1, "sn0int.com" #2, "example.com" # this one is unscoped #3, "github.com" [sn0int][rescope] >
@HerrSpace
@HerrSpace