Skip to content

Instantly share code, notes, and snippets.

@20chan
Created October 30, 2017 07:09
Show Gist options
  • Save 20chan/a36dac1a474ea0990c65965171a0564d to your computer and use it in GitHub Desktop.
Save 20chan/a36dac1a474ea0990c65965171a0564d to your computer and use it in GitHub Desktop.
anti decompile patch for .net executable file
private void AntiReflector(string path)
{
FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Write);
stream.Seek(0xf4, SeekOrigin.Begin);
stream.WriteByte(11);
stream.Flush();
stream.Close();
MessageBox.Show("적용 완료!", "Anti-Reflector", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void AntiAntiReflector(string path)
{
FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Write);
stream.Seek(0xf4, SeekOrigin.Begin);
stream.WriteByte(16);
stream.Flush();
stream.Close();
MessageBox.Show("적용 완료!", "Anti-Reflector", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment