Skip to content

Commit

Permalink
Merge branch 'main' into ldap-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
p0rtL6 committed Feb 20, 2025
2 parents 11b12c4 + aa7eaf4 commit b996a0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/attacks/cmpivot.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ def do_cd(self, arg):
#path needs to end with \ or all file system queries will fail
if not arg.endswith("\\"):
arg = arg + "\\"
option = arg.split(' ')
self.cwd = option[0]
self.cwd = arg

# ############
# Database Section
Expand Down Expand Up @@ -128,8 +127,7 @@ def do_get_lastlogon(self, arg):
@cmd2.with_category(SA)
def do_cat(self, arg):
"""Read file contents. cat (filename)"""
option = arg.split(' ')
filename = option[0]
filename = arg
logger.info(f"Tasked SCCM to show {arg}")
fullpath = self.cwd + filename
self.script.cat(fullpath, device=self.device)
Expand Down
2 changes: 1 addition & 1 deletion lib/scripts/runscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def cat(self, file, device):
#filecontent cmpivot module doesn't work so here's the bandaid
script = '''
function do-cat{
$contents = (Get-Content -Path %s) -replace 111,222
$contents = (Get-Content -Path "%s") -replace 111,222
return $contents
}
function Do-Delete {
Expand Down

0 comments on commit b996a0e

Please sign in to comment.