Skip to content

botlabio/threatcrowd-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

threatcrowd-python

A python wrapper for Thtreatcrowd API that introduces a very easy access method for repeated use and returns all the outputs in pandas dataframes for network graph or other analysis.

1. Getting Started

1.1 Get the module code to your environment

Copy https://raw.githubusercontent.com/botlabio/threatcrowd-python/master/threatcrowd.py to your local working directory (for example the directory you run Jupyter from).

import threatcrowd as tc

1.2 Receive the data object from Threatcrowd API

There are four different modes; domain, ip, email, antivirus. The domain mode is on by default.

1.2.1 domain:

o = tc.Threatcrowd('cnn.com')

1.2.1 ip:

o = tc.Threatcrowd('0.0.0.0','ip')

1.2.1 email:

o = tc.Threatcrowd('[email protected]','email)

1.2.1 antivirus:

o = tc.Threatcrowd('some hash or antivirus name','antivirus')

1.3 Access the data in the data object

For domain and ip objects there are more than 1 dataframes that come as the output:

df = o.run()
df[1] # shows the second dataframe in the object       

For email and antivirus there is just one result dataframe:

df = o.run()
df

About

A python wrapper for Thtreatcrowd API that returns all the outputs in pandas dataframes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages