Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[VB.NET] How to add EOF support [TUT]

Finally, we needed a thread like this for the noobs that can't put together your old thread.

Rating added :)
oFd is open file Diangnol
i got a error .. i pm you


five star added + rep added sended a pm
Good job killerpanther, I haven't tried this out yet but im sure it will come in handy ;)
it worked on command.com which have EOF support it work like charm thanks aloat
Thanks for this man you just saved my life :) now to trawl through the code line by line char by char xD
Coding looks a little fualty can cuase an error.
i am bumping this thread up
Thanks for the tut I now understand how to use eof properly :)
ByRef lNum As Object

Blurgh. It's an Integer. It just slows your code down to use Object because the runtime will have to box the value type. You shouldn't need to use Object very often, especially since generics came along 5 years ago.
I added your module (also in the credits) and added my path but TheEOF variable is empty, do not take anything in the file. I probe with Bifrost and I worked, I can be doing wrong?

I made this the latest of everything

Thanks

EDIT:

Why? chr(0)?
For i = 1 To lNum
Buf = Buf & Chr(0)
Next
it won`t be chr(i)?

thanks
(Aug 11, 2010 08:29 AM)deakgegi Wrote:  So work fine when I inject to a program, like notepad.exe. But my cybergate copy the simple notepad.exe. When I setup my RunPe to inject to my program (crypted.exe), the crypted.exe inject to crypted.exe and the crypted.exe inject to crypted.exe and the crypted.exe inject to crypted.exe and the crypted.exe inject to crypted.exe etc. But this the Cybergate copy good exe, but doesn't work. In my taskmanager 10 crypted.exe :O How can I fix it, to inject only 1 time. Help!

I'm sorry, but I lost you there.
Thank you for this [TUT]

But I have a question Can I add this code on my source crypte
I've added class in my Project And I've written this code
But I do not know where to type this code[ TheEOF = ReadEOFData(OFD.Filename) ]

[img]http://www.m1111.net//uploads/images/m1111.net-88280d30de.jpg[/img]

Maneater reply
heres an example where to put it which is in the textbox, which is the location of your file you want to be crypted

TexBox1_click was used as button, so when textbox one is clicked it opens Openfiledialog

Code
Private Sub TextBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Click
  'Creates and opens a open file dialog.
  With ofd1
    ofd1.DefaultExt = "exe"
    ofd1.Filter = "Executable Files (*.Exe)|*.Exe"
    ofd1.FilterIndex = 1
    ofd1.FileName = ""
    If ofd1.ShowDialog(Me) = 1 Then
    TextBox1.Text = ofd1.FileName
    F = .SafeFileName
    TheEOF = ReadEOFData(ofd1.FileName)
    End If
  End With
    End Sub
Thank you for the great tut.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by SkunT3lloJun 29, 2021 01:59 PM 2 192 Jun 29, 2021 01:59 PM
Last Post: SkunT3llo
[Python] by TreasuretrioAug 2, 2020 08:01 PM 2 152 Aug 2, 2020 08:01 PM
Last Post: Treasuretrio
[C] by RealyWhiteJan 5, 2019 11:12 AM 9 338 Jan 5, 2019 11:12 AM
Last Post: Mayuko