PHP-Antimalware-Scanner icon indicating copy to clipboard operation
PHP-Antimalware-Scanner copied to clipboard

Changing scanner ERROR Uncaught PharException:

Open sachinghare opened this issue 4 years ago • 2 comments

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

sachinghare avatar Nov 06 '21 13:11 sachinghare

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\build or composer build to build the phar file
  • Check the file generated into dist/scanner

marcocesarato avatar Nov 07 '21 14:11 marcocesarato