Reverse列名大小写问题
MapleGe opened this issue · comments
ReverseShell项目处创建数据库中的connectionID
是小写c开头的,在transmission.py
中45行使用的key是大写的ConnectionID:c["ConnectionID"]
,腾讯云函数运行会报找不到的错。
{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Traceback (most recent call last):\n File \"/var/user/index.py\", line 88, in main_handler\n connectionIDs = get_connectionIDs(conn)\n File \"/var/user/index.py\", line 45, in get_connectionIDs\n connectionIDs = {c[\"ConnectionID\"]: c[\"is_user\"] for c in result}\n File \"/var/user/index.py\", line 45, in \u003cdictcomp\u003e\n connectionIDs = {c[\"ConnectionID\"]: c[\"is_user\"] for c in result}\nKeyError: 'ConnectionID'","statusCode":430}
感谢提交的 issue,很抱歉影响到您的使用了,将数据库中的 connectionID
改为 ConnectionID
即可。