Crates.io | ripgen |
lib.rs | ripgen |
version | 0.1.5 |
source | src |
created_at | 2022-01-24 04:02:02.578284 |
updated_at | 2023-12-02 22:57:12.241165 |
description | A rust-based version of the popular dnsgen python utility. |
homepage | |
repository | https://github.com/resyncgg/ripgen |
max_upload_size | |
id | 519990 |
size | 17,471 |
A rust-based version of the popular dnsgen python utility.
ripgen
is split into two main parts:
ripgen_lib
and uses dnsgen's transforms.Installation of ripgen
is very simple - follow the steps below.
Visit https://rustup.rs/ and follow the instructions to get started with rust
and cargo
.
Run cargo install ripgen
ripgen
ripgen
optionally takes a domain file, a wordlist file, and a minimum word length argument.
If no domain file is listed, domains are expected through stdin
making it easy to pipe into from other tools.
e.g.
$ echo "www1.google.com" | ripgen
One deviation from dnsgen's behavior is that if no wordlist is specified then no wordlist items are included automatically. To compare ripgen
and dnsgen
appropriately you should make sure to specify a wordlist.
ripgen_lib
ripgen_lib
exposes a RipGenManager
struct that takes in three components:
&&str
into bool
for the purposes of filtering wordlist entriesAfter creating a RipGenManager
, transforms can be added on with transform
and chain_transform
. These transforms require a function definition (closure or otherwise) be passed in that can take the &DomainComponent
and WordListIterator
types and return an Iterator<Item = String>
.
Look at the non-default dnsgen transform implementations for examples on how these are implemented typically.
linker 'cc' not found
If this happens, it means that you need to install some dependencies on your system to build ripgen
. Here's how to fix that:
sudo apt-get update
sudo apt install build-essential
sudo pacman -S base-devel
sudo yum install gcc
apk add build-base --no-cache