Skip to content

Commit 68751bf

Browse files
Merge pull request #1709 from sagnik-p/Background-payload-runner
Background payload runner
2 parents 670dc6b + 400c948 commit 68751bf

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

Background-Payload-Runner/readme.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# A PYTHON SCRIPT TO RUN PAYLOADS IN THE BACKGROUND
2+
3+
4+
Input:
5+
1. Which command line to use (command prompt or powershell)
6+
2. time delay after which payload will run
7+
3. Payload that is to be executed in the background
8+
9+
10+
11+
The payload can be any payload
12+
>can be a harmless rickroll payload
13+
>can be a payload that connects to a hacker's computer with reverse-shell
14+
15+
Possibilities of the payload are endless , SKY IS THE LIMIT
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
background==0.2.1
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import time
2+
import background
3+
import os
4+
5+
##select which command line you want to run the payload on
6+
##commandline="cmd /c "
7+
commandline="powershell "
8+
9+
time_delay=0 ##in seconds
10+
11+
##CUSTOM PAYLOAD
12+
payload="Start-process chrome.exe https://www.youtube.com/watch?v=dQw4w9WgXcQ" ##rickroll payload
13+
14+
15+
##other payloads (example)
16+
##payload="shutdown"
17+
## --shuts down the machine without any confirmation
18+
19+
##payload="shutdown -force -restart"
20+
## --restarts the machine without any confirmation
21+
##payload="netsh wlan disconnect"
22+
## --disconnects the wifi of the machine
23+
24+
##THESE ARE JUST A FEW. The possibilities are endless
25+
26+
27+
28+
@background.task
29+
def work():
30+
if(time_delay!=0):
31+
time.sleep(time_delay)
32+
os.system(commandline+payload)
33+
work()

0 commit comments

Comments
 (0)