From c8cc2c1ea8a7f8ad818e2cbd4d6e85127d4b2648 Mon Sep 17 00:00:00 2001 From: gnarizard <95197857+gnarizard@users.noreply.github.com> Date: Mon, 31 Aug 2026 11:52:42 -0700 Subject: [PATCH] Add ftp, nfs, vnc, wmi to supported protocols NetExec supports ftp, nfs, vnc, and wmi beyond the protocols NetSpray already handled. Add them to the 'all' protocol list and the -h usage text, and sync the README help menu and available-protocols list to match (the list was also missing rdp). --- NetSpray | 8 ++++---- README.md | 13 +++++++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/NetSpray b/NetSpray index e5ca219..4c48214 100644 --- a/NetSpray +++ b/NetSpray @@ -10,7 +10,7 @@ show_usage() { echo "Usage: $0 -u [-p | -H ] [OPTIONS]" echo "" echo "Required:" - echo " protocols Protocols to test: smb,ldap,winrm,rdp,mssql,ssh or 'all'" + echo " protocols Protocols to test: smb,ldap,winrm,rdp,mssql,ssh,ftp,nfs,vnc,wmi or 'all'" echo " targets IP address, IP range, or file with targets (one per line)" echo " -u USERNAME Username to spray" echo "" @@ -117,9 +117,9 @@ fi #-------- PROTOCOL SETUP # Handle 'all' protocols or parse comma-separated list -# Order: smb → winrm → rdp → mssql → ssh → ldap +# Order: smb → winrm → rdp → mssql → ssh → ldap → ftp → nfs → vnc → wmi if [ "$PROTOCOLS_INPUT" = "all" ]; then - PROTOCOL_LIST=(smb winrm rdp mssql ssh ldap) + PROTOCOL_LIST=(smb winrm rdp mssql ssh ldap ftp nfs vnc wmi) else IFS=',' read -ra PROTOCOL_LIST <<< "$PROTOCOLS_INPUT" fi @@ -179,4 +179,4 @@ for PROTOCOL in "${PROTOCOL_LIST[@]}"; do done # FINAL -echo "[+] Spray Complete!" +echo "[+] Spray Complete!" \ No newline at end of file diff --git a/README.md b/README.md index a26b993..8741c97 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ sudo chmod +x /usr/local/bin/NetSpray Usage: NetSpray -u [-p | -H ] [OPTIONS] Required: - protocols Protocols to test: smb,ldap,winrm,rdp,mssql,ssh or 'all' + protocols Protocols to test: smb,ldap,winrm,rdp,mssql,ssh,ftp,nfs,vnc,wmi or 'all' targets IP address, IP range, or file with targets (one per line) -u USERNAME Username to spray @@ -47,11 +47,16 @@ NetSpray smb,winrm,rdp,ldap,ssh,mssql target -u '' -p '' # Available Protocals smb -ldap winrm -ssh +rdp mssql +ssh +ldap +ftp +nfs +vnc +wmi ``` # Proof -image +image \ No newline at end of file