Skip to content

Adds relay to ICPR over RPC#1442

Closed
sploutchy wants to merge 4 commits into
fortra:masterfrom
sploutchy:master
Closed

Adds relay to ICPR over RPC#1442
sploutchy wants to merge 4 commits into
fortra:masterfrom
sploutchy:master

Conversation

@sploutchy

Copy link
Copy Markdown
Contributor

Adds the ability to relay to ICPR over RPC to request a certificate for the relayed user (analog to AD CS ESC8).

See https://blog.compass-security.com/2022/11/relaying-to-ad-certificate-services-over-rpc/ for more information.

@mxrch

mxrch commented Nov 29, 2022

Copy link
Copy Markdown
Contributor

Awesome feature ! 🫶

While testing it was crashing with the error TypeError: 'staticmethod' object is not callable, I proposed a PR in your fork : sploutchy#1 :)

Patch static methods called with args
sploutchy added a commit to sploutchy/impacket that referenced this pull request Jun 27, 2024
@anadrianmanrique anadrianmanrique added the in review This issue or pull request is being analyzed label Feb 20, 2025
@noraj

noraj commented May 6, 2025

Copy link
Copy Markdown

That would be the perfect replacement for certipy relay for ECS11.

rtpt-romankarwacik pushed a commit to rtpt-romankarwacik/impacket that referenced this pull request Jun 4, 2025
@gabrielg5

Copy link
Copy Markdown
Collaborator

(updating also in this PR)
FYI, will be checking #1974 instead than this one

@gabrielg5 gabrielg5 removed the in review This issue or pull request is being analyzed label Jun 6, 2025
@gabrielg5

Copy link
Copy Markdown
Collaborator

Clsoing as will be worked in #1974

@gabrielg5 gabrielg5 closed this Jun 11, 2025
gabrielg5 added a commit that referenced this pull request Jun 23, 2025
* RPC Relay server

* Adds #1442

* Add EPM so e.g. printspooler can be relayed

* Fix log creation

* Fix copyright header

* RPCAttack: Save certificate to file instead of printing to console by default

* Removed unused RPC attack mode

* RPC relay server: keep relaying

* RPC relay server: Fix forgotten variable

* rpcrelayserver.py: Fixing client_address property

Co-authored-by: Gabriel Gonzalez <gabriel.gonzalez@fortra.com>

* rpcrelayserver.py: replace constant by reference

* rpcrelayserver.py: keep relaying 2

* rpcrelayserver.py: disable multirelay

* rpcrelayserver.py: outsource target setting to negotiate_ntlm_session

* RPCRelayServer: Consuming targets only on NTLMSSP_AUTH_NEGOTIATE

* Opportunistic enhancement: consider finishedAttack target's scheme to retrieve target candidate

---------

Co-authored-by: Sylvain Heiniger <sploutchy@gmail.com>
Co-authored-by: S3cur3Th1sSh1t <27858067+S3cur3Th1sSh1t@users.noreply.github.com>
Co-authored-by: Gabriel Gonzalez <gabriel.gonzalez@fortra.com>
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.

5 participants