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

Custom formats #1312

Open
sundowndev opened this issue Aug 3, 2023 · 0 comments
Open

Custom formats #1312

sundowndev opened this issue Aug 3, 2023 · 0 comments
Labels
kind/feature New feature or request

Comments

@sundowndev
Copy link
Owner

sundowndev commented Aug 3, 2023

There's several ways to write down phone numbers and the way they're indexed by search engine makes it difficult to find them without applying custom formatting according to the country they come from. One of the ways to achieve this could be to add a flag to supply a custom format for the given number so it's taken into account by scanners to enhance the result. googlesearch and googlecse could use this feature to add extra format to the Google dorks.

# Add custom format +1 555.666.1212
$ phoneinfoga scan -n "+1 555-666-1212" -f "+{{.CountryCode}} xxx.xxx.xxxx"

# Add custom formats 06-78-34-22-11 and 06.78.34.22.11
$ phoneinfoga scan -n "+33678342211" -f "0x-xx-xx-xx-xx" -f "0x.xx.xx.xx.xx"

The letter x will be replaced by each digit of the local phone number (excluding 0). Some variables can be used in the template such as :

Variable Description Example
CountryCode Country code of the phone number 34
Country Country of the phone number as letters US

Why using templates instead of plain numbers? This allows us to apply the same template to multiple numbers at once. Say you want to reuse those templates, that way it's easy as copy and paste.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant