### Install dependencies with yarn install Source: https://github.com/sundowndev/phoneinfoga/blob/master/web/client/README.md Run this command in the client directory to install project dependencies. ```bash yarn install ``` -------------------------------- ### Install PhoneInfoga binary globally Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/install.md Installs the downloaded binary to /usr/local/bin so it can be run from anywhere. Run after downloading the binary. ```bash sudo install ./phoneinfoga /usr/local/bin/phoneinfoga ``` -------------------------------- ### Start development server with yarn serve Source: https://github.com/sundowndev/phoneinfoga/blob/master/web/client/README.md Compiles and hot-reloads the application for development. ```bash yarn serve ``` -------------------------------- ### Check PhoneInfoga version Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/install.md Verifies the installed version is up-to-date. Run after installation. ```bash ./phoneinfoga version ``` -------------------------------- ### Download and install PhoneInfoga binary via script Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/install.md Downloads the latest release binary into the current directory using the official install script. Add --help at the end of the command for a list of install options. UNIX systems only. ```bash # Add --help at the end of the command for a list of install options bash <( curl -sSL https://raw.githubusercontent.com/sundowndev/phoneinfoga/master/support/scripts/install ) ``` -------------------------------- ### Run PhoneInfoga web services via Docker Compose Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/install.md Starts the PhoneInfoga web services in detached mode. ```shell docker-compose up -d ``` -------------------------------- ### Build PhoneInfoga Docker image Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/install.md Builds the Docker image using docker-compose. ```shell docker-compose build ``` -------------------------------- ### Build for production with yarn build Source: https://github.com/sundowndev/phoneinfoga/blob/master/web/client/README.md Compiles and minifies the application for production deployment. ```bash yarn build ``` -------------------------------- ### Run PhoneInfoga CLI via Docker Compose Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/install.md Runs the PhoneInfoga container with the --help flag to see CLI usage. ```shell docker-compose run --rm phoneinfoga --help ``` -------------------------------- ### Install mkdocs and dependencies Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/contribute.md Install mkdocs and required plugins for documentation generation. ```shell python3 -m pip install mkdocs==1.3.0 mkdocs-material==8.3.9 mkdocs-minify-plugin==0.5.0 mkdocs-redirects==1.1.0 ``` -------------------------------- ### Install PhoneInfoga via Homebrew Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/install.md Installs the official phoneinfoga formula using Homebrew, a package manager for macOS. ```shell brew install phoneinfoga ``` -------------------------------- ### Run unit tests with yarn test:unit Source: https://github.com/sundowndev/phoneinfoga/blob/master/web/client/README.md Executes the unit test suite. ```bash yarn test:unit ``` -------------------------------- ### Build plugin with go build -buildmode=plugin Source: https://github.com/sundowndev/phoneinfoga/blob/master/examples/plugin/README.md Builds the example scanner plugin from customscanner.go. On Linux, this creates a plugin file named customscanner.so. ```shell $ go build -buildmode=plugin ./customscanner.go ``` -------------------------------- ### Serve documentation locally with mkdocs serve Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/contribute.md Start a local server to preview documentation. Use python3 -m mkdocs serve as an alternative. ```shell mkdocs serve # or python3 -m mkdocs serve ``` -------------------------------- ### Run end-to-end tests with yarn test:e2e Source: https://github.com/sundowndev/phoneinfoga/blob/master/web/client/README.md Executes the end-to-end test suite. ```bash yarn test:e2e ``` -------------------------------- ### Inspect PhoneInfoga Docker logs Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/install.md Shows all output from the PhoneInfoga container, which is sent to stdout. Replace with the actual container identifier. ```shell docker logs -f ``` -------------------------------- ### Lint and fix files with yarn lint Source: https://github.com/sundowndev/phoneinfoga/blob/master/web/client/README.md Runs the linter and automatically fixes fixable issues. ```bash yarn lint ``` -------------------------------- ### Run PhoneInfoga version via Docker Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/install.md Runs the PhoneInfoga container to check its version. The --rm flag removes the container after execution. ```shell docker run --rm -it sundowndev/phoneinfoga version ``` -------------------------------- ### Pull PhoneInfoga Docker image Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/install.md Pulls the latest PhoneInfoga image from Docker Hub. Use the 'next' tag for beta channel updates, or 'latest', 'v2', or 'stable' tags for release updates. ```shell docker pull sundowndev/phoneinfoga:latest ``` -------------------------------- ### Build from source with make install-tools, yarn build, and make build Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/contribute.md Install tools, build static assets, and generate in-memory assets. Requires Node.js >= v15, npm or yarn, and Go >= 1.16. If using npm, replace yarn commands with npm run. ```shell # Install tools needed to build, creating mocks or running tests $ make install-tools # Build static assets # This will create dist directory containing client's static files $ (cd web/client && yarn && yarn build) # Generate in-memory assets, then build the project. # This will put content of dist directory in a single binary file. # It's needed to build but the design requires you to do it anyway. # This step is needed at each change if you're developing on the client. $ make build ``` -------------------------------- ### Project file structure Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/contribute.md Shows the directory layout of the project, including bin, build, cmd, docs, examples, lib, mocks, support, test, web, go.mod, and main.go. ```shell bin/ # Local binaries build/ # Build package providing info about the current build cmd/ # Command-line app code docs/ # Documentation examples/ # Some code examples lib/ # Libraries mocks/ # Mocks support/ # Utilities, manifests for production and local env test/ # Utilities for testing purposes web/ # Web server, including REST API and web client go.mod # Go modules file main.go # Application entrypoint ``` -------------------------------- ### Docker Compose configuration for PhoneInfoga Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/install.md Defines a PhoneInfoga service in docker-compose.yml that runs the 'serve' command and maps port 80 to 5000. The container restarts on failure. ```yaml version: '3.7' services: phoneinfoga: container_name: phoneinfoga restart: on-failure image: sundowndev/phoneinfoga:latest command: - "serve" ports: - "80:5000" ``` -------------------------------- ### Install the phoneinfoga Go module Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/go-module-usage.md Install the phoneinfoga v2 module as a dependency for your Go project. Run this command in your project directory to fetch the module and its dependencies. ```bash go get -v github.com/sundowndev/phoneinfoga/v2 ``` -------------------------------- ### Run phoneinfoga scan with --plugin flag Source: https://github.com/sundowndev/phoneinfoga/blob/master/examples/plugin/README.md Runs a phoneinfoga scan using the built plugin. The --plugin flag can be used multiple times to use several plugins at once. The output shows the scan results for the customscanner plugin. ```shell $ phoneinfoga scan -n --plugin ./customscanner.so Running scan for phone number ... Results for customscanner Valid: true Info: This number is known for scams! ... ``` -------------------------------- ### Use a scanner in a Go script Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/go-module-usage.md Example of using the GoogleSearchScanner to scan a phone number and print the resulting links. Requires the phoneinfoga module installed. The number.NewNumber function parses the input, and remote.NewGoogleSearchScanner().Scan(n) returns a GoogleSearchResponse containing individual links. ```go package main import ( "fmt" "log" "github.com/sundowndev/phoneinfoga/v2/lib/number" "github.com/sundowndev/phoneinfoga/v2/lib/remote" ) func main() { n, err := number.NewNumber("...") if err != nil { log.Fatal(err) } res, err := remote.NewGoogleSearchScanner().Scan(n) if err != nil { log.Fatal(err) } links := res.(remote.GoogleSearchResponse) for _, link := range links.Individuals { fmt.Println(link.URL) // Google search link to scan } } ``` -------------------------------- ### Disable PhoneInfoga web client in Docker Compose Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/install.md Adds the --no-client option to the command in docker-compose.yml to disable the web client. ```yaml # docker-compose.yml command: - "serve" - "--no-client" ``` -------------------------------- ### Google dork examples for phone number OSINT Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/resources/additional-resources.md Use these Google search queries to footprint a phone number. Replace XXXXXXXXX with the target number. The queries search email subjects, document file types, disposable number sites, and fraud-reporting sites. These are provided as OSINT framework examples and are not verified data sources. ```text insubject:"+XXXXXXXXX" OR insubject:"+XXXXX" OR insubject:"XXXXX XXX XXX" insubject:"XXXXXXXXX" OR intitle:"XXXXXXXXX" intext:"XXXXXXXXX" AND (ext:doc OR ext:docx OR ext:odt OR ext:pdf OR ext:rtf OR ext:sxw OR ext:ppt OR ext:pptx OR ext:pps OR ext:csv OR ext:txt OR ext:html) site:"hs3x.com" "+XXXXXXXXX" site:signal-arnaques.com intext:"XXXXXXXXX" intitle:" | Phone Fraud" ``` -------------------------------- ### Numverify Scanner Output Example Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/scanners.md Shows the output of the numverify scanner when running with the NUMVERIFY_API_KEY environment variable. Requires an API key from apilayer.com. ```shell $ NUMVERIFY_API_KEY= phoneinfoga scan -n +4176418xxxx Results for numverify Valid: true Number: 4176418xxxx Local format: 076418xxxx International format: +4176418xxxx Country prefix: +41 Country code: CH Country name: Switzerland (Confederation of) Carrier: Sunrise Communications AG Line type: mobile ``` -------------------------------- ### Local Scanner Output Example Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/scanners.md Shows the output of the local scanner when running `phoneinfoga scan -n +4176418xxxx`. No configuration is required for this scanner. ```shell $ phoneinfoga scan -n +4176418xxxx Results for local Raw local: 076418xxxx Local: 076 418 xx xx E164: +4176418xxxx International: 4176418xxxx Country: CH ``` -------------------------------- ### Launch the web server with phoneinfoga serve Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/usage.md Starts the REST API and web client. The default port is 5000; use `-p` to specify a different port. The application is stateless and requires no persistent storage. ```shell phoneinfoga serve # uses default port 5000 phoneinfoga serve -p 8080 # use port 8080 ``` -------------------------------- ### OVH Scanner Output Example Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/scanners.md Example output from running the OVH scanner with the phoneinfoga CLI. It shows the scan result for a number owned by OVH Telecom, including the found status, number range, and city. ```shell $ phoneinfoga scan -n +3336517xxxx Results for ovh Found: true Number range: 036517xxxx City: Abbeville ``` -------------------------------- ### Googlecse Scanner Output Example Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/scanners.md Shows the expected output when running a scan with the googlecse scanner. The output includes the scanner name, homepage URL, result count, and item details. ```shell $ phoneinfoga scan -n +1241325xxxx Results for googlecse Homepage: https://cse.google.com/cse?cx= Result count: 1 Items: Title: Info about +1241325xxxx URL: https://example.com/1241325xxxx ``` -------------------------------- ### Run the REST API only with --no-client Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/usage.md Starts only the REST API without the web client. Use this when you only need the API endpoints. ```shell phoneinfoga serve --no-client ``` -------------------------------- ### Build documentation website with mkdocs build Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/contribute.md Generate the static documentation site. ```shell mkdocs build ``` -------------------------------- ### Run the application with go run main.go Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/contribute.md Compile and run the application without building static assets. Useful during development to avoid rebuilding at each change. ```shell $ go run main.go ``` -------------------------------- ### Run Go tests and collect coverage Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/contribute.md Run the test suite, collect coverage, and open coverage as HTML. Use go test -v ./... for verbose output. ```shell # Run test suite go test -v ./... # Collect coverage go test -coverprofile=coverage.out ./... # Open coverage file as HTML go tool cover -html=coverage.out ``` -------------------------------- ### Run the web server via Docker Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/usage.md Equivalent Docker commands for launching the server. The `-p` flag maps the container port to the host port, and the `-p 8080` option inside the container sets the server port. ```shell docker run --rm -it -p 5000:5000 sundowndev/phoneinfoga serve # same as `phoneinfoga serve` docker run --rm -it -p 8080:8080 sundowndev/phoneinfoga serve -p 8080 # same as `phoneinfoga serve -p 8080` ``` -------------------------------- ### Deploy documentation to GitHub Pages with mkdocs gh-deploy Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/contribute.md Deploy the built documentation to GitHub Pages. ```shell mkdocs gh-deploy ``` -------------------------------- ### Format Go code with make fmt Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/contribute.md Uses gofmt to format Go files. ```shell make fmt ``` -------------------------------- ### Run the REST API only via Docker Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/usage.md Equivalent Docker command for running the REST API only, without the web client. ```shell docker run --rm -it -p 5000:5000 sundowndev/phoneinfoga serve --no-client ``` -------------------------------- ### Run scan with custom plugin Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/scanners.md Runs a scan using a custom scanner plugin. The --plugin flag specifies the path to the compiled plugin file. ```shell $ phoneinfoga scan -n +4176418xxxx --plugin ./custom_scanner.so ``` -------------------------------- ### Run TypeScript tests for web client Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/contribute.md Run unit and end-to-end tests for the web client. Use yarn build:watch to watch changes during development. ```shell cd web/client yarn test yarn test:unit yarn test:e2e ``` -------------------------------- ### Run scan with --env-file Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/scanners.md Runs a phone number scan using a custom environment file. The --env-file flag specifies the filename to load configuration from. ```shell phoneinfoga scan -n +4176418xxxx --env-file=.env.local ``` -------------------------------- ### Lint TypeScript code with yarn lint Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/contribute.md Run lint and lint:fix for the web client. ```shell cd web/client yarn lint yarn lint:fix ``` -------------------------------- ### Environment variables in .env.local Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/scanners.md Defines scanner configuration values in a .env.local file. The tool parses this file automatically when placed in the current directory, or you can specify another filename with --env-file. ```shell # .env.local NUMVERIFY_API_KEY="value" GOOGLECSE_CX="value" GOOGLE_API_KEY="value" ``` -------------------------------- ### Run Googlesearch scanner with phoneinfoga scan Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/scanners.md Executes the Googlesearch scanner on a phone number. The scanner generates Google search links for social media, disposable providers, and reputation sites; no configuration is required. Output shows the generated URLs grouped by category. ```shell $ phoneinfoga scan -n +4176418xxxx Results for googlesearch Social media: URL: https://www.google.com/search?q=site%3Afacebook.com+intext%3A%224176418xxxx%22+OR+intext%3A%22%2B4176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Atwitter.com+intext%3A%224176418xxxx%22+OR+intext%3A%22%2B4176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Alinkedin.com+intext%3A%224176418xxxx%22+OR+intext%3A%22%2B4176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Ainstagram.com+intext%3A%224176418xxxx%22+OR+intext%3A%22%2B4176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Avk.com+intext%3A%224176418xxxx%22+OR+intext%3A%22%2B4176418xxxx%22+OR+intext%3A%22076418xxxx%22 Disposable providers: URL: https://www.google.com/search?q=site%3Ahs3x.com+intext%3A%224176418xxxx%22 URL: https://www.google.com/search?q=site%3Areceive-sms-now.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Asmslisten.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Asmsnumbersonline.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Afreesmscode.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Acatchsms.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Asmstibo.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Asmsreceiving.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Agetfreesmsnumber.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Asellaite.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Areceive-sms-online.info+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Areceivesmsonline.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Areceive-a-sms.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Asms-receive.net+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Areceivefreesms.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Areceive-sms.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Areceivetxt.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Afreephonenum.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Afreesmsverification.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Areceive-sms-online.com+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 URL: https://www.google.com/search?q=site%3Asmslive.co+intext%3A%224176418xxxx%22+OR+intext%3A%22076418xxxx%22 Reputation: URL: https://www.google.com/search?q=site%3Awhosenumber.info+intext%3A%22%2B4176418xxxx%22+intitle%3A%22who+called%22 URL: https://www.google.com/search?q=intitle%3A%22Phone+Fraud%22+intext%3A%224176418xxxx%22+OR+intext%3A%22%2B4176418xxxx%22+OR+intext%3A%22076418xxxx%22 ``` -------------------------------- ### Run a scan with the scan command Source: https://github.com/sundowndev/phoneinfoga/blob/master/docs/getting-started/usage.md Use the `scan` command with the `-n` (or `--number`) option to scan phone numbers. Special characters such as `( ) - +` are escaped automatically, making US-style numbers easy to type. The country code is essential for the scan. ```shell phoneinfoga scan -n "+1 (555) 444-1212" phoneinfoga scan -n "+33 06 79368229" phoneinfoga scan -n "33679368229" ``` ```shell phoneinfoga scan -n "+1 555-444-3333" ```