Skip to content
This repository was archived by the owner on May 27, 2022. It is now read-only.

Latest commit

 

History

History
29 lines (19 loc) · 756 Bytes

File metadata and controls

29 lines (19 loc) · 756 Bytes

MaltegoPython3

Maltego lib for python3 based on MaltegoTransform-Python

Basic Examples

We will create a Person Entity with a value of "CUIT" for argentinian reverse name.

simple request to site

This transform use an entity with a ARGENTINIAN CUIT/CUIL, goes to the site "cuitonline" and then returns the name as a Person entity:

from maltego import *
import sys
import requests
from lxml import html

cuit_arg = sys.argv[1]

page = requests.get("https://www.cuitonline.com/detalle/"+cuit_arg+"/") 
tree = html.fromstring(page.content)
nombre = str(tree.xpath('//h1[@class="user-name"]/text()')) 

me = MaltegoTransform()
me.addEntity("Person", nombre)
me.returnOutput()