-
Notifications
You must be signed in to change notification settings - Fork 1.6k
LDAP protocol improvements and scan-network module bugfix #642
Conversation
Hello thanks for the PR. This is a lot of change while you are solving different problem in one PR. Can you post some screenshot for the cross domain fix before and after ? Actual code was working pretty well for this kind of situation last time I use it so I'm kind of surprise.
|
I see, interesting ! I will review it :) |
I tried to make a similar comparison for kerberos authentication and I came across additional issues. It seems impacket ldap implementation fails to properly request kerberos tickets for cross forest authentication and It only succeeds when there already are kerberos tickets in the ccache. During previous testing of my code there were proper kerberos tickets in my ccache file and therefore I didn't encounter errors during cross forest authentication in the past. Thereforce I conclude the my code also doesn't fix cross forest auth but it does fix the following odd behavior. Tthe following two commands result in unexpected behavior, Where I would expect the command to connect to test.lab, it actually connects to the kdchost dc01.nurfed.lab. The screenshot also incorrectly shows DC02 instead of DC01.
I'm not sure if I'm capable enough to fix impacket ldap or add a workaround in cme myself, but I'll have a look. |
Hi mpgn, Please ignore my comment about impacket ldap cross domain kerberos authentication being broken. I think something in my lab broke instead, (ended up rebuilding everything last night)... My code however did still have some issues with cross domain kerberos authentication and the kerberoasting/asreproasting commands. This should all be fixed in the lastest commit. All commands are now properly tested (kerberoasting, asreproast, trusted-for-delegation, -password-not-required, admin-count, ...) |
Ok I will check it in my lab :) |
In this pull request I tried fixing some LDAP related issues.
Changes
cme/protocols/ldap.py:
cme/modules/scan-network.py:
Other notes that are not (yet?) addressed: