Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redis_lua.py脚本执行报错 #1

Open
wybrono opened this issue Feb 18, 2019 · 1 comment
Open

redis_lua.py脚本执行报错 #1

wybrono opened this issue Feb 18, 2019 · 1 comment

Comments

@wybrono
Copy link

wybrono commented Feb 18, 2019

redis_lua.py脚本执行报错
Traceback (most recent call last):
File "D:/WorkSapce/Python/redis_lua.py", line 219, in
main()
File "D:/WorkSapce/Python/redis_lua.py", line 149, in main
DYNAMIC, DYNAMIC_SZ = lua.Find_DYNAMIC(0x400000)
File "D:/WorkSapce/Python/redis_lua.py", line 37, in Find_DYNAMIC
(e_flags, e_ehsize, e_phentsize) = self.ReadMemoryFmt(base + 0x30, 'IHH')
File "D:/WorkSapce/Python/redis_lua.py", line 27, in ReadMemoryFmt
return struct.unpack(fmt, self.ReadMemory(address))
File "D:/WorkSapce/Python/redis_lua.py", line 16, in ReadMemory
low, high = self.__ReadMemory(args = [address])
File "D:\WorkSapce\venv\lib\site-packages\redis\client.py", line 3498, in call
return client.evalsha(self.sha, len(keys), *args)
File "D:\WorkSapce\venv\lib\site-packages\redis\client.py", line 2704, in evalsha
return self.execute_command('EVALSHA', sha, numkeys, *keys_and_args)
File "D:\WorkSapce\venv\lib\site-packages\redis\client.py", line 755, in execute_command
return self.parse_response(connection, command_name, **options)
File "D:\WorkSapce\venv\lib\site-packages\redis\client.py", line 768, in parse_response
response = connection.read_response()
File "D:\WorkSapce\venv\lib\site-packages\redis\connection.py", line 638, in read_response
raise response
redis.exceptions.ResponseError: Error running script (call to f_94008bb6cd993484eae1cff68283a45105987415): @user_script:137: user_script:137: attempt to call upvalue 'reader' (a nil value)
请问怎么解决?

@grayguest
Copy link

grayguest commented Jul 24, 2020

# xiaopo @ fht in ~/python/POC/redis/redis_lua_exploit on git:master x [21:53:54] C:1
$ sudo python redis_lua.py
Traceback (most recent call last):
  File "redis_lua.py", line 219, in <module>
    main()
  File "redis_lua.py", line 149, in main
    DYNAMIC, DYNAMIC_SZ = lua.Find_DYNAMIC(0x400000)
  File "redis_lua.py", line 37, in Find_DYNAMIC
    (e_flags, e_ehsize, e_phentsize) = self.ReadMemoryFmt(base + 0x30, 'IHH')
  File "redis_lua.py", line 27, in ReadMemoryFmt
    return struct.unpack(fmt, self.ReadMemory(address))
  File "redis_lua.py", line 16, in ReadMemory
    low, high = self.__ReadMemory(args = [address])
  File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 4073, in __call__
    return client.evalsha(self.sha, len(keys), *args)
  File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 3143, in evalsha
    return self.execute_command('EVALSHA', sha, numkeys, *keys_and_args)
  File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 901, in execute_command
    return self.parse_response(conn, command_name, **options)
  File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 915, in parse_response
    response = connection.read_response()
  File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 756, in read_response
    raise response
redis.exceptions.ResponseError: Error running script (call to f_94008bb6cd993484eae1cff68283a45105987415): @user_script:137: user_script:137: attempt to call upvalue 'reader' (a nil value) 

同样的错误。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants