Is there anyway to find out what switches can be used on an exe file?

Discussion in 'OT Technology' started by procrastinator, Jun 20, 2008.

  1. procrastinator

    procrastinator New Member

    Joined:
    Feb 15, 2005
    Messages:
    13,333
    Likes Received:
    0
    Location:
    the culture
    Is this possible? Can you reverse engineer an exe file in order to find out what command line switches can be used with it, or is there any program that will do it for you?
     
  2. crontab

    crontab (uid = 0)

    Joined:
    Nov 14, 2000
    Messages:
    23,458
    Likes Received:
    12
    i always try a /? -h --h -help -?

    or if there is a manual or search for it online
     
    Last edited: Jun 20, 2008
  3. Mike99TA

    Mike99TA I don't have anything clever to put here right now

    Joined:
    Oct 3, 2001
    Messages:
    4,553
    Likes Received:
    0
    Location:
    Greenville, SC
    Theres never a guaranteed way, as the programmer would have to specifically add the functionality in to allow it to recognize a 'help' switch. But yes, one of the options crontab specified will usually work.
     
  4. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    Also, consider RTFM.
     
  5. procrastinator

    procrastinator New Member

    Joined:
    Feb 15, 2005
    Messages:
    13,333
    Likes Received:
    0
    Location:
    the culture
    RTFM?
     
  6. crontab

    crontab (uid = 0)

    Joined:
    Nov 14, 2000
    Messages:
    23,458
    Likes Received:
    12
    reading the manual
     
  7. Hate Crime

    Hate Crime Don't Hate OT Supporter

    Joined:
    Mar 12, 2006
    Messages:
    5,255
    Likes Received:
    0
    Location:
    Minnesota
    GTFO.

    A fuckin manual for an exe?
     
  8. piratepenguin

    piratepenguin New Member

    Joined:
    Jun 18, 2006
    Messages:
    1,067
    Likes Received:
    0
    Location:
    Ireland
    Because the typical user knows exactly what switches to punch. :rolleyes:
     
  9. Ameter

    Ameter Active Member

    Joined:
    Mar 31, 2005
    Messages:
    97,795
    Likes Received:
    1
    Location:
    Calgary, AB
    there's almost always a manual, help file, or readme
     
  10. EkriirkE

    EkriirkE Zika Xenu OT Supporter

    Joined:
    Jan 11, 2004
    Messages:
    14,799
    Likes Received:
    0
    Location:
    Dublin & San Francisco, CA
    just open it in notepad and find a known switch, likely there will be a whole row of strings in that same location that are more switches.

    or use a dubugger, step the program until it reads the command line memory location, place a watch on that location and check that any of the regiters begin to fall within that memory location+command length while stepping.
    At this point it will most likely be comparing against the above mentions strings. place a memory watch on the registers to verify that whatever is at that location is a string, and thus a switch
     
  11. Hate Crime

    Hate Crime Don't Hate OT Supporter

    Joined:
    Mar 12, 2006
    Messages:
    5,255
    Likes Received:
    0
    Location:
    Minnesota
    No... no there really isn't.
     
  12. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    Yeah. EXE files (i.e. applications) tend to come with manuals. Maybe you've never noticed the paper shit that comes in the box?
     

Share This Page