Page 1 of 1
about using system()
Posted: Tue Jul 13, 2004 4:48 am
by bugthefixer
how can i use system() to access comand prompt of user that is executing my page on client side.
Posted: Tue Jul 13, 2004 9:46 am
by feyd
you can't.
Posted: Tue Jul 13, 2004 10:02 am
by Joe
That is impossible in PHP im afraid. My suggestion would be to set up a perl script and use:
system("CMD");
Posted: Tue Jul 13, 2004 10:04 am
by feyd
that would still execute on the server...
Posted: Tue Jul 13, 2004 10:06 am
by Joe
Not if the user was to execute the perl application on their machine. I have just tried and tested it with great results...
Posted: Tue Jul 13, 2004 10:08 am
by d3ad1ysp0rk
Yes, but that would require them either:
a) being dumb enough to download it and open it without knowing what it is
b) you finding a way to assure users it isnt malicious
Posted: Tue Jul 13, 2004 10:14 am
by kettle_drum
Yeah it works if they run it on there machine, but no user should incase the script is malicious. The only way you should be able to run anything on a users system is if you exploit a hole in their browser - which you shouldnt be doing!
Posted: Tue Jul 13, 2004 10:21 am
by Joe
Well I was just telling what I know.