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]
PHP Web System Interface
Moderators: Moderator, Global Moderator
PHP Web System Interface
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.
[18:09:00] * ~Moppy stews ner0 erotically 1 times.
PHP Web System Interface
*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:\' />
Nice idea paul
us3rX
[align=center]

"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]

"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]
PHP Web System Interface
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*
*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.
[18:09:00] * ~Moppy stews ner0 erotically 1 times.
PHP Web System Interface
heh very cool. Looks like I might have to get a webserver running on my brother's computer (6)
PHP Web System Interface
Great idea paul
/biggrin.gif\' class=\'bbc_emoticon\' alt=\':D\' />

