Skip to content

Remove unsupported target_ip from atexec and dcomexec#96

Merged
mkultraWasHere merged 2 commits into
mainfrom
nops/md4-targetip-fixes
Jul 15, 2026
Merged

Remove unsupported target_ip from atexec and dcomexec#96
mkultraWasHere merged 2 commits into
mainfrom
nops/md4-targetip-fixes

Conversation

@mkultraWasHere

@mkultraWasHere mkultraWasHere commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Fixes tool argument compatibility issue found during agent testing.

Breaking

  • impacket_atexec and impacket_dcomexec no longer accept target_ip — impacket 0.13.x doesn't support -target-ip for these scripts (wmiexec, psexec, smbexec still support it). Use the IP directly as target instead.

mkultraWasHere and others added 2 commits July 14, 2026 21:31
- Remove target_ip parameter from impacket_atexec and impacket_dcomexec
  — installed impacket 0.13.x doesn't support -target-ip for these
  scripts, causing unrecognized argument errors. Use the IP directly
  as target instead.
- Enable OpenSSL legacy provider in install script for MD4 support —
  fixes "unsupported hash type MD4" errors in rbcd, dacledit, owneredit
  and any NTLM password auth path.
- Bump to 2.1.4.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… hack

- Remove target_ip from impacket_atexec and impacket_dcomexec — impacket
  0.13.x doesn't support -target-ip for these two scripts (wmiexec,
  psexec, smbexec do support it).
- Remove OpenSSL legacy provider hack from install script — impacket
  uses pycryptodomex for MD4, not OpenSSL. The MD4 errors are caused by
  the same Python version mismatch (pycryptodomex installed for 3.13,
  runtime is 3.12), which PR #93's auto-install fix addresses.
- Bump to 2.1.4.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the network-ops Impacket tool wrappers for compatibility with impacket 0.13.x by removing unsupported -target-ip usage from atexec.py/dcomexec.py, and bumps the capability version.

Changes:

  • Remove the target_ip argument from impacket_atexec and impacket_dcomexec, and stop emitting -target-ip for those scripts.
  • Update tool docstrings to clarify using an IP directly when DNS resolution isn’t available.
  • Bump capabilities/network-ops capability version.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
capabilities/network-ops/tools/impacket.py Drops target_ip support specifically for atexec/dcomexec and updates related documentation/flag building.
capabilities/network-ops/capability.yaml Updates the capability version to reflect the change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread capabilities/network-ops/capability.yaml
schema: 1
name: network-ops
version: "2.1.3"
version: "2.1.4"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed — updated PR title to match actual changes. MD4 fix was reverted after discovering impacket uses pycryptodomex (not OpenSSL) and the issue resolves with PR #93's auto-install.

Comment on lines 4099 to +4103
self._build_auth_flags(
hashes=hashes, kerberos=kerberos, aes_key=aes_key, password=password
)
)
args.extend(self._build_connection_flags(dc_ip=dc_ip, target_ip=target_ip))
args.extend(self._build_connection_flags(dc_ip=dc_ip))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't fix. The fix is removing a parameter, not adding logic. Testing that a deleted param doesn't appear in argv is low value.

@mkultraWasHere mkultraWasHere changed the title Fix atexec/dcomexec target_ip + enable MD4 for NTLM Remove unsupported target_ip from atexec and dcomexec Jul 15, 2026
@mkultraWasHere mkultraWasHere merged commit 8968df6 into main Jul 15, 2026
6 checks passed
@mkultraWasHere mkultraWasHere deleted the nops/md4-targetip-fixes branch July 15, 2026 01:50
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.

2 participants