I want to launch (not install) an .apk/.bat/sh files when clicked on the website in the Without warning or downloading. I found that codes in php offical website:
<?php $WshShell = new COM("/home/user/Desktop/test.sh /C");
$oExec = $WshShell-\>Run("cmd /C dir /S %windir%", 0, false);
?\>
Im running from Linux in VSCodiumBut i have a dot com problem:
PHP Fatal error: Uncaught Error: Class 'COM' not found in /home/user/Desktop/test.php:6 Stack trace: #0 {main} thrown in /home/user/Desktop/test.php on line 6
I tried to add the extension and add the code in php.ini it got worse i guess, now it gives me that error:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_com_dotnet.dll' (tried: /usr/lib/php/20190902/php_com_dotnet.dll (/usr/lib/php/20190902/php_com_dotnet.dll: invalid ELF header), /usr/lib/php/20190902/php_com_dotnet.dll.so (/usr/lib/php/20190902/php_com_dotnet.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Im not sure did i add the code right and the file with correct location.
Its solved. Appears you cant do without any permission or launch auto from inside of website. And more than that it has to vulnerabilities.