Skip to content

Commit

Permalink
Use root dir from token
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkst-pieter committed Nov 19, 2024
1 parent 5d5f13b commit 6e0b5d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion canarytokens/windows_fake_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,6 @@ class FileEntry
}
"""

DUMMY_ROOT_DIR = "C:\\vfs"
DUMMY_FOLDER_STRUCTURE = [
{
"name": "Projects",
Expand Down
4 changes: 2 additions & 2 deletions frontend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ def _(
auth=download_request_details.auth,
content=windows_fake_fs.make_windows_fake_fs(
token_hostname=canarydrop.get_hostname(),
root_dir=windows_fake_fs.DUMMY_ROOT_DIR,
root_dir=canarydrop.windows_fake_fs_root,
fake_file_structure=windows_fake_fs.DUMMY_FOLDER_STRUCTURE,
),
filename=f"{canarydrop.canarytoken.value()}.ps",
Expand Down Expand Up @@ -1669,7 +1669,7 @@ def _(
url_components=list(canarydrop.get_url_components()),
powershell_file=windows_fake_fs.make_windows_fake_fs(
token_hostname=canarydrop.get_hostname(),
root_dir=windows_fake_fs.DUMMY_ROOT_DIR,
root_dir=canarydrop.windows_fake_fs_root,
fake_file_structure=windows_fake_fs.DUMMY_FOLDER_STRUCTURE,
),
)
Expand Down

0 comments on commit 6e0b5d8

Please sign in to comment.