Hack Forums
[.NET] [VB.NET] How to add EOF support [TUT] - 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] How to add EOF support [TUT] (/showthread.php?tid=415206)

Pages: Pages 1 2 3


* - m-y - Aug 28, 2010

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


* - davae93 - Oct 8, 2010

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



* - Kill4joy KJ-Vulcan Tools - Oct 8, 2010

really nice tutorial ill give it a thumbs up*


* - newbie223 - Oct 8, 2010

lol some people do not even know how to fix that small problem n nice 1 m8.
this should end the nvr ending question of some people looking for eof


* - NoNoMoMo - Oct 9, 2010

Very nice. Now its nothing big and its not an error its a warning, And i know i could use it anyways but i want to get rid of them aha, the warnings are
Function 'ReadEOFdata' doesn't return value on all code paths
&&
Variable 'Buf' is used before it has been assigned a value
Any help is much appreciated !


* - Galaxy Wave - Oct 9, 2010

Thank you for the great tut.


* - tonig123 - Apr 18, 2011

nice tutorial, very helpful! ^^


* - DeathStarâ„¢ - Apr 18, 2011

(Apr 18, 2011 09:26 AM)tonig123 Wrote:  nice tutorial, very helpful! ^^

Please don't post in older threads.
We only want new threads at the top, boy.

- Thank you 😟


* - noxxio - Aug 9, 2012

Hey,

one question if i want to use this in a Codedom Crypter should i paste the last Snippet before ICompiler compiles it? Or where else?

But by the way nice Tutorial :).


* - pupp3t - May 27, 2013

Dim ReadFile As String = IO.File.ReadAllText(FilePath)

i get a empty path when debugging trying to open the dialog to add a file. Any help oh and im using Codem source to try it out on.


* - Cody8295 - May 27, 2013

(May 11, 2010 05:26 PM)xSilent Wrote:  52 views and only 2 comments, really.

Not everybody has something to say, most people don't even read the thread, they just click on it to make it appear as read.

EDIT: Andddd I'm dumb, responding to posts from 2010. Thanks to whoever gravedug this.


* - pupp3t - May 27, 2013

no problem ahhaha anytime i was looking for a eof


* - xSilent - May 27, 2013

This thread is absolutely terrible..

/Closed