__ __ ___ _____
/ / / / / / |/ / _ | v1.0.0
/ /_/ /_/ / / __ |
/____|____/_/|_/_/ |_| SA
Luna can run any batch of bash scripts in Parallel, collect results, store them in JSON format and find them with Regex.
- Install Rust
- Compile code with
cargo build --release
For building statically linked rust binary read this link and here
minimum size:
RUSTFLAGS='-C target-feature=+crt-static -C link-arg=-s -C panic=abort -C codegen-units=1' cargo build --target x86_64-unknown-linux-musl --release
+ UPX
Luna 0.9.0
SAoirse <https://github.com/xaoirse>
A Reconnaissance Tool
USAGE:
luna [OPTIONS] <SUBCOMMAND>
OPTIONS:
-h, --help Print help information
-i, --input <INPUT> Json file's path [default: luna.json]
--no-backup Save without backup!
-o, --output <OUTPUT> Default output is input!
-q, --quiet Quiet mode
-t, --threads <THREADS> Number of threads
-V, --version Print version information
SUBCOMMANDS:
check
dnsgen
find
help Print this message or the help of the given subcommand(s)
import
insert
remove
report
script
server
stat
${program}
${domain}
${cidr}
${sub}
${url}
Example:
curl -I ${url}
subfinder -d ${domain}
asset
title
sc
resp
tag
severity
value
Example:
(?P<asset>.+)
- Create a script file like
script.sh
:
( regex for parsing results see this )
[ commands see this] (Be cautious when using tools that produce colorful output)
regex = (?P<asset>.+)
subfinder -d ${sub} # sub1.sample.com -> sub
regex = (?P<asset>(?:\w+)://\S+) \[(?P<sc>\d*)\] \[(?P<title>[^\]]*)\] \[(?P<tag>[^\]]*)\]
echo ${sub} | ./httpx -nc -silent -sc -title -ip -td
- Insert some scopes (see helps):
luna insert asset google.com -p google
- Run script:
luna script script.sh
- Find subs with regex (use
(?-a)
for case sensitive):
luna find sub --program google
- log levels: debug, error, info
RUST_LOG=error luna insert asset blah
- Clap : Command Line Argument Parser for Rust.
- Rayon: A data-parallelism library for Rust.
- Regex: A library for parsing, compiling and executing regular expressions.
- ...
Yes, I use it. There may be bugs, so I try to fix them.
I want a standalone binary release of my code.
- Use
- Share your idea
- File Issue
- Pull Request
- ...
- Enhance Performance
- Tests
- Docs
- WebServer
- Report system
- Script validateor
- Cache system
- Update and delete mechanism
- Limit for parallel requests to prevent rate limit
- Worldlist
- Custom inputs for script
- Save bash file scripts in json or each field? job model
- Regex test tool (subcommand)
- Reduce release size
- Filter by date
- Find -vvv flags
- Remove all clones
- No-backup flag
- Label or tag for vulnerabilities
- Import file
- Number of urls, subs and ... for each program stringify
- Update_at updates every time!
- Global search
- Insert from file
- Graceful shutdown
- Pause and Resume (OMG!)
- Progress bar
- Remove tech
- Update dependencies
- Benchmarks
- Tests
- Job
- [High] Concurrent access? Lock luna.json and then import?
- Aggregating Cidrs should aggregate tags or separate cidrs from assets
- Time-based auto-saving
- Bring regexes to luna?
- assets from redirect
- Refactor