IP Address Validation
On Ethiack tests, we need to ensure that you own public IP addresses before adding them to scope.
Find out how to validate public IP addresses
On Ethiack tests, we need to ensure that you own public IP addresses before adding them to scope.
In order to do so, we need you to verify it by sending a request to our API by following the steps below.
-
Go to https://portal.ethiack.com/settings/api and generate your API key and secret.
-
Retrieve your organization ID with the command:
curl -u [API_KEY]:[API_SECRET] https://api.ethiack.com/v1/organizations/ -
Send a POST request from the IP address you want to add:
curl -X POST -u [API_KEY]:[API_SECRET] https://api.ethiack.com/v1/assets/ \ --header 'Content-Type: application/json' --data '{ "organization_id": [ORGANIZATION_ID], "asset_value": "[IP_ADDRESS]", "asset_type": "ip" }'
Ensure to replace [API_KEY] and [API_SECRET] with the credentials generated in step 1, [ORGANIZATION_ID] from step 2, and [IP_ADDRESS] with the current IP address. Once added, the IP address becomes part of your assets and can then be included in scope on the Ethiack Portal or through the API. If you encounter the "IP does not match remote address" error, double-check that the IP address matches your current one. For troubleshooting, you can use curl ifconfig.me.
You can find the documentation of the Ethiack API here.