/    Sign up×
Community /Pin to ProfileBookmark

How can shutingdown computer by javascript code

hi
plz solve my problem. i want to know function or method to shutdown computer by click a button.

it possible in javascript or vbscript or ASP.

plz help me..

to post a comment
JavaScript

9 Comments(s)

Copy linkTweet thisAlerts:
@disgracianMar 27.2007 — I don't know why you'd want to even try to do this.

Cheers,

D.
Copy linkTweet thisAlerts:
@nilesh16782authorMar 27.2007 — thank for your intrest.

it is not subject "WHY"... in many situation the end-user want to know "WHAT" IT IS POSSIBLE OR NOT??

so that i want to know it can be done or not...

it is possible if javascript/vbscript called as magical language.

once againg thank ...

waiting for your reply..
Copy linkTweet thisAlerts:
@felgallMar 27.2007 — Sure it is possible provided that you can figure out a way to make the computer that you want to shut down fit into the electronic content of your web page. If it isn't part of your web page then you have no legal access.
Copy linkTweet thisAlerts:
@ZnupiMar 27.2007 — If you want to shut down your own computer via a browser, you can do it server-side, for example in PHP:
[code=php]
exec("shutdown -s -t 00 -c PHP is shutting your computer down!");
// or simply...
shutdown -s -t 00 -c PHP is shutting your computer down!
[/code]

You cannot go and shut down a user's computer just by calling a javascript function, that would be... uhm... a security breach... you'd have to make some sort of client-side trojan or whatever (there are some out there)...
Copy linkTweet thisAlerts:
@rootMar 27.2007 — Yes, sure you can, just like elfs and pixies live at the bottom of my garden...
Copy linkTweet thisAlerts:
@disgracianMar 27.2007 — Well I asked why, because I can't think of a single non-malicious reason you could have to want to know how to do this. Can you offer one?

Cheers,

D.
Copy linkTweet thisAlerts:
@slaughtersMar 27.2007 — He wants to write code that causes peoples PC's to boot when they run it. How can that be anything else but malicious ?
Copy linkTweet thisAlerts:
@felgallMar 27.2007 — That PHP code would probably be disabled on shared hosting since rebooting a shared web host from within one of the sites hosted on it would not be acceptable. If it did somehow get to run the obvious response from the web hoast would be to delete the offending account for breach of their terms of service. The only situation where it could ever possibly work is on dedicated hosting where your site is the only one hosted on the computer where the only affect that you can have by rebooting is to make your own site unavailable for anyone to access until the computer finishes rebooting and all the necessary services to run the site are restarted. As there are plenty of things that can go wrong during that process it would be quicker and easier to get someone onsite at the data centre to manually reboot.
Copy linkTweet thisAlerts:
@LeeUMar 27.2007 — O.k., since nilesh16782 doesn't give a good answer as to why (which I'm not sure there is one but for what Stan mentioned), this thread is closed.
×

Success!

Help @nilesh16782 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...