Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path error can not write file scanner_infected.log #4

Closed
jacksonit opened this issue Mar 3, 2020 · 4 comments
Closed

Path error can not write file scanner_infected.log #4

jacksonit opened this issue Mar 3, 2020 · 4 comments

Comments

@jacksonit
Copy link

I stood at folder: /var/www/
Run: php scanner code/ -r

Result:
Files infected: 'phar:///var/www/scanner/scanner_infected.log'

If that is: Files infected: 'phar:///var/www/scanner_infected.log' ( not folder scanner )

@marcocesarato
Copy link
Owner

The issue should be resolved with version 0.5.0.70 let me know if is solved also for you

@jacksonit
Copy link
Author

jacksonit commented Mar 12, 2020

The issue should be resolved with version 0.5.0.70 let me know if is solved also for you

First thank you very much.
But it appears some error, perhaps due to packed files.
Screenshot_1

The fix that I must add the file copy in : https://github.com/marcocesarato/PHP-Antimalware-Scanner/tree/master/src
is the same level with the file scanner.

Screenshot_2

It's not like at first was only just file scanner. But so is very good then. Thank you again!

@jacksonit
Copy link
Author

I fixed the following:

File: File src\Application.php
return preg_replace('/^phar:\/\//i', '', __DIR__));
replace
return dirname(preg_replace('/^phar:\/\//i', '', __DIR__), 1);

File: src\index.php

include './Argument.php';
include './Argv.php';
include './Console.php';
include './CSV.php';
include './Definitions.php';
include './Flag.php';
include './Deobfuscator.php';
include './Application.php';

replace

include 'Argument.php';
include 'Argv.php';
include 'Console.php';
include 'CSV.php';
include 'Definitions.php';
include 'Flag.php';
include 'Deobfuscator.php';
include 'Application.php';

@marcocesarato
Copy link
Owner

On new release is solved. Thank you for your support, next time you can create a pull request so you can have some credits ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants