Obfuscating VB.NET code... menu

User Tag List

Results 1 to 12 of 12
  1. #1
    Ryoushi.'s Avatar Member
    Reputation
    54
    Join Date
    Nov 2008
    Posts
    126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Obfuscating VB.NET code...

    Hello, I'm in need of some help.

    I have everything coded in my program that I want, but I need to obfuscate the code. At the moment, the file can be opened with notepad and most of the strings can be read from that. I need to obfuscate the code to prevent this.

    I could use the multi string mixing method on sensitive parts of my code, e.g.
    Dim ex As String, ample As String
    ex = "hel"
    ample = "lo"

    And then write ex & ample, but this could easily be disassembled, so I need a better method.


    I don't want to use an encryption program, because it won't work with the way I'm distributing this.


    Thankyou.

    Obfuscating VB.NET code...
  2. #2
    SacredSpenny's Avatar Contributor CoreCoins Purchaser
    Reputation
    229
    Join Date
    Dec 2007
    Posts
    647
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And if anyone could post an encryption program thatd be nice.

  3. #3
    rosty's Avatar Contributor
    Reputation
    139
    Join Date
    Feb 2007
    Posts
    227
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    would it work with like Var=Chr(1)+Chr(125)+Chr(621)+Chr(255)+Chr(3)
    but idk

    Unlike WoW, the blocks in Tetris were a different shape, yet balanced to be about the same use

  4. #4
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try DotFusticator. The community (free) edition is included with Visual Studio. It's not bulletproof, but it's reasonable. (With .NET, completely bulletproof is either impossible, or extremely difficult, seeing as you can just read the stuff off the .NET framework for the most part)

  5. #5
    Ryoushi.'s Avatar Member
    Reputation
    54
    Join Date
    Nov 2008
    Posts
    126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Reid, isn't that just an encryption program?

    I need something I can actually add to my code, because it will be built differently each time.

  6. #6
    Vindicated's Avatar Contributor
    Reputation
    226
    Join Date
    Aug 2008
    Posts
    1,067
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ^^ Nope, Dotfuscator is an obfuscator. It basically scambles your code up to make it unreadable (As Reid said, relatively unreadable).


  7. #7
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unreadable for humans, anyway. If you REALLY want to make it unreadable, you'll have to compile down to a lower level than .net, and visual studio doesn't support anything like that.

  8. #8
    Ryoushi.'s Avatar Member
    Reputation
    54
    Join Date
    Nov 2008
    Posts
    126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm still not sure it's what I want... How exactly does it work?

    My program generates a new .exe each time the user asks it to, I need this new executable to be obfuscated, rather than the program itself. I don't know if DotFuscator can provide that sort of support.

  9. #9
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is a program created by MS that compiles your .NET programs straight to machine code before you ever ship it. However, this won't fool anybody even 1/2 good at reversing.

    I suggest you look into a decent obfuscator. Good ones include string encryption, control flow obfuscation, and method/class/field/etc name renaming.

    Personally; I use {smartassembly}. It never fails me, even with deep reflection code, and critical code sections.

  10. #10
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    There is a program created by MS that compiles your .NET programs straight to machine code before you ever ship it.
    What program's that?

  11. #11
    SacredSpenny's Avatar Contributor CoreCoins Purchaser
    Reputation
    229
    Join Date
    Dec 2007
    Posts
    647
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The program Apoc said is very good, thats what i use too.

  12. #12
    Ryoushi.'s Avatar Member
    Reputation
    54
    Join Date
    Nov 2008
    Posts
    126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll look into using {smartassembly}, thanks. I think it may provide what I need.

Similar Threads

  1. [Tool] Injection Sharp - Inject your .net coded internals easier.
    By lolp1 in forum WoW Memory Editing
    Replies: 6
    Last Post: 10-13-2015, 10:21 PM
  2. [vb.net code] Target Closest Mob (mouse&keyboard style)
    By abuckau907 in forum WoW Memory Editing
    Replies: 2
    Last Post: 08-13-2009, 08:36 PM
  3. Text File with Alot of VB.NET Codes
    By Mitron in forum Programming
    Replies: 0
    Last Post: 07-06-2009, 09:46 AM
  4. [Release] Inject Managed .Net Code!
    By bigtimt in forum WoW Memory Editing
    Replies: 6
    Last Post: 10-12-2008, 03:52 PM
  5. [Service][.NET aka VB8] Helping with code.
    By Clain in forum Programming
    Replies: 2
    Last Post: 06-09-2008, 09:36 AM
All times are GMT -5. The time now is 07:19 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search