Skip to content

Instantly share code, notes, and snippets.

Avatar
🤣
I may be slow to respond.

Scott J. Roberts sroberts

🤣
I may be slow to respond.
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am sroberts on github.
  • I am sroberts (https://keybase.io/sroberts) on keybase.
  • I have a public key ASCkaqzoKIRjKiuUTpAnkRKZtNSZ2G-7D7VMh5w8QlVi2wo

To claim this, I am signing this object:

View talks.md

Here is an overview of my past (and sometimes upcoming) speaking opportunities.

2017

2016

View keybase.md

Keybase proof

I hereby claim:

  • I am sroberts on github.
  • I am sroberts (https://keybase.io/sroberts) on keybase.
  • I have a public key ASBN2JRFuuB8vzXzq06VSCrmaXjHU9q0LR4K6aM6UUujkgo

To claim this, I am signing this object:

View transform-setup.py
# Set up your Transform object. This is the basis for returning results.
trx = MaltegoTransform()
View transform-returnOutput.py
# This returns the transform as an XML representation that Maltego
# uses to update the graph.
trx.returnOutput()
View transform-imports.py
# Import MaltegoTransform-Python library
# from MaltegoTransform import MaltegoEntity
from MaltegoTransform import MaltegoTransform
View transform-exception.py
# Create a Maltego Transform Exception
trx.addException("We're out of gummy bears!!! Abort.")
# ThrowExceptions returns the errored transform.
trx.throwExceptions()
View transform-addEntity.py
# For a 1-1 transform, so we create one location entity based
# on the geolocation data.
trx.addEntity("maltego.Location", "New York, NY")
# This can also be placed in a loop and will result in multiple entities.
locations = ["New York", "Washington DC", "San Francisco"]
for location in locations:
trx.addEntity("maltego.Location", location)
@sroberts
sroberts / freegeoip-geolookup.py
Last active Jan 18, 2021
A basic Maltego script to geolocate IPv4Addresses using Freegeoip.net.
View freegeoip-geolookup.py
#!/usr/bin/env python
# encoding: utf-8
"""
freegeoip-geolookup.py
Created by Scott Roberts.
Copyright (c) 2015. All rights reserved.
A basic Maltego script to geolocate IPv4Addresses using Freegeoip.net.