NetExec icon indicating copy to clipboard operation
NetExec copied to clipboard

new module: ldap > dump-computers

Open crosscutsaw opened this issue 11 months ago • 3 comments

Description

i'm doing a lot of local infrastructure and active directory pentests. during my engagements, i always needing all computers of a domain. so i can first eliminate active directory then scan complete infrastructure with nessus. i was pulling bloodhound data then manipulating text so i retrieve domain computers. it's working, but, why can't i do it with precious netexec? that's why i created dump-computers module.

it's my first pr so please forgive my mistakes.

Type of change

  • [x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

i tested it with a dummy domain, domain controller and two clients.

Screenshots (if appropriate):

dc1 dc2 dco1 dco2

Checklist:

  • [x] I have ran Ruff against my changes (via poetry: poetry run python -m ruff check . --preview, use --fix to automatically fix what it can)
  • [ ] I have added or updated the tests/e2e_commands.txt file if necessary
  • [ ] New and existing e2e tests pass locally with my changes
  • [x] My code follows the style guidelines of this project (should be covered by Ruff above)
  • [x] If reliant on third party dependencies, such as Impacket, dploot, lsassy, etc, I have linked the relevant PRs in those projects
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation (PR here: https://github.com/Pennyw0rth/NetExec-Wiki)

crosscutsaw avatar Feb 07 '25 10:02 crosscutsaw

https://github.com/Pennyw0rth/NetExec/pull/556/commits/25ac2e2a2a8de16df6958078925c755c79486614

added only fqdn.

image

crosscutsaw avatar Feb 07 '25 14:02 crosscutsaw

https://github.com/Pennyw0rth/NetExec/pull/556/commits/fa3eba48dfa113362b51f6a0a3adc6848d3fe779

sorry for keep updating this pr. i made some adjustments for better usage.

image

crosscutsaw avatar Feb 08 '25 11:02 crosscutsaw

sorry for keep updating this pr. i made some adjustments for better usage.

No worries about that :)

Thanks for the PR! I will take a look at it as soon as i have some time.

NeffIsBack avatar Feb 08 '25 23:02 NeffIsBack

all done.

i hope it's okay since crowdstrike falcon won't allow me to clone repository so i updated manually from github web.

crosscutsaw avatar Jul 14 '25 10:07 crosscutsaw