msf gets the shell display garbled solution and chcp various encoding supplements

Article directory


foreword

After msf gets the shell, there are often garbled characters in the input command, which can be solved with only one command.


chcp 65001 

insert image description here

The meaning of chcp 65001 is: change the current active code page to UTF-8, so that the current batch window supports files in UTF-8 format.

Change the active code page of the current cmd form. The so-called active code page is simply character encoding.

Supplement:
936 = GBK (used to display Chinese)
437 = default character set of MS-DOS
65001 = UTF-8


    The article is original, welcome to reprint, please indicate the source of the article: msf got the shell to display garbled characters solution and chcp various encoding supplements .. Baidu and various collection sites are not trustworthy, please be careful when searching. Technical articles are generally time-sensitive. I am used to revising and updating my blog posts from time to time, so please visit the source to view the latest version of this article.

Guess you like

Origin blog.csdn.net/weixin_43847838/article/details/130124944