Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Obtaining The API Keys

Utku Sen edited this page Apr 26, 2017 · 1 revision

Leviathan requires API keys from few services to work. Google Custom Search API is needed for retrieving URLs from Google to detect SQL Injection vulnerabilities. Censys and Shodan APIs are needed for retrieving IP addresses according to given queries.

Generating "Google Custom Search" Keys

Two things needs to be generated: Google API Key, Custom Search Engine id

Google API Key:

  1. Navitage to “Credentials page” in API console: https://console.developers.google.com/apis/credentials
  2. Click Create credentials > API key (If you don’t have any previous project, create a project first. After than you will be able to generate API key.)
  3. Copy your API key to your local disk

Custom Search Engine ID:

  1. Navigate to https://cse.google.com/cse/ and click “Create a Custom Search Engine”
  2. In “Sites to search” section, just put www.anyurl.com to skip this screen. We will remove it later.
  3. Enter a name for the search engine on “Name of the search engine” box.
  4. Click to “Create” button
  5. Click “Control Panel” button which is located in the same line with “Modify your search engine” label.
  6. In the “Basic” tab, find “Sites to search” section. Select “Search the entire web but emphasize included sites.” on dropdown list. Also, mark the checkbox on “www.anyurl.com” and click “Delete” button.
  7. Click “Update” button on the bottom of the page.
  8. Find “Details” label under the “Basics” tab. Click to “Search engine ID” button.
  9. Copy your search engine ID to your local disk

Censys

  1. Register an account at https://censys.io/register
  2. After login, navigate to https://censys.io/account
  3. Copy API ID, Secret to your local disk.

Shodan

  1. Register an account at https://account.shodan.io/register
  2. After login navigate to https://account.shodan.io/
  3. Copy your API key to your local disk

Note: Shodan’s free api key won’t give too much flexibility to you. You should buy at least “Freelancer” package from here if you want to use Shodan smoothly: https://developer.shodan.io/pricing