Author Topic: Hiding strings in executable files  (Read 3242 times)

0 Members and 1 Guest are viewing this topic.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Hiding strings in executable files
« on: October 21, 2011, 08:18:45 pm »
Seems to be a straighforward and easy task. Well it is. I stumbled uppon this eating candy, waiting until my teapot will boil water. Before that I was thinking how could I hide plaintext strings in an executable, because, for example, when you are making a program for others to change values to the variables and then compile themselves, you have to have easy accesible variables, where they have to be set, so you write the settings in plain-text format.

Now there could be several reasons why you want to do that. Maybe you want to hide some URL's that the program is connecting to. Maybe you want to hide a key used for encrypting and decrypting data. Maybe you want to hide something I can't think of anything else :D

Example 1:
You have a password "evilzone", so you can add useless chars to it at design time, so the string becomes something like this "eqwverityluizopoasndfe". So now all you have to do is read only every third char in that string and you'll have a password.

Example 2:
You have a password "evilzone", so you can split it into a fixed array of chars and then combine each element in an array when the method is called and return that.

Example 3:
You have a password "evilzone", so you can use reverse-encryption, like Binary, HEX or Rot-13 to store the password in and then decrypt at run time.

This is all I can come up with which are simple. If you know more then please tell.


Offline gh0st

  • Sir
  • ***
  • Posts: 575
  • Cookies: 8
  • #DEDSec
    • View Profile
Re: Hiding strings in executable files
« Reply #1 on: October 22, 2011, 03:02:36 am »
good article but it doesnt make it a FUD if you want to make a FUD you will have to make a combination of the strings whats more you can make it infinites times well I know the theory but never done it before

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Hiding strings in executable files
« Reply #2 on: October 22, 2011, 11:39:50 am »
It's not about making it FUD. It's about hiding strings... this will never make an exe less detectable, if we're talking about viruses.