Skip to content

Commit

Permalink
Merge pull request #228 from gbe/add-rustscan
Browse files Browse the repository at this point in the history
Add the tool RustScan
  • Loading branch information
ShutdownRepo authored Sep 7, 2023
2 parents 35d7fe4 + 0509110 commit 1a589ec
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
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
}

0 comments on commit 1a589ec

Please sign in to comment.