sundowndev / phoneinfoga

Information gathering framework for phone numbers

Home Page:https://sundowndev.github.io/phoneinfoga/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom formats

sundowndev opened this issue · comments

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.