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

PR for issue 654 (environment identifiers dict) #671

Merged
merged 10 commits into from Feb 2, 2022
Merged

PR for issue 654 (environment identifiers dict) #671

merged 10 commits into from Feb 2, 2022

Conversation

righettod
Copy link
Contributor

@righettod righettod commented Nov 24, 2021

Hi,

This PR refer to the issue #654

I have used the following command against several local (Luxembourg) domains:

curl -sk "https://crt.sh/?q=[BASE_DOMAIN]&output=json" | jq -r ".[].name_value" | cut -d'.' -f1 | sort -u

Domains used, as sources, were defined in each commits. You will find English and French identifiers depending on the companies owing the domains.

Thank you very much in advance 😃

@righettod
Copy link
Contributor Author

righettod commented Nov 24, 2021

I have run the following script against all LU domains from the Majestic files:

Source:

Script:

#!/bin/bash
# wget http://downloads.majestic.com/majestic_million.csv
# cat majestic_million.csv | cut -d',' -f3 | grep "\.lu" > lu-domains.txt
rm sub*.txt 2>/dev/null
while IFS= read -r line
do
	printf "\rDomain: %-40s" "$line"
	curl -sk "https://crt.sh/?q=$line&output=json" | jq -r ".[].name_value" | cut -d'.' -f1 >> sub.txt
done < lu-domains.txt
cat sub.txt | sort -u > sub2.txt 

Generated files:

New entries related to environments were added to the commit f86abe0

@g0tmi1k
Copy link
Collaborator

g0tmi1k commented Nov 26, 2021

Oh wow! Thanks!
I wonder if putting in the scripts used to generate could be helpful?
The last commit I did, I made a ./.bin//. What about putting any/all scripts there?

@g0tmi1k g0tmi1k self-assigned this Nov 26, 2021
@g0tmi1k g0tmi1k added enhancement Enhancement proposal Status: Proposal labels Nov 26, 2021
@righettod
Copy link
Contributor Author

I added the results, after the extraction from FR + BE sub domains, to the commit 9e778c6 :

Command used:

cat sub-be.txt sub-fr.txt | sort -u > subFRBE.txt
grep -Ei "^(de|dv|ts|te|in|st|ho|pr|pp)" subFRBE.txt > selection.txt

Generated files:

@righettod
Copy link
Contributor Author

Oh wow! Thanks! I wonder if putting in the scripts used to generate could be helpful? The last commit I did, I made a ./.bin//. What about putting any/all scripts there?

OK I will refactor the script to be more generic.

I keep you informed about this, please wait before to merge this PR 😃

@righettod
Copy link
Contributor Author

@g0tmi1k I added a more generic version of the script to the PR in the bin folder, I have tried to follow as much as possible the format of your script in order to match your standard 😃

@g0tmi1k g0tmi1k merged commit c54e07f into danielmiessler:master Feb 2, 2022
@g0tmi1k
Copy link
Collaborator

g0tmi1k commented Feb 2, 2022

Thank you SO MUCH for doing this!

This is great work (as always!)

@righettod righettod deleted the feature_issue_654 branch February 3, 2022 07:09
@righettod
Copy link
Contributor Author

@g0tmi1k Thank to you and the SecLists's team for this amazing project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement proposal Status: Proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants