rivsec / passtry

A library for password spraying
https://riversecurity.eu/
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Deduplicate tasks when args overwritten with URI #20

Closed tasooshi closed 2 years ago

tasooshi commented 2 years ago

For example, -p 80+8080 and ssh://user:P@55w0rd!@127.0.0.1:22 leads to duplicated tasks (for each HTTP port previously).

See test_uri_precedence for details. One solution is to convert tasks back to strings and then use sets to deduplicate. With the added cost of converting the string (splitting) back to digestible form in the executor task; should be faster than searching lists or hashing their elements anyway.