Alterx does not work
gurunn opened this issue · 5 comments
gurunn commented
The Alter example doesn't work. Have you stopped supporting the project?
dogancanbakir commented
@gurunn,
Can you share more about the issue with alterx
? We can help you better. Thanks!
ehsandeep commented
@gurunn do you have an example to share?
chaos -d tesla.com -silent | alterx
...
...
gridlogic-eng.my.energy.tesla.com
raw-sc-cppm.tesla.com
gridlogic.cms.powerhub.energy.tesla.com
lionpayshare.data.tesla.com
npm-forum.github.tesla.com
[INF] Generated 249206 permutations in 1.5987s
gurunn commented
This code has stopped working:
package main
import (
"os"
"github.com/projectdiscovery/alterx"
"github.com/projectdiscovery/gologger"
)
func main() {
opts := &alterx.Options{
Domains: []string{"api.scanme.sh", "chaos.scanme.sh", "nuclei.scanme.sh", "cloud.nuclei.scanme.sh"},
}
m, err := alterx.New(opts)
if err != nil {
gologger.Fatal().Msg(err.Error())
}
m.ExecuteWithWriter(os.Stdout)
}
dogancanbakir commented
@gurunn,
Try setting MaxSize
to its default size math.MaxInt
.
package main
import (
"math"
"os"
"github.com/projectdiscovery/alterx"
"github.com/projectdiscovery/gologger"
)
func main() {
opts := &alterx.Options{
Domains: []string{"api.scanme.sh", "chaos.scanme.sh", "nuclei.scanme.sh", "cloud.nuclei.scanme.sh"},
MaxSize: math.MaxInt,
}
m, err := alterx.New(opts)
if err != nil {
gologger.Fatal().Msg(err.Error())
}
m.ExecuteWithWriter(os.Stdout)
}
gurunn commented
Thank you. It works