Security

This is a discussion on Security within the Linux Programming forums, part of the Platform Specific Boards category; I'm wanting my program to pass a command to the system which will unzip a password protected zip file. How ...

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    62

    Security

    I'm wanting my program to pass a command to the system which will unzip a password protected zip file. How can I make this system call that will include the password without someone being able to evesdrop and obtain the password? Also, by storing the password in my program as a string, would some one be able to somehow obtain the password from the binary?
    Last edited by 3saul; 06-14-2006 at 09:58 PM.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,500
    > would some one be able to somehow obtain the password from the binary?
    Unless you do something to hide it, it will be trivial to find for anyone who knows what a hex editor is.

    > How can I make this system call that will include the password without someone being able to evesdrop
    Probably with great difficulty.
    Many system calls can be traced for debugging, so naturally anything you pass will be plainly visible to anyone with the right tools.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Freedom Internet Security
    By BestGameMovie in forum Tech Board
    Replies: 3
    Last Post: 06-03-2005, 09:28 PM
  2. Security on automated home
    By stimpyzu in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 04-11-2004, 01:14 AM
  3. Painfully true but funny...
    By shaik786 in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 04-01-2003, 02:39 PM
  4. WindowsXP Security
    By Dude101 in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 10-03-2001, 01:22 PM
  5. security
    By iain in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 09-20-2001, 08:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21