PHP Web System Interface

Support, Snippets & Projects

Moderators: Moderator, Global Moderator

Post Reply
ner0
Hero Member
Hero Member
Posts: 982
Joined: Sat May 22, 2004 4:45 pm

PHP Web System Interface

Post by ner0 »

Well there came a time in college last week when I realised I needed to be able to interact with my home pcs, from college.

The first thing that popped into my head was SSH, only the college firewall has putty (popular windows ssh client) blocked, along with most outgoing ports...

so, how could I accomplish this using the resources already available.. these being IE.. and um, nothing.. its IE or bust (fun)

well just tonight I decided I\'d make a lil web interface to execute programs on a system from any other remote system with a web browser and an internet connection.

this script will work on both windows/linux, possibly other operating systems providing PHP is installed... so without further ado...

[url=\"http://ner0.homelinux.com/dev/php/projects/ssh/index.phps\"]index.phps[/url] (index page, basic login system.)
[url=\"http://ner0.homelinux.com/dev/php/projects/ssh/ssh.phps\"]ssh.phps[/url] (handles login info and sets cookies as necessary (also the main interface for command execution))
[url=\"http://ner0.homelinux.com/dev/php/projects/ssh/sshexe.phps\"]sshexe.phps[/url] (main execution page, returns results etc in a suitable format (will only work if cookie present))

rename these files to have a .php extension, and place them all in the same directory on your php enabled webserver.. then edit the ssh.php file (where to edit is clearly indicated) to match your desired username/password combination

bear in mind that anyone accessing this script will have equal access to your system as that of PHP, so if your webserver/php runs as root, anyone accessing the script will have full access to init/rm/passwd functions... the security of this script is therefore a reason for concern...

[b]PLEASE NOTE: IT IS THE RESPONSIBILITY OF THE USER, AND NOT OF THE SCRIPT CREATOR OR KILLANET THAT THIS SCRIPT IS SECURED, USE *SHOULD* BE RESTRICTED USING METHODS BEYOND THE SCOPE OF THIS SCRIPT[/b]
Last edited by ner0 on Sun Apr 24, 2005 10:17 pm, edited 1 time in total.
[color=\"green\"]'class KPIM::ProcessManager' only defines private constructors and has no friends[/color] <- :( poor class



[18:09:00] * ~Moppy stews ner0 erotically 1 times.
us3rX
Hero Member
Hero Member
Posts: 1194
Joined: Thu May 06, 2004 6:11 am

PHP Web System Interface

Post by us3rX »

*downloads, then shuts down pauls computer* /diablo.gif\' class=\'bbc_emoticon\' alt=\'(evil)\' /> lol

Nice idea paul /biggrin.gif\' class=\'bbc_emoticon\' alt=\':D\' /> *goes to test*

us3rX /ph34r.gif\' class=\'bbc_emoticon\' alt=\':ph34r:\' />
[align=center]

Image

"Time is never wasted, when your wasted all the time" ~ Radio Dj/Unknown Source

"Death is the inevitable end to the suffering of the living." ~Unknown

"You were born an original. Don't die a copy" ~Murdoc Niccals

[/align]
ner0
Hero Member
Hero Member
Posts: 982
Joined: Sat May 22, 2004 4:45 pm

PHP Web System Interface

Post by ner0 »

lol, good thing my passwords don\'t match the ones in the php sources eh /bigwink.gif\' class=\'bbc_emoticon\' alt=\';)\' />

*steals your cookie.. it should be running out soon anyway lol*
[color=\"green\"]'class KPIM::ProcessManager' only defines private constructors and has no friends[/color] <- :( poor class



[18:09:00] * ~Moppy stews ner0 erotically 1 times.
radar
Hero Member
Hero Member
Posts: 632
Joined: Thu Jun 17, 2004 12:37 am

PHP Web System Interface

Post by radar »

heh very cool. Looks like I might have to get a webserver running on my brother's computer (6)
Trinity
Hero Member
Hero Member
Posts: 808
Joined: Wed May 05, 2004 9:19 am

PHP Web System Interface

Post by Trinity »

Great idea paul /biggrin.gif\' class=\'bbc_emoticon\' alt=\':D\' />
Post Reply

Return to “PHP &amp; MySQL”