Stan,
We have escalated your query to our senior technical team. We will get back to you once there is an update from them. Appreciate your patience.
Hello Stan,
Help for the ashcmd.exe is available with /? parameter (ashcmd.exe /?) - this will display all available commands and their usage. Command to scan one specific file would be ashCmd.exe "<file location>" e.g. (ashCmd.exe "C:\eicar.com") - the sample of this scan file is emailed to you. Please check the same and if you face any difficulties, feel free to contact us.
Hello,
This is my PHP code I used for this.
mkdir('file/' . $naam); $destination = "file/" . $naam . "/" . $_FILES['execute']['name']; $filename = $_FILES['execute']['tmp_name']; move_uploaded_file($filename, $destination); $cmd = ' cd C:\Program Files (x86)\AVG\Antivirus & ashCmd.exe C:\xampp\htdocs\virusscanner\ ' . "$destination"; /*$output = shell_exec($cmd);*/ echo $cmd; exec("$cmd 2>&1", $output, $return_var);
Error I got:
cd C:\Program Files (x86)\AVG\Antivirus & ashCmd.exe C:\xampp\htdocs\virusscanner\ file/53142/test.exe int(42003) return_var is: 42003 array(1) { [0]=> string(110) "Error m_Screen.Initialize - initialization of class CScreen failed. Contact us with error description, please." } Notice: Undefined variable: ouput in C:\xampp\htdocs\virusscanner\go.php on line 23 output is :
Hope you guys know what I did wrong here.
Regards,
Stan
Eya,
I was wondering how the Ashcmd.exe is working, haven't seen een support page for it.
So I was wondering how I could scan an specific file. and if it is a virus how can I display the virus name. ect, ect,
I hope someone on this community support can help me out!
Regards,
Stan
Stan,
I apologize for the delay in response. Please be informed that we can not help you in this situation as it is your own code. If you has issues executing commands manually then we of course can help.
Hello Stan,
Help for the ashcmd.exe is available with /? parameter (ashcmd.exe /?) - this will display all available commands and their usage. Command to scan one specific file would be ashCmd.exe "<file location>" e.g. (ashCmd.exe "C:\eicar.com") - the sample of this scan file is emailed to you. Please check the same and if you face any difficulties, feel free to contact us.
Hey,
I got working, and wanted it to implent it inside my website.
This is what the error said: Error m_Screen.Initialize - initialization of class CScreen failed. Contact us with error description, please.
But I could find any description, maybe you guys know what I did wrong here, i'm using PHP with the exec function.
Regards
Thank you for the information.
The command provided was actually to scan a particular file in the PC but it seems that you tried in your website.
May I know what is the command that you entered and provide the (screenshot) of error window that appeared.
You can post the screenshot here in your topic. Click on 'Answer' & then click on the 'Image' [mountain symbol] & follow the instructions.
Thank you for providing the information through screenshot.
I have forwarded the case to senior team for getting suggestion.
Keep checking this post to know about the status.
Your patience is much appreciated.
Hello,
This is my PHP code I used for this.
mkdir('file/' . $naam); $destination = "file/" . $naam . "/" . $_FILES['execute']['name']; $filename = $_FILES['execute']['tmp_name']; move_uploaded_file($filename, $destination); $cmd = ' cd C:\Program Files (x86)\AVG\Antivirus & ashCmd.exe C:\xampp\htdocs\virusscanner\ ' . "$destination"; /*$output = shell_exec($cmd);*/ echo $cmd; exec("$cmd 2>&1", $output, $return_var);
Error I got:
cd C:\Program Files (x86)\AVG\Antivirus & ashCmd.exe C:\xampp\htdocs\virusscanner\ file/53142/test.exe int(42003) return_var is: 42003 array(1) { [0]=> string(110) "Error m_Screen.Initialize - initialization of class CScreen failed. Contact us with error description, please." } Notice: Undefined variable: ouput in C:\xampp\htdocs\virusscanner\go.php on line 23 output is :
Hope you guys know what I did wrong here.
Regards,
Stan
Stan,
We have escalated your query to our senior technical team. We will get back to you once there is an update from them. Appreciate your patience.