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

Help for lab setup? #3

Open
7MinSec opened this issue Aug 2, 2021 · 8 comments
Open

Help for lab setup? #3

7MinSec opened this issue Aug 2, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@7MinSec
Copy link

7MinSec commented Aug 2, 2021

Hello there,

I'm SUPER excited to try this in the lab. I spun up a fresh Server 2019, joined to my test domain, and then followed this blog to install ADCS. All services appear to be good to go, and if I browse to http://adcs.my.domain/certsrv I get the ADCS page.

However, if I try to trigger ADCSPwn, I only get...

[i] Found 34 certificate templates
[i] Set ADCS web service as: adcs.my.domain
[i] Triggering authentication from target [dc.my.domain]

...and then that's it.

Are there some basic troubleshooting things I can do? Not sure where the disconnect is here.

Thanks,
Brian

@bats3c
Copy link
Owner

bats3c commented Aug 2, 2021

That is because ADCSPwn relies on WebDAV as described in issue #2

@bats3c bats3c closed this as completed Aug 2, 2021
@salinnsilva
Copy link

ADCSPwn.exe --adcs barcelona12.dc.nova --remote 192.168.172.129 --output C:\Temp\cert_b64.txt

The local computer is not part of a domain or the domain cannot be contacted.
even with everything right and connected

@bats3c
Copy link
Owner

bats3c commented Aug 3, 2021

@salinnsilva please stick to issue #4 only with your problem please.

@j0nh4t
Copy link

j0nh4t commented Aug 13, 2021

I'm having the same issue even though WebClient service is running. Any tips troubleshooting?

Running as Domain User

PS C:\Tools> sc.exe query WebClient

SERVICE_NAME: WebClient
        TYPE               : 30  WIN32
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

PS C:\Tools> .\ADCSPwn.exe --adcs adcs.evilcorp.local

   _____  ________  _________   ___________________
  /  _  \ \______ \ \_   ___ \ /   _____/\______   \__  _  ______
 /  /_\  \ |    |  \/    \  \/ \_____  \  |     ___/\ \/ \/ /    \
/    |    \|    `   \     \____/        \ |    |     \     /   |  \
\____|__  /_______  /\______  /_______  / |____|      \/\_/|___|  /
        \/        \/        \/        \/                        \/

Author: @_batsec_ - MDSec ActiveBreach
Contributor: @Flangvik -  TrustedSec

[i] Found 34 certificate templates
[i] Set ADCS web service as: adcs.evilcorp.local
[i] Triggering authentication from target (localhost)

[i] Using path \\workstation1@8080/7AWGI387CI\22Y53PGE8F\OCFDDCWS8W

Doesn't timeout, just hangs here. workstation1 is listening on 8080

On ADCS there are no new issued, pending or failed requests. I have no issues when exploiting with PetitPotam and ntlmrelayx so I think my ADCS is running and configured correctly.

@bats3c
Copy link
Owner

bats3c commented Aug 19, 2021

Yes i am having the same issue since patch Tuesday. It appears that MS have patched something which is preventing PetitPotam from triggering the authentication over WebDAV, i am currently working on a fix.

@bats3c bats3c added the bug Something isn't working label Aug 19, 2021
@bats3c bats3c reopened this Aug 19, 2021
@qaxnb666
Copy link

qaxnb666 commented Nov 1, 2021

I would like to know how did you solve this problem.

@0xAsh
Copy link

0xAsh commented Mar 7, 2022

Yes i am having the same issue since patch Tuesday. It appears that MS have patched something which is preventing PetitPotam from triggering the authentication over WebDAV, i am currently working on a fix.

I believe MS hotfixed the original RPC calls that were disclosed by Topotam. I've had decent success utilizing Ly4k's Python implementation which introduces extra EfsRpc calls, might be helpful.

@V0lk3n
Copy link

V0lk3n commented Jul 29, 2022

Look this thread on twitter there is a workaround apparently : https://twitter.com/snovvcrash/status/1552937059614363648

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants