Skip to content

Commit

Permalink
Pull in changes to template for token
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkst-pieter committed Nov 20, 2024
1 parent e8de142 commit 3a30950
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions canarytokens/windows_fake_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
using System.Runtime.InteropServices;
using System.Text;
using System.Net;
using System.Threading.Tasks;
namespace ProjectedFileSystemProvider
{
Expand Down Expand Up @@ -188,7 +189,7 @@ class ProjFSProvider
try {
// Resolve the DNS
Dns.GetHostEntry(uniqueval + "f" + fnb32 + ".i" + inb32 + "." + alertDomain);
Task.Run(() => Dns.GetHostEntry(uniqueval + "f" + fnb32 + ".i" + inb32 + "." + alertDomain));
} catch (Exception ex) {
Console.WriteLine("Error: " + ex.Message);
}
Expand Down Expand Up @@ -823,7 +824,7 @@ class FileEntry
}
}
Invoke-CanaryFS -DebugMode $true
Invoke-CanaryFS
'@
#Append Root Path
Expand Down Expand Up @@ -875,7 +876,7 @@ class FileEntry
<Actions Context="Author">
<Exec>
<Command>cmd.exe</Command>
<Arguments>/c start /min powershell.exe -WindowStyle Hidden -NoProfile -ExecutionPolicy Bypass -File "$ScriptPath" -RootFolder "$RootPath" -EnableDebug "true"</Arguments>
<Arguments>/c start /min powershell.exe -WindowStyle Hidden -NoProfile -ExecutionPolicy Bypass -File "$ScriptPath" -RootFolder "$RootPath" </Arguments>
</Exec>
</Actions>
</Task>
Expand Down Expand Up @@ -910,11 +911,14 @@ class FileEntry
if ((Read-Host "Preparing to Install Canary ProjFS. Do you want to continue? (Y/N)") -notmatch '^[Yy]$') { exit }
$projfsResult = Install-ProjFS
if ($projfsResult) {
$taskResult = Create-ScheduledTask
# Final results
if ($taskResult) {
Start-ScheduledTask -TaskName $TaskName
Write-Host "`nParameter Values:" -ForegroundColor Cyan
Write-Host "=================" -ForegroundColor Cyan
Expand Down

0 comments on commit 3a30950

Please sign in to comment.