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

.NET 

VB.Net Read (executable) Data

I mean if you drop executable file to notepad.exe you see: i don't know how its called all these characters?
Its possible to view all these chars in vb.net program textbox?
I tried io.file.readalltext("random.exe"), Only "MZ" appears, nothing else.
and there is no more chars than 2. How i can view all of them?

[Image: fX0Wlk9.png]

Thank you HF 🤗
Reading the data is possible with a program called .NET Reflector. Using notepad will not work so you will need to download .NET Reflector which I believe offers a free trial. But do note that many applications are crypted to prevent people from stealing the applications source code; this means that .NET Reflector may not show you what you want.

http://www.red-gate.com/products/dotnet-...reflector/
Yeah , those are ascii value of each bytes. If you want to see them in a textbox (as brute byte) you can loop each of em and display them:

PHP Code

<?php 
Dim bString 
As New System.Text.StringBuilder
  Dim bArray 
As Byte() = IO.File.ReadAllBytes(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\reshacker.exe")
  For 
Each b As Byte In bArray
    bString
.Append(CInt(b))
  
Next
  RichTextBox1
.Text = bString.ToString 

[Edit]
My mistake, ty for correcting banksy.

Or use convert function (which is an ENCODING) :

PHP Code

<?php 
RichTextBox1
.Text = Convert.ToBase64String(IO.File.ReadAllBytes(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\reshacker.exe")) 
Accepting freelancing jobs ! PM me for more info !
Be the [BRAND NAME REMOVED] king ..
converting it to hex is ur best way
(Nov 20, 2013 03:34 AM)0xBB Wrote:  Yeah , those are ascii value of each bytes. If you want to see them in a textbox (as brute byte) you can loop each of em and display them:

PHP Code

<?php 
Dim bString 
As New System.Text.StringBuilder
  Dim bArray 
As Byte() = IO.File.ReadAllBytes(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\reshacker.exe")
  For 
Each b As Byte In bArray
    bString
.Append(CInt(b))
  
Next
  RichTextBox1
.Text = bString.ToString 

Or use convert function (which is an encryption) :

PHP Code

<?php 
RichTextBox1
.Text = Convert.ToBase64String(IO.File.ReadAllBytes(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\reshacker.exe")) 

Base64 is an encoding, not an encryption.
I want see all that in vb.net (richtextbox)
[Image: fX0Wlk9.png]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by oh9odDec 7, 2020 04:55 AM 0 173 Dec 7, 2020 04:55 AM
Last Post: oh9od
[.NET] by Jon SnowSep 11, 2014 09:44 AM 8 174 Sep 11, 2014 09:44 AM
Last Post: jessman420
[Java] by minoruJun 4, 2014 11:57 AM 0 113 Jun 4, 2014 11:57 AM
Last Post: minoru