Back for a post that should not fail to interest. Our mission of business is to find all the positions having been a local administrator account. In our quest to take control of the DA, this should be quite useful ...
Background (fast)
During a penetration test internal scenario often looks like this: I
a user's machine and I have a user account => I become a local administrator; In general, all work stations or close to, or at least a good group have the same password for local administrator account => so we can connect with this account on other PCs;
It retrieves all domain accounts on all workstations, praying that one of them contains an account that has rights "Domain Admins". Tools allow us to know the desired accounts.
is not all that bad but it takes time, it's not very targeted and not very discreet. It is assumed therefore that the local administrator account is in our possession (you know how much as I do ...) and then it comes into play tool
- keimpx
- . Demonstration ...
- Installation
Here are the steps to install:
Start with
download is a python program;
If you run it as is, you'll certainly errors. So you'll probably need to install py2exe you can find here
;
- it's still not working? Normaaaaaaaaaal;) In reality, you should download Python classes impacket (Core Impact: ah yes, the tool is to them). Everything is here
- .
- This time, you have no excuse if it does not work;)
- It takes action!
To start, is very simple. You can either target a single machine with
Does
adresse_cible
or a list of machine-
the
I
two things wrong with the tool by trying the first time knowing that internal audit, we are often faced with a large number of workstations while trying to gain speed and efficiency. Indeed
: when one chooses to give a list of host parameter, you can not use address ranges like 172.16.1.0-172.16.4.255 and I do not see myself writing one at all places one in a file ... Or so I have not seen the proper syntax?
my script takes as parameter a text file containing address ranges and / or unique addresses into a single list of hosts that will manage keimpx;
- in this list I ping the machines for those who know will respond. The others will then not be treated keimpx and there, it saves time!
-
keimpx since I'm talking about just now but what makes these opportunities? Small demonstration)
Keimpx in action ...
Once file processing pinging made, Keimpx is launched. It lists the machines with the username / pwd for the admin known locally. 2 places are "matched" by :
XXX.XXX.XXX.136 The machine is my machine so no interest. We therefore tackle machine XXX.XXX.XXX.219. Then, interestingly, we propose a shell keimpx: I say "yes"!
We therefore ask to choose the target machine, by the second. Then the credentials to use. There is no choice: type 1 and hit enter.
Navigate disks (via shares): shares
#
Then select the desired disc, here C $:
List users and the security policy on the accounts (extract):
Get a shell:
# shell
- Bon bah that's done;)
Conclusion
The popularity of Web applications and external tests that many tools exist in this sense . Keimpx another key area where the tools are less present. They will not necessarily do more things than before but we will definitely Swiss Army knife of internal tests we simplify things.
Now's your turn to test and explore these other features.
Have fun!