XiphosResearch / exploits

Miscellaneous exploit code
http://www.xiphosresearch.com/
1.52k stars 586 forks source link

KeyError: 'hits' #16

Open Naategh opened 5 years ago

Naategh commented 5 years ago

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'
encrypted23 commented 5 years ago

im getting the same error