WShell - Comandos do sistema via web
Publicado por Angelito Monteiro Goulart (última atualização em 22/03/2010)
[ Hits: 9.260 ]
Homepage: http://angelitomg.com
Script que permite executar comandos do sistema através do browser. Utiliza-se da função shell_exec() do PHP.
<?php
#######################
# WShell
# Angelito M. Goulart
# angelito@bsd.com.br
#######################
$comando = $_POST['comando'];
$resultado = shell_exec("$comando");
?>
<html>
<head>
<title>WShell</title>
<style type="text/css" rel="stylesheet">
body{
padding:0;
margin: 0;
font-family: tahoma, verdana, arial, sans-serif;
text-align: center;
}
#principal{
text-align: left;
width: 400px;
margin: 0 auto;
}
.centro{
text-align: center;
}
.titulo{
font-weight: bold;
font-size: 40px;
text-align: center;
}
</style>
</head>
<body>
<div id="principal">
<h1 class="titulo">WShell</h1>
<br />
<h3>Comando</h3>
<form name="form1" action="index.php" method="POST">
<input size="55%" type="text" name="comando" />
<br />
<input type="submit" value="Executar Comando" />
</form>
<h3>Saida da linha de comando</h3>
<textarea rows="7" cols="50%">
<?php
echo $resultado;
?>
funcões para conversao de uma string
Berry Bank: Criando um Banco Digital Gamificado para seus Filhos com Gentoo, Flask e Tailscale
Papagaiando o XFCE com temas e recursos
Instale o DOOM Retro no Gentoo facilmente via Overlay
Steam (Flatpak) rodando jogos em partição NTFS
O dock Plank + U-Launcher deixam qualquer desktop mais produtivo
Instalar Linux em notebook Sony Vaio VPCEG13EB (17)
Alguém tem que acabar com ANATEL!!! (10)
O que você está ouvindo agora? [2] (229)









