A long time ago encountered a project, which called a well-encapsulated DLL, obfuscation encryption shell also scrambled name, anti-compiled out also looks like head large, direct IL modified rebuild DLL solves the problem.Recently, you need to change one of these DLLs, log down the stepsFirst copy the DLL separately to see the DLL runtime Then export the. Il file..........................................
Getting started with IL File Modification
========================================Object:Master simple il file processing knowledgeSkills in using ildasm and ilasm tools========================================1. Write a simple hello. CS
2. CompileSource codeCSC hello. CS
3.decompile hello.exe with the following command:Ildasm hello.exe/out = Hello. Il
4.
shorter and more difficult to crack.
Then generate a console Program (or other programs), load it using appdomain. Load (byte []), and run it.
Well... Such a shell program is ready. However, a friend may have a headache after trying it. This method can only load one program and cannot contain other DLL and resource files required by the program. What should we do?
Hey, it's easy. Generate the resource and file as byte [] in the same way as above,
A long time ago I posted an article titled "debugging. NET Framework built-inProgramSet (system. Web. dll )"Inevitably, it is very troublesome to use the roundtrip of DLL => IL => il '=> PDB + DLL.
Today, when you reflector something, you don't want to focus too much on the logic to directly view the keyCode:Method 1: reflexil v0.8 add and modify il call directl
How to interpret IL code and IL codeHow to interpret IL code
For the IL code, I will unveil it in three ways. What is the IL code? Why should we read the IL code? How can we read the IL
-
If you really want to understand C # code, the best way to do that is by understanding the code generated by the C # compiler. This is the focus of this chapter and the following two chapters.
We will use a short C # program to uncover the mystery of IL and interpret the IL code generated by the compiler. In this way, we can "stone": first, we will reveal the mystery of
function to be executed is called the entrypoint function. In C #, this function is main. The syntax of the function is that the name is followed by a pair of parentheses (). The start and end of the Function Code are represented by braces.
A. Il
. Method void Vijay (){. Entrypoint}C:/IL> ilasm/nologo/quiet a. Il
Source file is ANSI
Creating PE File
Emitting mem
1-
We use C #, VB. NET language will eventually be compiled into an assembly or IL. Therefore, code written with vb.net can be modified in C # and later used in COBOL. Therefore, it is very necessary to understand IL.
Once you are familiar with IL, there is no barrier to understanding. NET technology because all of the. NET languages are compiled to
Understanding IL code (2) and understanding il code
The most basic IL Code mentioned in the previous article should be relatively easy to understand. Therefore, with the foundation of the previous article, this article will be explained in depth.
First, I must introduce some important concepts:
Evaluation Stack: This is caused. net clr automatically manages the m
IL interface and class attributes, IL interface attributes
In the previous article, I learned how to get started with IL. Next, I will use two examples to understand the attributes, constructor, and Interface Usage of the class.
I. class attributes and constructors
1. first take a look at the C # code of the class we want to build and then implement
Read the IL code (4) and read the il code
This is the last article in The IL series, mainly about Process Control in IL. I believe that the above three articles show that the IL code is not a big problem. Okay. If you don't talk much about it, just give it a simple explanati
Recommended stack and lightning Owin in IL, and IL lightning Owin
In recent days, I had the honor to get guidance from lightning and learn about some commands in EMIT and IL. Although there is a saying that an anti-aircraft gun is used to fight mosquitoes, I believe that 80% of the "20% law" can be used to solve the problem, and 20% of the functions can only be
Ildecompilator --ildasm.exeand reflector.exe:
I. Introduction to ildasm.exe
This is a soft vstool, which has been described in detail in the article "ildasm.exe -- il decompilation utility;
Ii. reflector.exe
So far (10.02.03), the latest version downloaded from the http://www.aisto.com/roeder/dotnet is latest version: 5.1.6.0, here also the classic "Hello world. "Example: When reflector is used. when ext opens an executable file, the ma
When I got back to the computer, everyone else went to the Black shop. I did not catch up.What are the other things I'm bored?
Recently, I want to write something to listen to events. After reflecting eventinfo, I need a dynamic constructor,An Opcodes parameter is required. A query of help actually represents a stuff of Il.
Very depressing. So I can see if I can understand it.
Start with the simplest one. This is because the tutorial offered by
The example in study Note 1 can be changed to the following: The function remains unchanged, but the resources occupied during running are smaller. I am in all and Note 1
Code Note the location of the change as follows:
1
//
----------- Program Header
2
. Assembly
Extern
Mscorlib
{}
3
. Assembly oddoreven
{}
4
. Module oddoreven.exe
5
//
----------- Class declaration
6
.
Namespace
Odd. or
{ 7 . Class Public Auto ANSI ev
Ildasm.exe summary:
I.Preface:
Microsoft's il DecompilationProgram--Ildasm.exe, which extracts il from executable files (ex, exe executable files of the classic console Hello World)CodeAnd provides the namespace and Class View. Before describing how to decompile, it is necessary to look at CLR from the perspecti
[24th back: Understanding metadata and IL (I)], we have made necessary preparations for the relationship between these concepts and metadata and IL in PE files, assembly, and hosting modules, at the same time, I am familiar with the basic method cognition of decompilation with ildasm tool. Next I will learn about metadata and
code format and generate a my. il contains all the Il code and a my. res contains all resource files.
Ildasm anytao.insidenet.metadatail.exe/text to output The Decompilation result in console format.
Of course, we recommend that you view the Il details in the form of a GUI with a well-organized Class View:
Ildasm anyt
Files (x86) \microsoft Sdks\windows\v7.0a\bin\ildasm.exe (Window 7 64-bit operating system installation directory) You can also open ildasm.We can also add the ILDASM tool to our common vs.1. Tools--External tools (External tools..)2. Add content to fill in the corresponding information. Command: C:\Program Files (x86) \microsoft Sdks\windows\v7.0a\bin\ildasm.exe(Window 7 64-bit operating system installati
IL Dasm Anti-compilation tool
Ape-Men who use C # are more or less aware of Microsoft's Il decompile tool (Ildasm.exe). The first time I came in contact with this tool was a colleague of the company using his decompile EXE program to read and modify. It feels like he's still strong.
Il is an intermediate language on the Microsoft platform, and our regular C # cod
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.