Skip to content

Commit

Permalink
Merge pull request #315 from Pennyw0rth/neff-e2e_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NeffIsBack committed May 25, 2024
2 parents ad923f8 + 404bff5 commit b855dac
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 220 deletions.
87 changes: 0 additions & 87 deletions nxc/modules/bh_owned.py

This file was deleted.

4 changes: 1 addition & 3 deletions nxc/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
import nxc

NXC_PATH = os.path.expanduser("~/.nxc")
TMP_PATH = os.path.join("/tmp", "nxc_hosted")
if os.name == "nt":
TMP_PATH = os.getenv("LOCALAPPDATA") + "\\Temp\\nxc_hosted"
TMP_PATH = os.getenv("LOCALAPPDATA") + "\\Temp\\nxc_hosted" if os.name == "nt" else os.path.join("/tmp", "nxc_hosted")
if hasattr(sys, "getandroidapilevel"):
TMP_PATH = os.path.join("/data", "data", "com.termux", "files", "usr", "tmp", "nxc_hosted")

Expand Down
7 changes: 4 additions & 3 deletions nxc/protocols/mssql.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,10 @@ def execute(self, payload=None, get_output=False):
return False
else:
self.logger.success("Executed command via mssqlexec")
output_lines = StringIO(output).readlines()
for line in output_lines:
self.logger.highlight(line.strip())
if output:
output_lines = StringIO(output).readlines()
for line in output_lines:
self.logger.highlight(line.strip())
return output

@requires_admin
Expand Down
3 changes: 2 additions & 1 deletion tests/data/test_passwords.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Passw0rd!
None
ftp
guest
guest
iamthekingoftheworld
3 changes: 2 additions & 1 deletion tests/data/test_users.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Administrator
Anonymous
ftp
guest
guest
robert.baratheon
Loading

0 comments on commit b855dac

Please sign in to comment.