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

Update reconftw.sh #485

Merged
merged 2 commits into from Mar 27, 2022
Merged

Update reconftw.sh #485

merged 2 commits into from Mar 27, 2022

Conversation

pradeepch99
Copy link
Contributor

sometimes url_extract_tmp.txt file contains external domains like Facebook, twitter, etc. The grep functions searches for the match anywhere in the gospider URLs. This also matches Facebook URLs contain target domain in the parameter value.

Example:

cat gospider.txt

http://test.domain.com/pathone
https://a.b.c.domain.com/pathtwo
https://testing123.domain.com/paththree
https://test.com/path1
https://facebook.com/path2?param1=domain.com
https://twitter.com/test?a=domain.com
cat gospider.txt | grep 'domain.com'

http://test.domain.com/pathone
https://a.b.c.domain.com/pathtwo
https://testing123.domain.com/paththree
https://facebook.com/path2?param1=domain.com
https://twitter.com/test?a=domain.com
cat gospider.txt | grep -E "^(http|https):[\/]{2}([a-zA-Z0-9\-\.]+\.domain.com)"

http://test.domain.com/pathone
https://a.b.c.domain.com/pathtwo
https://testing123.domain.com/paththree

@six2dez six2dez changed the base branch from main to dev March 27, 2022 00:07
@six2dez six2dez merged commit bb32f3a into six2dez:dev Mar 27, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants