Thread: Order of Operations Question

  1. #31
    Registered User
    Join Date
    Feb 2004
    Posts
    35
    Quote Originally Posted by major_small
    um, no... say I write program and name it 'Pause.exe'. then I put it in the win32 folder on YOUR computer while you're not watching... then you run you program and it calls 'pause'. your program can't tell the difference, so it runs the only pause.exe in the folder. your program runs mine which then connects to the internet and sends me every keystroke you type for the next month...
    Well, if you first got to replace pause.exe with your spyware installer, you could just as well put it in the Startup folder.
    Besides, with the amount of batch files I've written for various purposes, 'pause' would probably be executed anyway.

  2. #32
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Just because there's two ways to do damage doesn't mean you should avoid blocking the first one.

    You make a good point, but I think batch files are a different story. Batch files are either written for personal convenience, or distributed with the OS, eg. AUTOEXEC. With C++, it's much more common for programs to be transferred all over the place. I don't know if that explains it very well, but hopefully you see what I'm trying to say.

  3. #33
    Registered User
    Join Date
    Feb 2004
    Posts
    35
    There's a hundred and one ways to install something on someone's computer once you got access to place a script or executable anywhere.
    And to be quite frank, Replacing Pause.exe is right down there, just a step above Writing To A Floppy While You're Not Looking And Hoping You Forget To Take It Out Before You Reboot™.

    And if you were to eliminate all 101 possibilities, what would you need firewalls for then? Or rather, what would you need your computer for then?

  4. #34
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Do you mean to tell me you think using system() is a GOOD idea?

  5. #35
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    dude this thread has included 2 of my favorite things ever. system() calls and void main. This is the best thread ever
    Woop?

  6. #36
    Registered User
    Join Date
    Feb 2004
    Posts
    35
    Quote Originally Posted by sean_mackrory
    Do you mean to tell me you think using system() is a GOOD idea?
    No. It's not very portable.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Numerical order with ifs question?
    By JDrake in forum C++ Programming
    Replies: 5
    Last Post: 11-04-2006, 01:29 PM
  2. Order of operations question
    By nicomp in forum C++ Programming
    Replies: 9
    Last Post: 09-20-2006, 07:18 PM
  3. Exam Question - Possible Mistake?
    By Richie T in forum C++ Programming
    Replies: 15
    Last Post: 05-08-2006, 03:44 PM
  4. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 03:57 PM
  5. Question involving using math operations...
    By Screwz Luse in forum C Programming
    Replies: 6
    Last Post: 12-04-2001, 05:20 PM