Skip to content

mtrefzer/plugin-resultAsJson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

What is phpMussel?

An ideal solution for shared hosting environments, where it's often not possible to utilise or install conventional anti-virus protection solutions, phpMussel is a PHP script designed to detect trojans, viruses, malware and other threats within files uploaded to your system wherever the script is hooked, based on the signatures of ClamAV and others.


What's this repository for?

This repository, "plugin-resultAsJson", is the repository for a phpMussel plugin that allows you receive the detection output in JSON format.

The core phpMussel repository: phpMussel.


How to install?

Add the following section to your phpmussel.ini file and edit accordingly:

[resultAsJson]
; Output the result as JSON, default = false
use_json=true
; If this value is set, the plugin checks if a request parameter with this name exists. 
; Finding the parameter, the json output is sent. If the parameter is missing
; the usual html response is sent.
; If this value is empty, always json is used for the response.
use_json_flag='phpmussel'

Upload the "resultAsJson" directory of this repository and all its contents to the "plugins" directory of your phpMussel installation (the "plugins" directory is a sub-directory of the "vault" directory).

Instead of the html result you receive JSON:

{ 
	"origin" : "IP address",
	"objects_scanned" : 1,
	"detections_count" : 1,
	"scan_errors" : 0,
	"killdata" : "MD5 signature reconstruction (File-HASH:File-Size:File-Name)",
	"detections" : "text whyflagged" 
}

That's everything! :-)


Last modified: 13 July 2017 (2017.07.13).

About

Plugin for phpMussel to receive the detection data as JSON response

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages