Script and README
parent
b6d61fefdc
commit
f07d4d07d4
|
@ -0,0 +1,21 @@
|
|||
# Change Wallpaper With Screenshot
|
||||
|
||||
A script used to prank friends by editing their wallpaper with a screenshot making them think that the computer somehow does what it wants. LOL
|
||||
|
||||
**Category**: Prank
|
||||
|
||||
## Description
|
||||
|
||||
A script used to prank friends by editing their wallpaper with a screenshot making them think that the computer somehow does what it wants.
|
||||
|
||||
Open a PowerShell, download the Python script and execute it. The Python script will make a screenshot that will be set as wallpaper on the computer where is runned.
|
||||
|
||||
## Getting Started
|
||||
|
||||
### Dependencies
|
||||
|
||||
* Internet Connection
|
||||
|
||||
### Settings
|
||||
|
||||
- Setup your Python script link in the payload.txt file
|
|
@ -0,0 +1,29 @@
|
|||
import os
|
||||
|
||||
try:
|
||||
import pyautogui
|
||||
except:
|
||||
os.system("pip install pyautogui")
|
||||
import pyautogui
|
||||
|
||||
from time import sleep
|
||||
|
||||
from PIL import Image
|
||||
import ctypes
|
||||
|
||||
|
||||
# Edit this time as you want...
|
||||
sleep(30)
|
||||
screenshot = pyautogui.screenshot()
|
||||
screenshot.save("screenshot.png")
|
||||
|
||||
img = Image.open('screenshot.png')
|
||||
|
||||
# Resize the screenshot as the desktop resolution
|
||||
user32 = ctypes.windll.user32
|
||||
screensize = user32.GetSystemMetrics(0), user32.GetSystemMetrics(1)
|
||||
img = img.resize(screensize)
|
||||
|
||||
# Set the new wallpaper
|
||||
image_path = os.path.abspath('screenshot.png')
|
||||
ctypes.windll.user32.SystemParametersInfoW(20, 0, image_path, 0)
|
Loading…
Reference in New Issue