Install
Release
You can use one of these methods to install the scanner downloading it from github or directly from console.
Download from browser
Go on GitHub page and press on Releases tab or download from here
Download from console
-
Run this command from console (scanner will be download on your current directory):
wget https://raw.githubusercontent.com/marcocesarato/PHP-Antimalware-Scanner/master/dist/scanner --no-check-certificate -
Run the scanner:
php scanner ./dir-to-scan -l ... -
Optional Install as bin command (Unix Bash)
Run this command:
wget https://raw.githubusercontent.com/marcocesarato/PHP-Antimalware-Scanner/master/dist/scanner --no-check-certificate -O /usr/bin/awscan.phar && \printf '#!/bin/bash\nphp /usr/bin/awscan.phar $@' > /usr/bin/awscan && \chmod u+x,g+x /usr/bin/awscan.phar && \chmod u+x,g+x /usr/bin/awscan && \export PATH=$PATH":/usr/bin"Now you can run the scanner simply with this command:
awscan ./dir-to-scan -l # ...
Source
Download
Click on GitHub page "Clone or download" or download from here
Composer
The package is available on Packagist.
Global Installation (recommended)
For system-wide installation:
-
Install the package globally:
composer global require marcocesarato/amwscan -
Run the scanner:
php $(composer global config home)/vendor/marcocesarato/amwscan/src/index.php <path-to-scan> [options] -
Optional Create an alias for easier usage:
alias amwscan='php $(composer global config home)/vendor/marcocesarato/amwscan/src/index.php'Then you can run:
amwscan <path-to-scan> [options]
Project-Level Installation
For installing within a specific project:
-
Install composer (if not installed)
-
Install the package using composer:
composer require marcocesarato/amwscan -
Run the scanner:
php vendor/marcocesarato/amwscan/src/index.php <path-to-scan> [options]
Git
-
Install git
-
Copy the command and link from below in your terminal:
git clone https://github.com/marcocesarato/PHP-Antimalware-Scanner -
Change directories to the new
~/PHP-Antimalware-Scannerdirectory:cd ~/PHP-Antimalware-Scanner/ -
To ensure that your master branch is up-to-date, use the pull command:
git pull https://github.com/marcocesarato/PHP-Antimalware-Scanner
Docker
-
Download the source
-
Build command
docker build --tag amwscan-docker . -
Run command
docker run -it --rm amwscan-docker bash