Rust reimplementation of https://github.com/sniner/adnix for educational purposes
e15b35878d
Flake lock file updates: • Updated input 'crane': 'github:ipetkov/crane/27025ab71bdca30e7ed0a16c88fd74c5970fc7f5?narHash=sha256-3Iv1PGHJn9sV3HO4FlOVaaztOxa9uGLfOmUWrH7v7%2BA%3D' (2024-05-09) → 'github:ipetkov/crane/5b0b062ff0357ee207bc47df34c64a0047b5d9ec?narHash=sha256-wLa2QVd9o8Kw58mDtoRn9RUgYgN8Zvl30wn%2BlSBMi64%3D' (2024-05-19) • Updated input 'fenix': 'github:nix-community/fenix/297c756ba6249d483c1dafe42378560458842173?narHash=sha256-ezoe/FwfJpA7sskLoLP2iwfwkYnscEFCP6Vk5kPwh9k%3D' (2024-05-10) → 'github:nix-community/fenix/a4b7a4acfb44ee78785b0b53667066a9b1e32245?narHash=sha256-FJJMYOmzST4gOiOo4g5XicKKALv8SWqqk2kntpIF3NM%3D' (2024-05-18) • Updated input 'fenix/rust-analyzer-src': 'github:rust-lang/rust-analyzer/5bf2f85c8054d80424899fa581db1b192230efb5?narHash=sha256-vLLgYpdtKBaGYTamNLg1rbRo1bPXp4Jgded/gnprPVw%3D' (2024-05-09) → 'github:rust-lang/rust-analyzer/83ba42043166948db91fcfcfe30e0b7eac10b3d5?narHash=sha256-EyjtjocGLtB7tqyqwBfadP4y5BBtT5EkoG3kq/zym5U%3D' (2024-05-16) • Updated input 'nixpkgs': 'github:msfjarvis/nixpkgs/4afe10593a7771e1bb07fd2e1caf3607b15328d6?narHash=sha256-OP4fcISjwvzvWkxcS6DPuYLm2AnG4/xkDm3SKlHe0xI%3D' (2024-05-11) → 'github:msfjarvis/nixpkgs/742d640177b7a7ef64576b918a0ad215fcbd4c15?narHash=sha256-3ddSM67PJD6/Lv68RPnZUMM6Rp4J4ObjpTRiraMydDk%3D' (2024-05-18) |
||
---|---|---|
.github | ||
.idea | ||
src | ||
test_data | ||
wix | ||
.git-blame-ignore-revs | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md | ||
default.nix | ||
flake.lock | ||
flake.nix | ||
oranda.json | ||
rust-toolchain.toml | ||
shell.nix |
README.md
adnix-rs
Rust reimplementation of sniner/adnix for educational purposes.
Installation
adnix is available on crates.io and you can install it through cargo.
cargo install adnix
Usage
USAGE:
adnix [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-f, --formatter <STRING> Formatter [default: dnsmasq] [possible values: dnsmasq, dnsmasq-server, unbound]
--address <ADDRESS> IPv4 address [default: 127.0.0.1]
--v6address <ADDRESS> IPv6 address [default: ::1]
-o, --output <OUTPUT> Output file
-s, --sources_file <STRING> File to read "name|source url" mappings from
Sample sources file for use with adnix.
Yoyo|http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext
Malware Domain List|http://www.malwaredomainlist.com/hostslist/hosts.txt