Create a Simple PHP Shell Command Terminal
In this thread I (TechLab) will show you how to make a Super simple php command line shell.
This is similar to my X-Small shell which is under 200 bytes.
All credits go to Me TechLab!!!
To Begin
You need:
!# Basic html knowledge
!# A PHP host (in my case I am using a localhost)
!# And a brain (im my case I am using....)
First, create a php file and call it something such as shell.php.
Open it in a text editor.
Now, start the php with the opening and closing brakets:
In the php brackets we will create a php function and call it exec_cmd and add a if isset function to check to see if we have submitted any command:
In this thread I (TechLab) will show you how to make a Super simple php command line shell.
This is similar to my X-Small shell which is under 200 bytes.
All credits go to Me TechLab!!!
To Begin
You need:
!# Basic html knowledge
!# A PHP host (in my case I am using a localhost)
!# And a brain (im my case I am using....)
First, create a php file and call it something such as shell.php.
Open it in a text editor.
Now, start the php with the opening and closing brakets:
PHP Code:
<?php // code will go in here except for the html and calling the php function.?>
In the php brackets we will create a php function and call it exec_cmd and add a if isset function to check to see if we have submitted any command:
PHP Code: