Skip to content

Latest commit

 

History

History
75 lines (53 loc) · 1.25 KB

README.md

File metadata and controls

75 lines (53 loc) · 1.25 KB

Python API for malwr.com

Usage

Import the class:

from MalwrAPI import MalwrAPI

Then, here are the different features:

Submit a sample

res = MalwrAPI({'verbose': True}).submit_sample('/tmp/test.txt')
print res

Get recent domains

res = MalwrAPI({'verbose': True}).get_recent_domains()
print res 

Get public tags

res = MalwrAPI({'verbose': True}).get_public_tags()
print res 

Get recent analyses

res = MalwrAPI({'verbose': True}).get_recent_analyses()
print res 

Get latest comments

res = MalwrAPI({'verbose': True}).get_latest_comments()
print res 

Get search results

res = MalwrAPI({'verbose': True}).search("LOGIN_TO_MALWR.COM","PASSWORD_TO_MALWR.COM","STRING_TO_SEARCH")
print res 

Improvements

So far, the API is pretty basic and submit files anonymously (not linked to your account). Next steps are: authentication on malwr.com, add search feature but also retrieve information about a specific sample.

Contributing

Code was just a quick and dirty PoC, feel free to open issues, contribute and submit your Pull Requests. You can also ping me on Twitter (@PaulWebSec)