Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MSSQL] Improvement #136

Merged
merged 27 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9e01b97
[mssql] bye bye SMB :)
XiaoliChan Dec 4, 2023
6f1bcaa
[mssql] Enhance the error message
XiaoliChan Dec 4, 2023
750d35e
[mssql] revert pyproject.toml
XiaoliChan Dec 4, 2023
aade033
[mssql] fix wrong things and add brackets
XiaoliChan Dec 4, 2023
cf91a11
[mssql] self review
XiaoliChan Dec 5, 2023
cbdf87a
[mssql] bye bye '--no-smb'
XiaoliChan Dec 5, 2023
dd78e22
[mssql] move outputBuffer
XiaoliChan Dec 5, 2023
f7078bb
[mssql] more linebreak
XiaoliChan Dec 5, 2023
9a6a371
[mssql] ruff
XiaoliChan Dec 5, 2023
4a18e2f
[mssql] Bringing up timeout argument
XiaoliChan Dec 5, 2023
86ebce4
[mssql] self review
XiaoliChan Dec 5, 2023
8a5d77b
[mssql] fix kerb_pass
XiaoliChan Dec 5, 2023
93f3bcc
[mssql] fix ccache
XiaoliChan Dec 5, 2023
2c17436
[mssql] less code
XiaoliChan Dec 5, 2023
b4ae46f
[mssql] bug fix
XiaoliChan Dec 12, 2023
d6eb6c2
[mssql] add is_mssql check
XiaoliChan Dec 12, 2023
ae5d57a
[mssql] ruff
XiaoliChan Dec 12, 2023
1e2e4ad
Merge remote-tracking branch 'upstream/main' into mssql-improv
XiaoliChan Feb 7, 2024
666a817
Merge branch 'main' into mssql-improv
XiaoliChan Feb 26, 2024
1454b26
Merge branch 'main' into mssql-improv
XiaoliChan Feb 27, 2024
b8912b5
[nanodump] Bug fixed
XiaoliChan Feb 27, 2024
2a497f4
Merge branch 'main' into mssql-improv
XiaoliChan Feb 27, 2024
387538a
Merge branch 'main' into mssql-improv
XiaoliChan Feb 28, 2024
3af5186
[mssql] remove drop mssql-ntlm-parser.py
XiaoliChan Feb 28, 2024
4a08578
[mssql] Ready for PR #191
XiaoliChan Feb 29, 2024
7d9ddfb
Merge branch 'main' into mssql-improv
XiaoliChan Mar 3, 2024
9120d1d
[mssql] mpgn: review
XiaoliChan Mar 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions nxc/modules/nanodump.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def on_admin_login(self, context, connection):
with open(os.path.join(self.nano_path, self.nano), "rb") as nano:
try:
self.context.log.display(f"Copy {self.nano} to {self.remote_tmp_dir}")
exec_method = MSSQLEXEC(self.connection.conn)
exec_method = MSSQLEXEC(self.connection.conn, self.context.log)
exec_method.put_file(nano.read(), self.remote_tmp_dir + self.nano)
if exec_method.file_exists(self.remote_tmp_dir + self.nano):
self.context.log.success(f"Created file {self.nano} on the remote machine {self.remote_tmp_dir}")
Expand All @@ -118,13 +118,13 @@ def on_admin_login(self, context, connection):
self.context.log.display(f"Getting LSASS PID via command {command}")
p = self.connection.execute(command, display_output)
self.context.log.debug(f"tasklist Command Result: {p}")
if len(p) == 1:
p = p[0]

if not p or p == "None":
self.context.log.fail("Failed to execute command to get LSASS PID")
return

if len(p) == 1:
p = p[0]

pid = p.split(",")[1][1:-1]
self.context.log.debug(f"pid: {pid}")
timestamp = datetime.today().strftime("%Y%m%d_%H%M")
Expand Down
Loading
Loading