nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Access UNIX Shell via PHP Based Frontend

This is a discussion on Access UNIX Shell via PHP Based Frontend within the Shell scripting forums, part of the Development/Scripting category; hey all,, i have heard that it is possible to run linux/unix commands via website.. i heard that there is ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 08-28-2008, 03:18 AM
Member
User
 
Join Date: May 2008
My distro: Debian
Posts: 42
Rep Power: 0
eawedat is on a distinguished road
Smile Access UNIX Shell via PHP Based Frontend

hey all,,
i have heard that it is possible to run linux/unix commands via website..
i heard that there is a script which lets users to control their ssh accounts via browsing and typing in text box which is located in website..

I know that this kind of script is coded in C or PHP but am not sure.!

for example...
lets say that u have website address and the script is located into it
http://www.example.com/script.php

if u enter this website there will be many things
including boxes for typing into them (empty boxes to write command
many squares of permissions(chmod)
and a small screen of output in same website.(script)

as i know,, hackers use this kind/type of shells for brute-forcing safe mode.
I need a normal script that only runs shell commands via website.
I need a clean and simple script!


thanks.

Last edited by nixcraft; 08-28-2008 at 03:45 AM..
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-28-2008, 03:48 AM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Quote:
PHPterm is a terminal/shell emulator for PHP which let's you execute shell commands just like in a shell, but all within your browser window over the HTTP protocol. It aims to provide the look and feel of konsole, the KDE terminal.
SourceForge.net: PHP Shell Terminal

Quote:
PHP Interactive is an interactive shell for PHP that runs via web. It's useful to test snippets of code in an easy way.
PHP Interactive - an interactive shell for PHP
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #3 (permalink)  
Old 08-29-2008, 12:42 AM
Member
User
 
Join Date: May 2008
My distro: Debian
Posts: 42
Rep Power: 0
eawedat is on a distinguished road
Smile rockdalinux

thank you very much rockdalinux
but still one thing
for your notice,, i have no root access,, but yes i have access to my website via my SSH,
i made a directory and named it "public_html" and put my web pages there
and it works
so will the scripts work with me?

INSTALLATION
In order to install PHP Interactive you need to extract the
tar.gz inside your web root and make sure that the owner of
the web server process is able to write inside the "scripts" directory.

Last edited by eawedat; 08-29-2008 at 12:43 AM.. Reason: a
Reply With Quote
  #4 (permalink)  
Old 08-29-2008, 02:25 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,061
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Yes, it should work as long as you have write access. Do you login using FTP or sftp or ssh?
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 08-29-2008, 03:16 AM
Member
User
 
Join Date: May 2008
My distro: Debian
Posts: 42
Rep Power: 0
eawedat is on a distinguished road
Smile

I could login with sftp && ssh.
Reply With Quote
Reply

Bookmarks

Tags
open shell from browser , php shell , php unix shell


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
UNIX Shell Change the EOL (\n newline) by nothing - remove new line permalac Shell scripting 5 05-15-2008 12:03 AM
unix shell on windows xp chiku Solaris/OpenSolaris 4 03-07-2008 04:17 PM
Linux UNIX SFTP in a Shell Script Nishanthhampali Shell scripting 1 01-30-2008 02:16 PM
SCP with a bash shell password linux and unix servers jerry Networking, Firewalls and Security 1 06-09-2007 06:53 PM
Debian recovery mode read only access make it write access Donavit Linux software 1 12-30-2005 01:49 AM


All times are GMT +5.5. The time now is 02:32 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36