Skip to content

Commit 75d08cd

Browse files
committed
fix: solve remaining linter issues
1 parent 2edbfd6 commit 75d08cd

25 files changed

+79
-37
lines changed

.pentest/front/check-security-headers.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ TARGET="${1:-https://prostaff.gg}"
77

88
GREEN='\033[0;32m'
99
RED='\033[0;31m'
10-
YELLOW='\033[1;33m' # shellcheck disable=SC2034
10+
# shellcheck disable=SC2034
11+
YELLOW='\033[1;33m'
1112
CYAN='\033[0;36m'
1213
NC='\033[0m'
1314

.pentest/front/check-sri.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ while IFS= read -r JS_FILE; do
194194
# Verifica comentario sourceMappingURL no fim do JS
195195
JS_TAIL=$(curl -sL "${JS_URL}" --max-time 10 2>/dev/null | tail -c 200)
196196
if echo "$JS_TAIL" | grep -q "sourceMappingURL"; then
197-
MAP_FILE=$(echo "$JS_TAIL" | grep -oP "(?<=sourceMappingURL=)[^\s]+") # shellcheck disable=SC2034
197+
# shellcheck disable=SC2034
198+
MAP_FILE=$(echo "$JS_TAIL" | grep -oP "(?<=sourceMappingURL=)[^\s]+")
198199
# Tenta acessar o .map
199200
MAP_URL="${JS_URL%.*}.map"
200201
MAP_CODE=$(curl -sI "${MAP_URL}" --max-time 5 2>/dev/null | head -1 | grep -oP '[0-9]{3}' | head -1)

.pentest/scripts/02_auth_fingerprint.sh

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ set -euo pipefail
2020
# ---------------------------------------------------------------------------
2121
# Configuration
2222
# ---------------------------------------------------------------------------
23-
BASE_URL="http://localhost:3333" # shellcheck disable=SC2034
23+
# shellcheck disable=SC2034
24+
BASE_URL="http://localhost:3333"
2425
API="http://localhost:3333/api/v1"
2526
TEST_EMAIL="test@prostaff.gg"
2627
TEST_PASSWORD="Test123!@#"
@@ -162,12 +163,15 @@ print(f'{avg:.4f}')
162163

163164
echo " Average: ${avg}s"
164165
# Store for comparison
165-
TIMING_RESULT_LABEL="${label}" # shellcheck disable=SC2034
166+
# shellcheck disable=SC2034
167+
TIMING_RESULT_LABEL="${label}"
166168
TIMING_RESULT_AVG="${avg}"
167169
}
168170

169-
AUTH_LAST_CODE="" # shellcheck disable=SC2034
170-
AUTH_LAST_TIME="" # shellcheck disable=SC2034
171+
# shellcheck disable=SC2034
172+
AUTH_LAST_CODE=""
173+
# shellcheck disable=SC2034
174+
AUTH_LAST_TIME=""
171175
VALID_TOKEN=""
172176

173177
# ===========================================================================
@@ -422,9 +426,12 @@ info "This test collects response times to detect whether the server processes"
422426
info "valid vs invalid emails differently (constant-time comparison check)."
423427
echo ""
424428

425-
T1_TIMES=() # shellcheck disable=SC2034
426-
T2_TIMES=() # shellcheck disable=SC2034
427-
T3_TIMES=() # shellcheck disable=SC2034
429+
# shellcheck disable=SC2034
430+
T1_TIMES=()
431+
# shellcheck disable=SC2034
432+
T2_TIMES=()
433+
# shellcheck disable=SC2034
434+
T3_TIMES=()
428435

429436
collect_timing "Valid email, wrong password" "${TEST_EMAIL}" "${WRONG_PASSWORD}" "${TIMING_SAMPLES}"
430437
T1_AVG="${TIMING_RESULT_AVG}"

.pentest/scripts/03_jwt_attacks.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ set -euo pipefail
2424
# ---------------------------------------------------------------------------
2525
# Configuration
2626
# ---------------------------------------------------------------------------
27-
BASE_URL="http://localhost:3333" # shellcheck disable=SC2034
27+
# shellcheck disable=SC2034
28+
BASE_URL="http://localhost:3333"
2829
API="http://localhost:3333/api/v1"
2930
TEST_EMAIL="test@prostaff.gg"
3031
TEST_PASSWORD="Test123!@#"
@@ -34,7 +35,8 @@ OUTPUT_FILE="${SNAPSHOT_DIR}/jwt_attacks_${TIMESTAMP}.txt"
3435

3536
# Target endpoint for token testing (requires auth)
3637
TARGET="${API}/dashboard"
37-
TARGET_ALT="${API}/players" # shellcheck disable=SC2034
38+
# shellcheck disable=SC2034
39+
TARGET_ALT="${API}/players"
3840

3941
# ---------------------------------------------------------------------------
4042
# Colors

.pentest/scripts/04_org_isolation.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ set -euo pipefail
3030
# ---------------------------------------------------------------------------
3131
# Configuration
3232
# ---------------------------------------------------------------------------
33-
BASE_URL="http://localhost:3333" # shellcheck disable=SC2034
33+
# shellcheck disable=SC2034
34+
BASE_URL="http://localhost:3333"
3435
API="http://localhost:3333/api/v1"
3536
TEST_EMAIL="test@prostaff.gg"
3637
TEST_PASSWORD="Test123!@#"

.pentest/scripts/05_rbac_probe.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ set -euo pipefail
2626
# ---------------------------------------------------------------------------
2727
# Configuration
2828
# ---------------------------------------------------------------------------
29-
BASE_URL="http://localhost:3333" # shellcheck disable=SC2034
29+
# shellcheck disable=SC2034
30+
BASE_URL="http://localhost:3333"
3031
API="http://localhost:3333/api/v1"
3132
TEST_EMAIL="test@prostaff.gg"
3233
TEST_PASSWORD="Test123!@#"

.pentest/scripts/06_rate_limit_probe.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ set -euo pipefail
2929
# ---------------------------------------------------------------------------
3030
# Configuration
3131
# ---------------------------------------------------------------------------
32-
BASE_URL="http://localhost:3333" # shellcheck disable=SC2034
32+
# shellcheck disable=SC2034
33+
BASE_URL="http://localhost:3333"
3334
API="http://localhost:3333/api/v1"
3435
TEST_EMAIL="test@prostaff.gg"
3536
TEST_PASSWORD="Test123!@#"

.pentest/scripts/07_param_fuzzing.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ set -euo pipefail
3030
# ---------------------------------------------------------------------------
3131
# Configuration
3232
# ---------------------------------------------------------------------------
33-
BASE_URL="http://localhost:3333" # shellcheck disable=SC2034
33+
# shellcheck disable=SC2034
34+
BASE_URL="http://localhost:3333"
3435
API="http://localhost:3333/api/v1"
3536
TEST_EMAIL="test@prostaff.gg"
3637
TEST_PASSWORD="Test123!@#"

.pentest/scripts/08_ssrf_probe.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ set -euo pipefail
3535
# ---------------------------------------------------------------------------
3636
# Configuration
3737
# ---------------------------------------------------------------------------
38-
BASE_URL="http://localhost:3333" # shellcheck disable=SC2034
38+
# shellcheck disable=SC2034
39+
BASE_URL="http://localhost:3333"
3940
API="http://localhost:3333/api/v1"
4041
TEST_EMAIL="test@prostaff.gg"
4142
TEST_PASSWORD="Test123!@#"
@@ -416,7 +417,8 @@ info "the server is making outbound connections (blind SSRF)."
416417
echo ""
417418

418419
# External host (should timeout or respond normally)
419-
EXTERNAL_HOST="https://httpbin.org/delay/0" # shellcheck disable=SC2034
420+
# shellcheck disable=SC2034
421+
EXTERNAL_HOST="https://httpbin.org/delay/0"
420422
# Non-routable internal host (should timeout or fail fast)
421423
INTERNAL_HOST="http://10.255.255.1/"
422424
# Likely closed port on localhost

.pentest/scripts/09_export_injection.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# ProStaff API pentest lab
44
set -e
55

6-
BASE_URL="http://localhost:3333" # shellcheck disable=SC2034
6+
# shellcheck disable=SC2034
7+
BASE_URL="http://localhost:3333"
78
API="http://localhost:3333/api/v1"
89
TIMESTAMP=$(date -u +%Y%m%d_%H%M%S)
910
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

0 commit comments

Comments
 (0)