Skip to content

Commit

Permalink
取消布尔类 sql 注入检测;只保留启发式报错检测
Browse files Browse the repository at this point in the history
  • Loading branch information
yhy0 committed May 24, 2024
1 parent 6b7dd16 commit 6e2c347
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions conf/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ collection:
- appid
- appSecret
- app_secret
- corpSecret
- secret
- auth
- oauth
Expand Down
7 changes: 4 additions & 3 deletions scan/PerFile/sql/heuristic.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@ func (sql *Sqlmap) HeuristicCheckSqlInjection() {
return
}

for _, pos := range injectableParamsPos {
sql.checkSqlInjection(pos)
}
// 不进行以下检测了,目前没什么收益,减少发包,等优化吧,
// for _, pos := range injectableParamsPos {
// sql.checkSqlInjection(pos)
// }
}

func (sql *Sqlmap) checkSqlInjection(pos int) {
Expand Down

0 comments on commit 6e2c347

Please sign in to comment.