PHP-Antimalware-Scanner
PHP-Antimalware-Scanner copied to clipboard
Changing scanner ERROR Uncaught PharException:
Hi,
I have edited the /scanner file to send report via POST json method and it throws following error, even after removing empty lines it throws the same error. Can you help with the reason?
php scanner /home/ --auto-skip PHP Fatal error: Uncaught PharException: phar "/scanner" does not have a signature in /scanner:8 Stack trace: #0 /scanner(8): Phar::webPhar() #1 {main} thrown in /scanner on line 8
Regards
Hi, if you have modified the phar file probably for you is better following the steps below:
- Clone the repository
- Edit the code inside
src - Run from the root of the project
php bin\buildorcomposer buildto build the phar file - Check the file generated into
dist/scanner