Software feedback > MRF

Need Advice on Cron Job

<< < (3/3)

Tigzy:
Yes but it wasn't tested yet. We know some people got error with it, so it's not surprising.
It's scheduled though, will be in next version. We'll also consider publishing a Docker image

RazorBurn:

--- Quote from: Tigzy on January 16, 2018, 02:10:28 pm ---Yes but it wasn't tested yet. We know some people got error with it, so it's not surprising.
It's scheduled though, will be in next version. We'll also consider publishing a Docker image

--- End quote ---

Thanks, Docker Image is huge + for me. Save me time setting up MRF. Focusing instead in Cuckoo, Viper, & other tools.

RazorBurn:
Any Idea how to use the virustotalscan API in MRF. A sample script maybe like the upload script examle  in MRF documentation.


--- Code: ---POST
http://localhost/api.php?token=my_token&action=virustotalscan
parameters:
hash=the_md5
return data: HTTP code 200 if success
--- End code ---

Limiting to only 4 request per minute for VT Public API..

Tigzy:
Hey, I guess something like this should work (untested)


--- Code: ---import json
import os
import requests
 
# Parameters, don't forget to modify
apikey      = "your_token"
host        = "mrf.yourserver.com"
urlserver   = "http://mrf.yourserver.com/api.php?action=virustotalscan"
md5         = "the_md5_of_the_file_already_uploaded"
 
def post_multipart(host, selector, fields):
    headers = {'user-agent': 'Dionaea honeypot'}
    r = requests.post(selector, headers=headers, data=fields)
   
def ScanFile():                 
    parameters = {"hash": md5}
    post_multipart(host, urlserver, parameters)

--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version