Skip to content

Commit 630d325

Browse files
Merge pull request Pennyw0rth#325 from Fabrizzio53/main
Added --dns-tcp,--dns-timeout and --dns-server parameters to the ldap protocol when using --bloodhound
2 parents 4086238 + a4e9ef2 commit 630d325

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

nxc/protocols/ldap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,9 +1402,9 @@ def bloodhound(self):
14021402
ad = AD(
14031403
auth=auth,
14041404
domain=self.domain,
1405-
nameserver=self.args.nameserver,
1406-
dns_tcp=False,
1407-
dns_timeout=3,
1405+
nameserver=self.args.dns_server,
1406+
dns_tcp=self.args.dns_tcp,
1407+
dns_timeout=self.args.dns_timeout,
14081408
)
14091409
collect = resolve_collection_methods("Default" if not self.args.collection else self.args.collection)
14101410
if not collect:

nxc/protocols/ldap/proto_args.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def proto_args(parser, parents):
3333

3434
bgroup = ldap_parser.add_argument_group("Bloodhound Scan", "Options to play with Bloodhoud")
3535
bgroup.add_argument("--bloodhound", action="store_true", help="Perform a Bloodhound scan")
36-
bgroup.add_argument("-ns", "--nameserver", help="Custom DNS IP")
3736
bgroup.add_argument("-c", "--collection", default="Collection", help="Which information to collect. Supported: Group, LocalAdmin, Session, Trusts, Default, DCOnly, DCOM, RDP, PSRemote, LoggedOn, Container, ObjectProps, ACL, All. You can specify more than one by separating them with a comma")
3837

39-
return parser
38+
return parser

0 commit comments

Comments
 (0)