Hack Forums
[.NET] [VB.NET] [Intermediate] Codedom Output Assembly Editing - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [VB.NET] [Intermediate] Codedom Output Assembly Editing (/showthread.php?tid=695204)



[VB.NET] [Intermediate] Codedom Output Assembly Editing - DarkShadowz - Sep 22, 2010

Well, I have not really found any tutorial on this, so I decided to post it. Also, I do not recommend any newcomers trying this
as you need a basic understand of VB.NET to do these measily steps.

Step 1: In your pre-done source for Codedom, add this after the imports at the top:

Code
<Assembly: AssemblyTitle("Title")>
<Assembly: AssemblyDescription("Description")>
<Assembly: AssemblyCompany("Company")>
<Assembly: AssemblyProduct("Product")>
<Assembly: AssemblyCopyright("Copyright")>
<Assembly: AssemblyTrademark("Trademark")>
<Assembly: AssemblyVersion("1.0.0.0")>
<Assembly: AssemblyFileVersion("1.0.0.0")>

Step 2: In your builder, in the codedom compilation function after calling your pre-done source, add this in:

Code
source = source.Replace(Chr(34) + "Title" + Chr(34), Chr(34) + txtTitle.Text + Chr(34))
    source = source.Replace(Chr(34) + "Description" + Chr(34), Chr(34) + txtDescription.Text + Chr(34))
    source = source.Replace(Chr(34) + "Company" + Chr(34), Chr(34) + txtCompany.Text + Chr(34))
    source = source.Replace(Chr(34) + "Product" + Chr(34), Chr(34) + txtProduct.Text + Chr(34))
    source = source.Replace(Chr(34) + "Copyright" + Chr(34), Chr(34) + txtCopyright.Text + Chr(34))
    source = source.Replace(Chr(34) + "Trademark" + Chr(34), Chr(34) + txtTrademark.Text + Chr(34))
    source = source.Replace("FileVersion(" + Chr(34) + "1.0.0.0" + Chr(34), "FileVersion(" + Chr(34) + txtFileVersion1.Text + "." + txtFileVersion2.Text + "." + txtFileVersion3.Text + "." + txtFileVersion4.Text + Chr(34))
    source = source.Replace("Version(" + Chr(34) + "1.0.0.0" + Chr(34), "Version(" + Chr(34) + txtVersion1.Text + "." + txtVersion2.Text + "." + txtVersion3.Text + "." + txtVersion4.Text + Chr(34))

Step 3: Remember to add in the textboxes required for this:

[img]http://img693.imageshack.us/img693/2940/fileassembly.png[/img]

Credits:
- DarkShadowz


* - StarZ - Sep 22, 2010

Or instead of "(Chr(34) + Title + Chr(34))" Do "("""Title""")"

If you don't use this method, At least use "&" symbols instead of "+" symbols when working with strings.

None the less, Good guide.


* - Sikandar - Sep 23, 2010

yes, ive been using this also
thanks to aeonhack for me
:)


* - Asus - Sep 23, 2010

Lol, good one Seth :) VB.NET huh


* - pr0t0typ3 - Sep 23, 2010

Pr3fix already posted it in his ICompiler but Thanks anyway.. btw. you forgott to mention that you need a import (System.Reflection)


* - Local Celeb - Sep 23, 2010

Nice work. I already knew about this, but since you posted it, and it is actually helpful, I will thank you :)

This is a very good way to bypass some antiviruses if used right.


* - Dionysos™ - Nov 27, 2010

Hi, I got some errors : Source isn't declared. How could I fix it ?

Thanks for help


* - Sikandar - Nov 27, 2010

(Nov 27, 2010 03:44 PM)wolfk Wrote:  Hi, I got some errors : Source isn't declared. How could I fix it ?

Thanks for help

declare source as string
🤝


* - Fabric - Nov 27, 2010

nice little program i guess good work


* - jdcx95 - Nov 28, 2010

Very useful guide, thanks a lot for this!


* - iDope -.- - Nov 28, 2010

(Nov 27, 2010 03:44 PM)wolfk Wrote:  Hi, I got some errors : Source isn't declared. How could I fix it ?

Thanks for help

Declare "source" as string.
Spoonfeed:
Code
Dim source As string

And also, you need to add source(a text file with the code to be compiled with CodeDOM) as resource.


* - Dionysos™ - Nov 28, 2010

(Nov 28, 2010 02:13 AM)iCore™ Wrote:  Declare "source" as string.
Spoonfeed:
Code
Dim source As string

And also, you need to add source(a text file with the code to be compiled with CodeDOM) as resource.

Thanks, but I still have a problem. I'm using PrototypE source, added icon changer, RunPE and I added the "Source = Source.replace" stuff at the end of the function CD in my builder. And add the
"<Assembly: AssemblyTitle("Title")> " after my imports in the CodeDom Compiler (iCompiler.vb)
I get these errors :
"Reference to a non-shared member requires an object reference"
Thanks for help ;)