Thread: hide C code from "strings"

  1. #1
    Registered User
    Join Date
    Oct 2009
    Location
    3rd stone from the Sun
    Posts
    3

    hide C code from "strings"

    Hi,

    I have some simple C code that makes some system calls to get the job done. These calls cannot be done in native C, but I would like to do what I can to make them hidden from casual inspection (i.e., running "strings" on the code). Is there any way to do this?

    thx

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    If you really need to do this, I suppose you can store an encrypted version of the string and then have the program decrypt it before executing it. I suppose.

  3. #3
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    Quote Originally Posted by atreyu View Post
    These calls cannot be done in native C
    Wrong. I believe that a person with enough talent could do (in fact, did do) these calls.

  4. #4
    Registered User
    Join Date
    Oct 2009
    Location
    3rd stone from the Sun
    Posts
    3
    Quote Originally Posted by Kennedy View Post
    Wrong. I believe that a person with enough talent could do (in fact, did do) these calls.
    well, yes, of course. but i didn't want to "borrow" Alan's code, if I didn't have to...

  5. #5
    Registered User
    Join Date
    Oct 2009
    Location
    3rd stone from the Sun
    Posts
    3
    Quote Originally Posted by tabstop View Post
    If you really need to do this, I suppose you can store an encrypted version of the string and then have the program decrypt it before executing it. I suppose.
    that's not a bad idea...only i am trying to do it w/o user intervention and w/o having passwords (i.e., for decryption) on the system.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extended ASCII Characters in an RTF Control
    By JustMax in forum C Programming
    Replies: 18
    Last Post: 04-03-2009, 08:20 PM
  2. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 07:34 AM
  3. Obfuscated Code Contest: The Results
    By Stack Overflow in forum Contests Board
    Replies: 29
    Last Post: 02-18-2005, 05:39 PM
  4. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM