Skip to content

antonini/API-malwr.com

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python API for malwr.com

Usage

You can check API_example.py for advanced usage.

Import the class:

from MalwrAPI import MalwrAPI

Then, here are the different features:

Submit a sample

res = MalwrAPI(True).submit_sample('/tmp/test.txt')
print res

Get recent domains

res = MalwrAPI(True).get_recent_domains()
print res 

Get public tags

res = MalwrAPI(True).get_public_tags()
print res 

Get recent analyses

res = MalwrAPI(True).get_recent_analyses()
print res 

Get latest comments

res = MalwrAPI(True).get_latest_comments()
print res 

Get search results

res = MalwrAPI(True, "LOGIN_TO_MALWR.COM","PASSWORD_TO_MALWR.COM").search("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)

About

(Unofficial) Python API for https://malwr.com/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%