Skip to content

Commit

Permalink
fix sql injection panic
Browse files Browse the repository at this point in the history
  • Loading branch information
yhy0 committed Mar 26, 2024
1 parent 87d77d6 commit d17dbd8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scan/PerFile/sql/heuristic.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ func (sql *Sqlmap) HeuristicCheckSqlInjection() {
res, err = sql.Client.Request(sql.Url, sql.Method, payload, sql.Headers)
}

if err != nil {
logging.Logger.Errorln(sql.Url, "宽字节注入出现错误", err)
continue
}

time.Sleep(time.Millisecond * 500)
sql.DBMS = checkDBMSError(sql.Url, p.Name, payload, res)
if sql.DBMS != "" {
Expand Down

0 comments on commit d17dbd8

Please sign in to comment.