C # program shelling

Source: Internet
Author: User
Tags reflector

From http://www.lwolf.cn/blog/article/code/csharp-shell%20.htm

I recently searched for C # on the Internet #ProgramI found some methods for shelling and tried it myself. It feels pretty good. The following are found on the Internet. Here we will sort it out and it will be convenient to use it in the future.
1. Reflection shelling
Create a cmd project, copy the program to the project file, and set it to "embedded resource ".

Program code stream sr = assembly. getexecutingassembly (). getmanifestresourcestream ("namespace .program .exe ");
Byte [] filebytes = new byte [Sr. Length];
Sr. Read (filebytes, 0, (INT) Sr. Length-1 );
Assembly = assembly. Load (filebytes );
Methodinfo MI = assembly. entrypoint;
Mi. Invoke (null, null );

After compiling and running this command, you cannot view it with reflector.Source code. But we can still use reflection to shell and crack it. I don't know much about it.

2. Use sixxpack
This is a tool that shells and compresses. net programs. The maximum compression ratio is 80%. After compression, the source files cannot be compiled. All information about actmp. dll can be viewed with reflector. However, someone in cnblogs recently showed a method to crack this. If you are interested, you can find it.
Search for GUAN Tian did not find the official website address, online looking for are 2.2 Chinese version, do not know if it is the latest,: http://dl.onlinedown.net/soft/56183.htm

It is quite interesting to use these two methods together, at least increasing the difficulty of cracking by others ~~~ Haha

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.