Skip to content

Commit

Permalink
Fixed #64
Browse files Browse the repository at this point in the history
  • Loading branch information
p0dalirius committed Oct 4, 2023
1 parent e59d37d commit 1ba95b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions coercer/core/modes/coerce.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ def action_coerce(target, available_methods, options, credentials, reporter):
filter_pipe_name=options.filter_pipe_name
)

# Preparing tasks ==============================================================================================================

portmap = {}
if "dcerpc" in options.filter_transport_name:
if not options.dce_ports:
portmap = portmap_discover(target, options.dce_port)
else:
portmap = {}

# Preparing tasks ==============================================================================================================

tasks = {}
for method_type in available_methods.keys():
for category in sorted(available_methods[method_type].keys()):
Expand Down
1 change: 1 addition & 0 deletions coercer/core/modes/fuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def action_fuzz(target, available_methods, options, credentials, reporter):
return None
else:
named_pipe_of_remote_machine = kept_pipes_after_filters

if "dcerpc" in options.filter_transport_name:
portmap = portmap_discover(target, options.dce_port)
for uuid in portmap.get("ncacn_ip_tcp",[]):
Expand Down
6 changes: 4 additions & 2 deletions coercer/core/modes/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ def action_scan(target, available_methods, options, credentials, reporter):
filter_pipe_name=options.filter_pipe_name
)

# Preparing tasks ==============================================================================================================

portmap = {}
if "dcerpc" in options.filter_transport_name:
if not options.dce_ports:
portmap = portmap_discover(target, options.dce_port)
else:
portmap = {}

# Preparing tasks ==============================================================================================================

tasks = {}
for method_type in available_methods.keys():
for category in sorted(available_methods[method_type].keys()):
Expand Down

0 comments on commit 1ba95b2

Please sign in to comment.