Send to URL

Modified on: Fri, 31 Jan, 2020 at 8:57 AM

Send to URL is a “developer friendly” feature in Maltego. It takes the selected segment of the graph and POSTs a hybrid GraphML/XML to the page which then returns a URL that Maltego will open in a browser. 

This feature gives developers a flexibility to process the information from Maltego in any way they like.

Follow this guide to see how this feature works.


See screenshot below to find the feature "Send to URL".

Then you are asked for an URL. This URL is a web app/page that accepts data and processes it.

This is the screenshot of the intercepted request made by Maltego with hybrid GraphML/XML in its POST request.

The web app then returns a URL to Maltego which is then opened in the web browser by Maltego itself.

The PHP Version 7.2.11 code (plot.php) used in this example is given below: 

//pick POST data from GraphML
$xml = file_get_contents('php://input');
$xml_string = simplexml_load_string($xml);
//fetch details from GraphHML
foreach($xml_string->children() as $entity) {
//generate HTML table to plot details
$data="<table border='1'>
  <th>Entity Type</th><th>Entity Value</th>
//write details to a resource
//return the URL of the resource to view it in a web browser
echo "http://".$_SERVER['SERVER_NAME']."/view.html";

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.