Software feedback > MRF

Help to make mrf useable

(1/2) > >>


Recently i deploy mrf on ubuntu 16.04 on php 7.01 and facing lot's of problem till i install some additional php package and some of it slove. now i have some problem and question.

Question & Error
1- does crone check virustotal api for find if file is malicious or not? now virustotal api answer 4 file every min and new apiv2. please update it.
2-i have 2 tb malware is there any python script that i can run in malware folder and all malware send to mrf?
3- my page is redirect to ip/index.php not to ip/mrf/index.php which line of config file should i change?
4- when i want to upload big file i face error for php.ini i use ; for maxfilesize but it's not correct. any idea.?
5-when i upload file i face this error "upload results in empty"
6- could you make a time period for download malware sample for example download file from 2017/01/01 to 2017/02/01 and add this functionality to api too.
7- please add socks or http proxy for query from virustotal api.
and there is some question i think may be you should test mrf on ubuntu 16.04 with php 7 and update documentation.

Thanks for attention.

Hey ashkan :)

Our live environments are under ubuntu 16.04 + php5. If you can downgrade php until we cover php7 that is fine (it's in our roadmap for next version).
Let me answer question by question below:

1/ Cron indeed looks for missed hashes on VirusTotal. If your API becomes limited at some point it will skip files once you reach the limit (until next cron iteration).
I'm not sure to understand your question regarding VT API v2, we are already using v2.
2/ Yes please look at API documentation, there's a python upload script example. Feel free to reuse and modify:
3/ You need to prepend /mrf to every page in the "leftnav" section and also in "urls/baseurl":
4/ do you have specific error in your apache logs? php.ini would be indeed the place to modify (upload_max_filesize and post_max_size)
5/ same question, do you have any error? Can you show me the config file, especially the "urls/storagePath" ? Make sure this folder exists and is in php available basedir
6/ you can use the search (date field) then bulk select (checkbox in the toolbar) and use "Download ZIP" button (under "Download" multibutton)
7/ can you tell me the purpose of using socks instead of http queries?


Hello again thanks to replay me. some thins is not clear that i'll mention.

1- i upload error log's that may be usefull for finding error.
2- if you make proxy for virustotal we can query to virustotal with different with some account and then we can have more result. bypass limit for qury 4 file per min
3- please change virustotal query. to check hash not send file to vt. it's very important for me to not send every thing to virustotal.
4- i cant upload file more than 10mb i change php.ini and upload_max_filesize and post_max_size and jquery file size upload nothing correct.
5- i config python upload script example and put it at my honeypot folder that malware saved on it. but when i start the python script nothing happen. and there isn't return me any error. so could you help me to sure that's python script work.


Hey ashkan,

1/ As for the errors, if you are still on Apache 7 this is normal. We haven't tried to run it under this version yet, and it probably needs a few fixes.
Also, I see python errors, you are missing some prerequisites:
2/ I don't think they would like it, honestly. If you need a higher API please ask them. They are kind and often give you what you need (if reasonable). Also, unless you have a shared key changing the IP won't give you much queries.
3/ This can be done in the config file: Check under modules:virustotal:automatic_upload, and turn it off with "false".

--- Code: ---// True/False, whether you want to automatically upload unknown samples on submission.
// If False, only a check is done, and manual upload is possible later.
--- End code ---
4/ I'd say this is because of this:

--- Code: ---[Wed Nov 08 10:59:32.986505 2017] [:error] [pid 7928] [client] PHP Warning:  POST Content-Length of 18807099 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: http://[redacted]/mrf/index.php
--- End code ---
They say because of post_max_size:
5/ Have you tried to call it directly see if there's an error? It should return something.

Hello again,
thanks to replay
1- you said "Have you tried to call it directly see if there's an error? It should return something." i set the configuration on "Upload script example" and try to run file like "python" in bash. how can i run it as standalone python program without call it?

2- you said in configure "To use the cron, enable it in the config file. Then register this file in the cron list (donít forget to provide a token with enough rights):

what does mean "donít forget to provide a token with enough rights". could you explain more. should i take this corn php file. in cron.hourly on linux? or call this link "http://localhost/cron.php?token=edfe238e15c964e8a8218cf218e43dc1"


[0] Message Index

[#] Next page

Go to full version