Skip to content

Commit 0fc01c2

Browse files
authored
Update masscan-wrapper.sh
1 parent 7b7fce2 commit 0fc01c2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/network/masscan-wrapper.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
#!/bin/bash
2-
# Masscan Wrapper - 516 Hackers Toolkit
31

42
set -e
53

6-
LOG_DIR="../../logs"
4+
LOG_DIR="./logs"
75
mkdir -p "$LOG_DIR"
86
LOG_FILE="$LOG_DIR/masscan_$(date +%Y%m%d_%H%M%S).log"
97

@@ -18,8 +16,9 @@ if ! command -v masscan &> /dev/null; then
1816
fi
1917

2018
if [ $# -lt 1 ]; then
21-
echo "Usage: $0 <target> [ports]"
19+
echo "Usage: $0 <target> [ports] [rate]"
2220
echo "Example: $0 192.168.1.0/24 1-1000"
21+
echo "Example: $0 192.168.1.0/24 80,443,22 1000"
2322
exit 1
2423
fi
2524

0 commit comments

Comments
 (0)