mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2026-11-03 03:31:58 +08:00
15 lines
324 B
Go
15 lines
324 B
Go
package wafhttpcore
|
|
|
|
import (
|
|
"SamWaf/libinjection-go"
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestSql(t *testing.T) {
|
|
payload := "data/index.html?id=1 and (select top 1 count(*) from admin where unicode(substring(a,1,1))=asc%E5%80%BC%20and%20id=1)%3E0"
|
|
|
|
sqlB, sqlstring := libinjection.IsSQLi(payload)
|
|
fmt.Println(sqlB, sqlstring)
|
|
}
|