wallarm / gotestwaf

An open-source project in Golang to asess different API Security tools and WAF for detection logic and bypasses
https://lab.wallarm.com/test-your-waf-before-hackers/
MIT License
1.55k stars 212 forks source link

The code cannot run under Windows. #247

Open haichaox opened 5 months ago

haichaox commented 5 months ago

Hi Team,

Could you please optimize the code? the current code cannot run under Windows, and the error message is as follows:

C:\gotestwaf-master\gotestwaf-master>go run ./cmd --url=http://39.100.84.77 --reportFormat=html --noEmailReport --skipWAFIdentification

github.com/wallarm/gotestwaf/internal/scanner

internal\scanner\scanner.go:345:36: undefined: syscall.SIGUSR1 01 01

haichaox commented 4 months ago

Can anyone help? thanks in advance!

falconkei commented 4 months ago

I am able to get it working by replacing SIGUSR1 with SIGINT, not sure if this change broke something else.