Jump to content
raynor009

[VB.NET-SNIPPET] Anti .Net Reflector

Recommended Posts

Posted (edited)

Acest cod blocheaza .Net Reflector atunci cand incearca sa va decompileze programul.L-am gasit pe internet si mi sa parut interesant asa ca il postez si aici.


Imports System
Imports System.IO

Button1

Dim dialog As New OpenFileDialog
dialog.Filter = ".NET Assembly Files (*.dll, *.exe)|*.dll *.exe|All Files|*.*"
If (dialog.ShowDialog = DialogResult.OK) Then
Dim stream As New FileStream(dialog.FileName, FileMode.Open, FileAccess.Write)
stream.Seek(&HF4, SeekOrigin.Begin)
stream.WriteByte(11)
stream.Flush
stream.Close
End If

Nu cred ca are efect asupra altor decompilere.

Edited by raynor009
Posted
Ma asteptam la o obfuscare a codului.

Ai idee ce e la acea locatie? Cred ca face parte din header-ul .NET dar nu stiu ce.

Sa fiu sincer nu prea inteleg ce face....dar stiu ca:

stream.Seek(&HF4, SeekOrigin.Begin)

deschide .exe sau .dll intr-un stream

stream.WriteByte(11)

se deuce la offset &HF4

Posted
Sa fiu sincer nu prea inteleg ce face....dar stiu ca:

stream.Seek(&HF4, SeekOrigin.Begin)

deschide .exe sau .dll intr-un stream

stream.WriteByte(11)

se deuce la offset &HF4

Reflector-ul nu este in stare sa treaca peste "bad opcode", considera aplicatia ca nefiind .net si nu poate sa o decompileze, problema se poate rezolva in hex

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...