gemtek_cpe7000 (EDB-39726) — payload.encoded_exe returns nil on current framework

Author: twomack-starCreated Sep 28, 2026Updated Sep 28, 2026
Labelsquestion

I'm trying to run the 2016 exploit module exploits/linux/http/gemtek_cpe7000 (Exploit-DB #39726) on a current build of Metasploit, and it fails during payload handling.

On run: Exploit failed: NoMethodError undefined method 'scan' for nil

That traces to this line in the module: pl = payload.encoded_exe

payload.encoded_exe appears to return nil on the current framework, so the following .scan call blows up.

I tried changing that line to: pl = generate_payload_exe

...but then I get: Exploit failed: NameError undefined local variable or method 'generate_payload_exe'

Questions:

  1. What's the current/correct API for generating a payload executable inside an exploit module (the replacement for the old payload.encoded_exe)?
  2. The module hardcodes ARCH_ARMLE in its Targets. What's the right way to make the target architecture selectable (the hardware I'm testing on may be MIPS rather than ARM)?

This is against hardware I own on a private lab network. Happy to test fixes and submit a PR if that's helpful. Thanks.

Source: rapid7/metasploit-framework