Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

When select into outfile writes a file, the path contains a Chinese solution.

2025-03-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Set character_set_client='gbk'

Set character_set_connection='gbk'

Set character_set_database='gbk'

Set character_set_results='gbk'

Set character_set_server='gbk'

Select'2' into outfile'c:\\ Yes\\ 22b.txt'

Many people should encounter this kind of problem, and the name of the file written out finally is garbled.

In fact, as long as the Chinese URL coding (GBK), here is the gbk format of url coding, most of the tools url coding is utf8 format.

For example:

"Chinese path" = >% url encoding in E4%B8%AD%E6%96%87%E8%B7%AF%E5%BE%84 / / utf8 format

"Chinese path" = >% url encoding in D6%D0%CE%C4%C2%B7%BE%B6 / / gbk format

In this way, we can easily solve the problem that the injection point has high permissions but encounters the Chinese path.

Provide an online coding website:

Http://www.mytju.com/classcode/tools/urlencode_gb2312.asp

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report