Hack Forums
[.NET] [VB.NET] File Builder Example [Source] - 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] File Builder Example [Source] (/showthread.php?tid=97879)

Pages: Pages 1 2


- JapaBrz - Jul 4, 2009

(Jul 3, 2009 03:09 PM)MC Wrote:  alright. Ive taken a little bit more of a look
I thought at first the stub had to be a quasi-copy of the builder
then, I experimented changing the GUI, and also removing this code from the stub
Code
'  FileOpen(1, Application.ExecutablePath, OpenMode.Binary, OpenAccess.Read, OpenShare.Shared)
        '  yourfile = Space(LOF(1))
        '  FileGet(1, yourfile)
        '   FileClose(1)
        '  word1 = Split(yourfile, FileSplit)(1)
        '   word2 = Split(yourfile, FileSplit)(2)

So, the stub could really be anything, then, right? and the builder just re-creates the stub replacing the variables word1 and word2
meaning one builder could act as a template for other programs
or am I wrong

you cant remove this code, otherwise it wont get the code written on the exe.
this is the only piece of code that must be unchanged, the rest you can change as you want


- Vaqxine - Jul 18, 2009

It's also a good idea to use the stub as a resource then drop it when you need it, if you know how to do that.
It saves there being two files and it makes it harder to be analyzed/scanned.


- kyuuketsuki - Jul 21, 2009

YAY!!! I SOOO NEED THIS :)


- TheBlackMarket - Sep 8, 2009

Nice, Nice... Good Work m8.


* - skidzzROWzz - Oct 12, 2009

what exactly does a builder do?


* - morten242 - Oct 13, 2009

Ahh, a million thanks man, coded the stub into my keylogger and now i have a working builder :D

Many, many thanks.


* - Nucl34r - Oct 14, 2009

HF Staff ripping code of nathan... not kewl


* - [Eprouvez] - Oct 14, 2009

(Oct 14, 2009 12:40 AM)Nucl34r Wrote:  HF Staff ripping code of nathan... not kewl

Do you have proof that he ripped it?

This code is great.


* - Ble$$eD - Nov 23, 2009

just wanted to say thanks for the example!


* - Slyload - Nov 25, 2009

Can I just ask why everyone codes in VB.NET for this sort of stuff? Is it not possible in C#?


* - [Eprouvez] - Nov 26, 2009

(Nov 25, 2009 11:25 PM)Slyload Wrote:  Can I just ask why everyone codes in VB.NET for this sort of stuff? Is it not possible in C#?

It is possible, it's just VB.Net is so easy, and the easier it is to code, the easier it to make it malicious, the easier it is to change it, and the easier it is to make FUD.


* - iRtehLeet™ - Nov 26, 2009

DL link down, can some upload it somewhere else


* - SаNk - Jun 2, 2010

Ugh I have tried to code builders and I just get super confused for some reason.

Hm...


* - oRc - Jun 2, 2010

Code
FileOpen(1, Application.ExecutablePath, OpenMode.Binary, OpenAccess.Read, OpenShare.Shared)
  yourfile = Space(LOF(1))
  FileGet(1, yourfile)
  FileClose(1)

better use IO.File, this is outdated.