CLI wrapper for malware bazaar API (bazaar.abuse.ch)
Project description
(Malware)Bazaar
A MalwareBazaar API wrapper and CLI
Installation
pip install malwarebazaar
or, for pure cli usage, you can grab one of the prebuilt binaries.
Usage
Python
from malwarebazaar.api import Bazaar
bazaar = Bazaar("myapikey")
response = bazaar.query_hash("Hash to search for.")
file = bazaar.download_file("Sha256 hash for file to donwload.")
CLI
$ bazaar init myapikey
Successfully set API-Key!
$ bazaar query hash f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807
Filename: 03891ab57eb301579005f62953dfd21e.exe
MD5: 03891ab57eb301579005f62953dfd21e
SHA1: 41efd56ea49b72c6dd53b5341f295e549b1b64a5
SHA256: f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807
Imphash: f34d5f2d4577ed6d9ceec516c1f5a744
Signature: RedLineStealer
Tags: exe, RedLineStealer
$ bazaar download f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807
$ file f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807.zip
f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807.zip: Zip archive data, at least v5.1 to extract
$ bazaar download f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807 --unzip
$ file f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807.exe
f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807.exe: PE32 executable (GUI) Intel 80386 Mono/.Net assembly, for MS Windows
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
malwarebazaar-0.1.3.tar.gz
(8.7 kB
view hashes)
Built Distribution
Close
Hashes for malwarebazaar-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c79191bcc5d0e7ae5c17a539a4282d3041d61d594bd919aae241034a6670620c |
|
MD5 | f860cedbd1e5d846dbe09dc3bb3a1efe |
|
BLAKE2b-256 | 01304ca58387832281fc14427391a0a5c92b9c1e9cf9fc321b989a99ba625d5b |