Extension:GoToShell

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
Deutsch • ‎English • ‎dansk • ‎español • ‎français • ‎polski • ‎português do Brasil • ‎sicilianu • ‎中文 • ‎日本語
MediaWiki extensions manual
Crystal Clear action run.svg
GoToShell
Release status: stable
GoToShell.png
Implementation Special page
Description Implements a special page that takes the user to shell and back
Author(s) Nathan Larson (Leucostictetalk)
Latest version 1.0.1 (2016-10-25)
MediaWiki 1.23+
PHP 5.3
Database changes No
License GNU General Public License 3.0 or later
Download
Parameters
$wgGoToShellCommand
Translate the GoToShell extension if it is available at translatewiki.net
Check usage and version matrix.

The GoToShell extension implements a special page that takes the user to shell and back. This extension is free software than can be modified and distributed under the terms of the GPL and/or the DWTSYWWI (Do Whatever The Shell You Want With It) license. By default, shell is reserved for bureaucrats only, but you can change $wgGroupPermissions so that other deserving users can go to shell too.

Installation and configuration[edit]

Installation[edit]

  • Download and place the file(s) in a directory called GoToShell in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/GoToShell/GoToShell.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration[edit]

$wgGoToShellCommand[edit]

Set this to whatever you want it to do; e.g. "ls -l", "./maintenance/php update.php --quick ", "rm -rf /incriminating_data", etc.

See also[edit]