WShell - Comandos do sistema via web
Publicado por Angelito Monteiro Goulart (última atualização em 22/03/2010)
[ Hits: 9.242 ]
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;
?>
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
Gentoo: Trocando wpa_supplicant pelo iwd no NetworkManager (Systemd)
OCS Inventory NG: Instalação de Agentes Linux e Windows + Autenticação HTTP
Recriar Links Simbólicos Quebrados
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!
Removere linux-image-6... [RESOLVIDO] (2)
Quando vocês pararam de testar distros? (19)
O que houve com slackware ??? (6)









