Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a basic module out of malsub #17

Merged
merged 2 commits into from
Mar 23, 2020

Conversation

ITAYC0HEN
Copy link
Collaborator

This pull request improves the installation instructions and now it installs the module globally. This helps to use malsub as a module globally, and not only inside the cloned repository

import malsub
from malsub.service import serv as services

hashes = malsub.core.crypto.parse_hashl(
    "5f782447ff08ee2c36a5d3988dd4774674233f8ea0e1ad09dd766e842d785ddd",
    "58ffd8200db69cfbc048921e18d79aa1adc894af34db3e1782e53beab3b2d98f")

API_KEY = {'apikey': {'apikey': '...truncated...'}}

vt = services['vt']
vt.set_apikey(API_KEY)

for h in hashes:
    vt.download_file(h)

@diogo-fernan
Copy link
Owner

Cool, never thought of this before! I will update the README meanwhile.

@diogo-fernan diogo-fernan merged commit 689daa4 into diogo-fernan:master Mar 23, 2020
@diogo-fernan
Copy link
Owner

https://github.com/diogo-fernan/malsub#modularizing-malsub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants