Skip to content

Commit 37113ad

Browse files
committed
fix(pentest): remove raw bidirectional char (use escape), harden pip install with --only-binary, exclude .pentest from Sonar scope
1 parent 3dca4ea commit 37113ad

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎.pentest/scripts/11_search_injection.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ UNICODE_PAYLOADS=(
261261
$'\x00test'
262262
"test\x00admin"
263263
$''
264-
$'‮'
264+
$'\u202e'
265265
$'￾'
266266
$'￿'
267267
$'test\ninjected_header: evil'

‎.pentest/tools/install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ install_sqlmap() {
107107
log "Installing sqlmap..."
108108

109109
if command -v pip3 &>/dev/null; then
110-
pip3 install sqlmap --quiet
110+
pip3 install sqlmap --quiet --only-binary :all:
111111
ok "sqlmap installed via pip3"
112112
elif command -v apt-get &>/dev/null; then
113113
sudo apt-get update -qq

‎sonar-project.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# code and must not affect our quality gate.
44
# - internal/database/migrations/**: schema migrations are intentional full-table DDL/DML;
55
# Sonar's generic SQL rules (e.g. "UPDATE without WHERE") do not apply to them.
6-
sonar.exclusions=vendor/**,internal/database/migrations/**
6+
sonar.exclusions=vendor/**,internal/database/migrations/**,.pentest/**

0 commit comments

Comments
 (0)