Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add EOF support to your crypter!
#1
Have you got a crypter, and want to add EOF?

Well, I'm gonna tell you how.

Add this code to your BUILDER:

Code:
Public Function ReadEOFData(ByRef FilePath As String) As String
        On Error GoTo Err_Renamed
        Dim sEOFBuf, sFileBuf, sChar As String
        Dim lPos2, lFF, lPos, lCount As Integer
        If Dir(FilePath) = "" Then GoTo Err_Renamed
        lFF = FreeFile()
        FileOpen(lFF, FilePath, OpenMode.Binary)
        sFileBuf = Space(LOF(lFF))
        FileGet(lFF, sFileBuf)
        FileClose(lFF)
        lPos = InStr(1, StrReverse(sFileBuf), GetNullBytes(30))
        sEOFBuf = (Mid(StrReverse(sFileBuf), 1, lPos - 1))
        ReadEOFData = StrReverse(sEOFBuf)
        If ReadEOFData = "" Then
        End If
        Exit Function
Err_Renamed:
        ReadEOFData = vbNullString
    End Function

    Sub WriteEOFData(ByRef FilePath As String, ByRef EOFData As String)
        Dim sFileBuf As String
        Dim lFF As Integer
        On Error Resume Next
        If Dir(FilePath) = "" Then Exit Sub
        lFF = FreeFile()
        FileOpen(lFF, FilePath, OpenMode.Binary)
        sFileBuf = Space(LOF(lFF))
        FileGet(lFF, sFileBuf)
        FileClose(lFF)
        Kill(FilePath)
        lFF = FreeFile()
        FileOpen(lFF, FilePath, OpenMode.Binary)
        FilePut(lFF, sFileBuf & EOFData)
        FileClose(lFF)
    End Sub

    Public Function GetNullBytes(ByRef lNum As Object) As String
        Dim sBuf As String
        Dim i As Short
        For i = 1 To lNum
            sBuf = sBuf & Chr(0)
        Next
        GetNullBytes = sBuf
    End Function

Add a new Textbox, and make it so it's not visible.
Add a Checkbox.

Now, add this after the FileClose(1).

You should change the TextBox4.Text to the TextBox ID you just added.
You should change the CheckBox1 to the CheckBox ID you just added.

NOTE: This code MUST go after the FileClose(1)

Code:
TextBox4.Text = ReadEOFData(TextFile.Text)

        If CheckBox1.Checked = True Then
            ReadEOFData(TextFile.Text)
            WriteEOFData(output, TextBox4.Text)
        End If

Credits: xKillerxPanther (For the EOF code)
[Image: jpke28.jpg]
I actually can't wait for Iron Man 2.
#2
I haven't tried it, but I trust you're TUT works. Great job man!
Site Owner: http://www.awesomelounge.com

Feel free to join. It's full of greatness.


[Image: s1ckl3r2.png]
#3
Very nice tut will come in handy for newbies who wanna make a cypter, thanks !! Big Grin
#4
(04-05-2010, 06:50 PM)S1cKL3R Wrote: I haven't tried it, but I trust you're TUT works. Great job man!
Yes, it works.

I use it on my crypter. Smile

Thanks.
[Image: jpke28.jpg]
I actually can't wait for Iron Man 2.
#5
Hmm, thanks. I needed this for the crypter I plan on making, as I know some things don't crypt without EOF.

Thanks. Rep+'ed.
#6
(04-05-2010, 06:51 PM)«Ðartz™» Wrote: Hmm, thanks. I needed this for the crypter I plan on making, as I know some things don't crypt without EOF.

Thanks. Rep+'ed.
You're welcome, and thanks. Smile
[Image: jpke28.jpg]
I actually can't wait for Iron Man 2.
#7
Thank you, will most likely use.
#8
This belongs on HF.
At the top will be the same place you hang from.


Possibly Related Threads…
Thread Author Replies Views Last Post
  VB.NET EOF Problem boz0 0 861 06-06-2013, 02:13 PM
Last Post: boz0
  What could i add to my browser? [Project] XDarkCoder 3 1,215 02-16-2013, 10:10 AM
Last Post: Swift Swim
  Crypter code source - project files [ vb.net ] rid47 2 2,351 09-08-2012, 04:17 PM
Last Post: spesificrelax
  Can anyone help me fud a crypter mikeandike 1 842 06-08-2012, 03:55 PM
Last Post: AceInfinity
  [VB.NET] Moon Crypter By t0fx [Source][Runtime] hasam 1 2,569 02-01-2012, 03:09 PM
Last Post: AceInfinity

Forum Jump:


Users browsing this thread: 1 Guest(s)