BetaArchive Logo
Total Current Archive Size: 4765.54GB in 15409 files
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 7d, 7h, 48m | CPU: 21% | MEM: 5058MB of 12279MB used
{The community for beta collectors}

Forum rules


Before you post, please make sure...

- ...you have first used Google to look for an answer, and you have asked other people you know via other methods (IM, e-mail, etc).
- ...your question has not been asked before. Search the forum first before posting.

If you meet those criteria, go ahead and post your question. Be sure to provide as much information you can about the problem and how to recreate it. Also provide information on hardware and software if applicable.


Post new topic Reply to topic  [ 14 posts ] 
Author Message
 PostPost subject: A HTML kind of problem        Posted: Wed Apr 18, 2012 4:11 pm 
Amateur Beta Collector
Amateur Beta Collector
Offline

Joined
Sun Apr 11, 2010 8:48 am

Posts
99

Favourite OS
Archlinux
So here I am, asking help (again) from good BetaArchive community.

What im trying to do is to create a type of home page for webbrowser in HTML/Javascript under Linux, that would execute a program on a host system. For example: the browser loads, homepage comes up, there is a link for example "chromium" and when I click on that link, the chromium should open up on my computer.
I have searched the internet for this but no real answer I found from there (only some IE thingy with ActiveX and so on, which in my case, will not work).
I also know its a big security risk and so on, but I run the page locally anyway so maybe theres some workaround for this.

If anyone has a clue or tip how should I go about doing this, I'd really appreciate you to share it with me.
Thank you


Top  Profile
 PostPost subject: Re: A HTML kind of problem        Posted: Wed Apr 18, 2012 4:34 pm 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Mon Mar 19, 2012 10:47 pm

Posts
220

Favourite OS
2600
i'm glad this can't be done, think about it, it would be a serious security issue.


Top  Profile
 PostPost subject: Re: A HTML kind of problem        Posted: Wed Apr 18, 2012 4:39 pm 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Thu Dec 30, 2010 7:25 pm

Posts
1419
No way this can be done.


Top  Profile
 PostPost subject: Re: A HTML kind of problem        Posted: Wed Apr 18, 2012 5:26 pm 
Pro Beta Collector
Pro Beta Collector
Offline

Joined
Sat May 15, 2010 1:59 am

Posts
455

Location
Virginia, North America

Favourite OS
Longhorn 4074
Uh...? Why would you even want to do this? I'm fairly sure this can be done with php but you should not do this.

_________________
Deus damnaret eam!


Top  Profile
 PostPost subject: Re: A HTML kind of problem        Posted: Wed Apr 18, 2012 5:31 pm 
Amateur Beta Collector
Amateur Beta Collector
Offline

Joined
Sun Apr 11, 2010 8:48 am

Posts
99

Favourite OS
Archlinux
Theres no danger doing it locally


Top  Profile
 PostPost subject: Re: A HTML kind of problem        Posted: Wed Apr 18, 2012 5:45 pm 
Amateur Beta Collector
Amateur Beta Collector
Offline

Joined
Tue Mar 02, 2010 8:30 pm

Posts
147

Favourite OS
Windows 7 and Windows Vista
There is danger. Doing this may allow further wormholes to be made which allow malware in. I can't imagine any browsers doing this easily due to the security risks.


Top  Profile
 PostPost subject: Re: A HTML kind of problem        Posted: Wed Apr 18, 2012 6:19 pm 
Pro Beta Collector
Pro Beta Collector
User avatar
Offline

Joined
Thu Mar 29, 2012 4:14 pm

Posts
303

Favourite OS
6.3.9385
I remember when I looked into Activity Centers coding and I know this can be done but since it's a security flaw, you can PM me for the code.


Top  Profile  WWW
 PostPost subject: Re: A HTML kind of problem        Posted: Wed Apr 18, 2012 6:40 pm 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Mon Mar 19, 2012 10:47 pm

Posts
220

Favourite OS
2600
ka-la wrote:
Theres no danger doing it locally

I didn't say it is dangerous to do it locally.
I meant if JavaScript allowed execution of programs on the client machine, it would be possible either locally or remotely... here's the danger.
I know there's no risk doing this on your PC, but having such a feature in JavaScript would be easily exploitable.
Note you can't even get access to the filesystem in JS... features like these expose user's machine to security risks and are not needed at all for a client-side web interaction language.
Whistler4Ever wrote:
I remember when I looked into Activity Centers coding and I know this can be done but since it's a security flaw, you can PM me for the code.

:OD
Sure it's JavaScript?


Top  Profile
 PostPost subject: Re: A HTML kind of problem        Posted: Wed Apr 18, 2012 6:42 pm 
Amateur Beta Collector
Amateur Beta Collector
Offline

Joined
Sun Apr 11, 2010 8:48 am

Posts
99

Favourite OS
Archlinux
Well I dont really care which language it is in as long as I understand the code, also, indeed it would be dangerous remotley too but I knew there must be workaround for this.


Top  Profile
 PostPost subject: Re: A HTML kind of problem        Posted: Wed Apr 18, 2012 8:26 pm 
Site Moderator
Site Moderator
User avatar
Offline

Joined
Sun Apr 12, 2009 11:22 pm

Posts
705

Location
/dev/urandom

Favourite OS
W7x64, OSX
Simple.

Have a page which has a bunch of buttons on it, and have those buttons perform different actions using <?php system('program-to-launch-here');?>.

I do not recommend this solution this in the slightest. If I were you I'd throw together your own GTK application to do it instead.

_________________
Web developer, part-time moderator, full-time CSS wizard.


Top  Profile
 PostPost subject: Re: A HTML kind of problem        Posted: Wed Apr 18, 2012 8:48 pm 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Mon Mar 19, 2012 10:47 pm

Posts
220

Favourite OS
2600
Alpha-Critik wrote:
Simple.

Have a page which has a bunch of buttons on it, and have those buttons perform different actions using <?php system('program-to-launch-here');?>.

I do not recommend this solution this in the slightest. If I were you I'd throw together your own GTK application to do it instead.

Well, this needs a web server running, but it works.
Maybe it's an overkill, it's no longer "the simple HTML document" of the open post but it's absolutely a viable soluton.


Top  Profile
 PostPost subject: Re: A HTML kind of problem        Posted: Wed Apr 18, 2012 8:51 pm 
Amateur Beta Collector
Amateur Beta Collector
Offline

Joined
Sun Apr 11, 2010 8:48 am

Posts
99

Favourite OS
Archlinux
Alpha-Critik wrote:
Simple.

Have a page which has a bunch of buttons on it, and have those buttons perform different actions using <?php system('program-to-launch-here');?>.

I do not recommend this solution this in the slightest. If I were you I'd throw together your own GTK application to do it instead.


Not sure about coding in GTK yet, not so familar with Linux just yet.


Top  Profile
 PostPost subject: Re: A HTML kind of problem        Posted: Wed Apr 18, 2012 8:58 pm 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Mon Mar 19, 2012 10:47 pm

Posts
220

Favourite OS
2600
If it's OK to you to run Apache on your PC and write a little of Perl or PHP code instead of JS you're done.


Top  Profile
 PostPost subject: Re: A HTML kind of problem        Posted: Thu Apr 19, 2012 6:19 pm 
Amateur Beta Collector
Amateur Beta Collector
Offline

Joined
Mon Aug 24, 2009 6:53 pm

Posts
191

Favourite OS
Longhorn 4074 (Reloaded)
It's been done in OS's like xpud and Jolicloud, I don't know , take alook, but i think you require a specific browser.
alternativly, with firefox you can call files and just open them,n but it wouldn't be practical :
youcan use file://

_________________
█ ██ trust █ ██████ your ██████ ██ ███ government ███ ████ ██████ ██████ everything ██ ██████ ██ is ████ ███ fine.


Top  Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 




Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2013

 

Sitemap | XML | RSS