Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the tool RustScan #228

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sources/assets/zsh/history.d/rustscan
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rustscan --addresses "$TARGET" --scripts custom --ulimit 5000
rustscan --addresses "$TARGET" --greppable
rustscan --addresses "$TARGET" --ports 80,443,8080
rustscan --addresses "$TARGET" --top
17 changes: 17 additions & 0 deletions sources/install/package_network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,22 @@ function install_ligolo-ng() {
add-to-list "ligolo-ng,https://github.com/nicocha30/ligolo-ng,An advanced yet simple tunneling tool that uses a TUN interface."
}

function install_rustscan() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing RustScan"
git -C /opt/tools/ clone --depth 1 https://github.com/RustScan/RustScan.git
cd /opt/tools/RustScan
# Sourcing rustup shell setup, so that rust binaries are found when installing cme
source "$HOME/.cargo/env"
cargo build --release
# Clean dependencies used to build the binary
rm -rf target/release/{deps,build,.fingerprint}
ln -s /opt/tools/RustScan/target/release/rustscan /opt/tools/bin/rustscan
add-history rustscan
add-test-command "rustscan --help"
add-to-list "rustscan,https://github.com/RustScan/RustScan,The Modern Port Scanner"
}

# Package dedicated to network pentest tools
function package_network() {
set_go_env
Expand All @@ -238,4 +254,5 @@ function package_network() {
install_shuffledns # Wrapper around massdns to enumerate valid subdomains
install_tailscale # Zero config VPN for building secure networks
install_ligolo-ng # Tunneling tool that uses a TUN interface
install_rustscan
}