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

Display created ProcessId using wmiexec.py #1814

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NtAlexio2
Copy link
Contributor

This PR contains two changes in wmiexec.py:

  1. drops python2 support due to recent changes in Impacket.
  2. display ProcessId and ReturnValue for created process using wmi, if -nooutput was specified.

Sample:

┌──(kali㉿kali)-[~/Dev/impacket]
└─$ python examples/wmiexec.py -nooutput Administrator:SecretPass123@192.168.1.78 notepad
Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies

[abstract]
class __PARAMETERS
{
        [Out(True)]
        [MappingStrings(['Win32API|Process and Thread Functions|CreateProcess|lpProcessInformation|dwProcessId'])]
        [ID(3)]
        uint32 ProcessId = 6560

        [out(True)]
        uint32 ReturnValue = 0


}

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

Successfully merging this pull request may close these issues.

1 participant