Last active
September 8, 2018 13:54
-
-
Save planglois925/1c6f984fc5802b163f2ea45428d37e3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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