exploits icon indicating copy to clipboard operation
exploits copied to clipboard

KeyError: 'hits'

Open Naategh opened this issue 6 years ago • 1 comments

After getting shell when I want to run my commands I got this error:

Traceback (most recent call last):
  File "elastic_shell.py", line 56, in <module>
    main(args=sys.argv)
  File "elastic_shell.py", line 53, in main
    exploit(target=args[1])
  File "elastic_shell.py", line 47, in exploit
    execute_command(target=target, command=cmd)
  File "elastic_shell.py", line 36, in execute_command
    fuckingjson = values['hits']['hits'][0]['fields']['lupin'][0]
KeyError: 'hits'

Naategh avatar Jul 22 '19 05:07 Naategh

im getting the same error

encrypted23 avatar Oct 09 '19 19:10 encrypted23