Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

正则提取有个小bug #48

Open
404tk opened this issue Apr 7, 2021 · 0 comments
Open

正则提取有个小bug #48

404tk opened this issue Apr 7, 2021 · 0 comments

Comments

@404tk
Copy link

404tk commented Apr 7, 2021

https://github.com/knownsec/ksubdomain/blob/master/core/script.go#L30
在调用crt.sh这个API时,https://crt.sh/?output=json&q=example.com
image
正则会提取出nwww.example.com这个域名。
我的解决方式是把\n提取出来,replace替换掉。

想请教下正则还有没有优化的空间=_=||

Evilran added a commit to Evilran/ksubdomain that referenced this issue Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant