Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from threatcrowd import utils as tc_utils
import argparse
def main():
parser = argparse.ArgumentParser(description='Tool to take data and insert it into graphdatabase')
parser.add_argument('-d', '--domain', help="Domains to look up", default=None)
parser.add_argument('-e', '--email',help='Emails to look up', default=None)
parser.add_argument('-hx', '--hash', help='Hashes to look up', default=None)
parser.add_argument('-i', '--ip', help='IP address to look up', default=None)
args = parser.parse_args()
if args.domain:
tc_utils.add_domain_lookup(args.domain)
if args.email:
tc_utils.add_email(args.email)
if args.hash:
tc_utils.add_file_hash(args.hash)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.