Skip to content

loditcodon/libinjection-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

151 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libinjection

License codecov CodeQL

libinjection is a Go porting of the libinjection(http://www.client9.com/projects/libinjection/) and it's thread safe.

How to use

SQLi Example

package main import ( "fmt" "github.com/corazawaf/libinjection-go" ) func main() { result, fingerprint := libinjection.IsSQLi("-1' and 1=1 union/* foo */select load_file('/etc/passwd')--") fmt.Println("=========result==========: ", result) fmt.Println("=======fingerprint=======: ", string(fingerprint)) }

XSS Example

package main import ( "fmt" "github.com/corazawaf/libinjection-go" ) func main() { fmt.Println("result: ", libinjection.IsXSS("<script>alert('1')</script>")) }

License

libinjection-go is distributed under the same license as the libinjection.

About

libinjection is a Golang port of the libinjection(https://github.com/client9/libinjection)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 100.0%