Skip to content

Instantly share code, notes, and snippets.

@tifasoftware
Created July 13, 2022 04:36
Show Gist options
  • Save tifasoftware/cbe1058fa78a4b869d8ce265f16be5e5 to your computer and use it in GitHub Desktop.
Save tifasoftware/cbe1058fa78a4b869d8ce265f16be5e5 to your computer and use it in GitHub Desktop.
LightShot Screen Shot Scrapping

This demostrates a privacy and security concern with the Lightshot screenshot tool. This was first discovered by TikTok, also featured in a Linus Tech Tips video. Run the script and type in a two letter combination, and your computer will be flooded with numerous screenshots. Also, some of these screenshots may have revealing information, and/or sex/nudity.

You need to have wget installed and works on Mac (including M1+) and Linux. Windows users should use WSL to run this.

from bs4 import BeautifulSoup
import os
import subprocess
print("Enter A 2 Letter Combo:")
code = input()
for i in range(1000, 9999):
print("Downloading pic "+ str(i) + "in" + code)
os.system("mkdir tmp")
os.system("mkdir "+ code)
os.system("wget http://prnt.sc/" + code + str(i) + " -O ./tmp/tmp.html")
with open("./tmp/tmp.html") as fp:
soup = BeautifulSoup(fp, 'html.parser')
all_img = soup.find_all('img')
imgs = soup.findAll("img")
for img in imgs:
imgUrl = img['src']
cmd = ['wget', imgUrl, '-P', code]
subprocess.Popen(cmd).communicate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment