add channel hop attack

This commit is contained in:
ydx 2020-06-03 04:53:30 +08:00
commit 37e20f38a6

View file

@ -207,7 +207,7 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
}
channel,_:=strconv.Atoi( args[1])
if channel>180 || channel<1{
return fmt.Errorf("%s is not a valid channel number")
return fmt.Errorf("%d is not a valid channel number",channel)
}
packet_count,_:=strconv.Atoi( args[2])
if packet_count>65535{