Hack Forums
[.NET] [VB.NET] EOF - End Of File - 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] EOF - End Of File (/showthread.php?tid=189774)

Pages: Pages 1 2 3 4 5 6


[VB.NET] EOF - End Of File - Soul Collector - Nov 23, 2009

[VB.NET] EOF - End Of File


Hello everyone. This is little source of EOF i found on HackHound. The credits go to linky and it worked for me fine. Hope it will work for you good too, if you have problem i will try to help you to fix it.

Code
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByVal Destination As Long, ByVal Source As Long, ByVal Length As Integer)

    Function GetEOF(ByVal Path As String) As Long
        Dim ByteArray() As Byte
        Dim PE As Long, NumberOfSections As Integer
        Dim BeginLastSection As Long
        Dim RawSize As Long, RawOffset As Long

        FileOpen(10, Path, OpenMode.Binary, OpenAccess.Default)
        ReDim ByteArray(LOF(10) - 1)
        FileGet(10, ByteArray)
        FileClose(10)

        Call CopyMemory(PE, ByteArray(&H3C), 4)
        Call CopyMemory(NumberOfSections, ByteArray(PE + &H6), 2)
        BeginLastSection = PE + &HF8 + ((NumberOfSections - 1) * &H28)
        Call CopyMemory(RawSize, ByteArray(BeginLastSection + 16), 4)
        Call CopyMemory(RawOffset, ByteArray(BeginLastSection + 20), 4)
        GetEOF = RawSize + RawOffset

    End Function


P.S. Its useful if you making an crypter.... for more informations click following link.


Check other cool tutorials:

★ Mega Thread: Firewalls, Antivirus and Other security tools ★
►◄ Mega Thread: Proxie's & More! ►◄
-★ Mega Thread: VPN's & Proxies ★-
-★ Mega Thread: AntiVirus Programs! ★-


* - Araq - Nov 23, 2009

nice but.... would be nice with a little guide on how to implant this thing


* - Romeo. - Dec 2, 2009

This will add "junk" code at the end of a file ?


* - Ble$$eD - Dec 2, 2009

thanks for the source!
so with this i open a exe and get the eof and then possibly write any code i want to it?


* - Sikandar - Dec 2, 2009

EOF is needed to be included in crypters so they will support crypting of many rats and bots....thankz dude


* - Theref - Dec 2, 2009

(Dec 2, 2009 07:10 AM)sikandarnandwani Wrote:  EOF is needed to be included in crypters so they will support crypting of many rats and bots....thankz dude

many runtime crypter have to support EOF (because usually Runtime crypter will corrupt the rat, or bots). But idk, scantime seems didn't need EOF (cmiiw)


* - Sikandar - Dec 2, 2009

(Dec 2, 2009 07:19 AM)Theref Wrote:  many runtime crypter have to support EOF (because usually Runtime crypter will corrupt the rat, or bots). But idk, scantime seems didn't need EOF (cmiiw)

i think scantimes need them too..not really sure though


* - newbie223 - Dec 2, 2009

sikandar it depend on encryption method like rc4 will not corrupt the file(correct me if im wrong) but EoF is like a must on XoR so is Blowfish and twofish AES no need anyways guysso hwo do i used this
isit like i take the the file put it in a variable then put the Eof(infectedfile) isit? or isit sumthing else?


* - newbie223 - Dec 5, 2009

hey this is just reading the EOF not write it do you have the source for writing?


* - -=C0d3ak=- - Dec 5, 2009

(Dec 5, 2009 03:38 PM)newbie223 Wrote:  hey this is just reading the EOF not write it do you have the source for writing?

dim EOFSHIT as byte
EOFSHIT = GetEOF("C:\fuckenVirusThatIwantTheEOFto.exe")

thats how ya get the info, pretty sure.


* - newbie223 - Dec 6, 2009

naw i noe how get the info i mean writing in the EOF


* - Soul Collector - Dec 28, 2009

(Dec 6, 2009 04:00 AM)newbie223 Wrote:  naw i noe how get the info i mean writing in the EOF

Ok, you need help with anything?


* - skyes - Jan 25, 2010

how can i install to my scantime crypter ?


* - --([-S7N-])-- - Jan 25, 2010

And you found this on a SPAM?? Lol.
Thanks for sharing.


* - Error_040 - Jan 25, 2010

i like to put this EOF in my crypt !
as the Infinity Crypter
as this :

[img]http://i47.[censored].com/bec604.jpg[/img]

I Lile to put CheckBox for Tick-UnTick [ 1 Label - EOF Support
As the Infinity Crypter !

How can i do ?