I've always been passionate about computers and hacking.
So I upload my tools here, often related to computer security.
๐ง If you want to contact me, you can do it here :
- ๐ฆ Twitter : mxrchreborn
Lightshot scraper on steroids with OCR.
License: Mozilla Public License 2.0
I've always been passionate about computers and hacking.
So I upload my tools here, often related to computer security.
๐ง If you want to contact me, you can do it here :
File "run.py", line 55, in <module>
start()
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "run.py", line 52, in start
main(threads, mode, algo, debug, clean, resume_ro)
File "/home/frigyes/Desktop/darkshot/main.py", line 27, in main
log(f"Debug mode : {'ACTIVATED' if debug else 'DEACTIVATED'}", timecode=dirname, cfg=cfg, level="VALUABLE", hidden=False, debug=debug)
File "/home/frigyes/Desktop/darkshot/lib/log.py", line 28, in log
with open(path, 'a') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'logs/2021-09-05_183517.txt'
Traceback (most recent call last):
File "run.py", line 55, in <module>
start()
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "run.py", line 52, in start
main(threads, mode, algo, debug, clean, resume_ro)
File "/home/frigyes/Desktop/darkshot/main.py", line 44, in main
words = translate_keywords(cfg["keywords_langs"], cfg["words_to_translate"])
File "/home/frigyes/Desktop/darkshot/lib/translate.py", line 9, in translate_keywords
translation = translator.translate(word, lang_tgt=code)
File "/home/frigyes/.local/lib/python3.8/site-packages/google_trans_new/google_trans_new.py", line 188, in translate
raise e
File "/home/frigyes/.local/lib/python3.8/site-packages/google_trans_new/google_trans_new.py", line 152, in translate
response = json.loads(response)
File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 1031 (char 1030)
Traceback (most recent call last):
File "run.py", line 2, in
from main import main
File "/root/darkshot/main.py", line 27
log(f"Debug mode : {'ACTIVATED' if debug else 'DEACTIVATED'}", timecode=dirname, cfg=cfg, level="VALUABLE", hidden=False, debug=debug)
^
SyntaxError: invalid syntax
Whenever I try and start darkshot in noisy mode I get the following error JSON Decode error
File "run.py", line 57, in <module>
start()
File "C:\Users\gm_90\AppData\Local\Programs\Python\Python38-32\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "C:\Users\gm_90\AppData\Local\Programs\Python\Python38-32\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Users\gm_90\AppData\Local\Programs\Python\Python38-32\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\gm_90\AppData\Local\Programs\Python\Python38-32\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "run.py", line 54, in start
main(threads, mode, algo, debug, clean, resume_ro)
File "D:\Code repos\darkshot\main.py", line 54, in main
limit = get_limit(mode, client)
File "D:\Code repos\darkshot\lib\get_limit.py", line 49, in get_limit
out = noisy()
File "D:\Code repos\darkshot\lib\get_limit.py", line 33, in noisy
out = json.loads(req.text)
File "C:\Users\gm_90\AppData\Local\Programs\Python\Python38-32\lib\json\__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\Users\gm_90\AppData\Local\Programs\Python\Python38-32\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\gm_90\AppData\Local\Programs\Python\Python38-32\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)```
There is also an issue when using stealth as it just says error and closes out. I turned debug mode and it looks like it errors out after getting the last seen link. Any one know how to fix this?
C:\Users\DAN\Desktop\darkshot-master>python run.py -t 5 -m stealth -a descending
Translation of keywords...
Traceback (most recent call last):
File "C:\Users\DAN\Desktop\darkshot-master\run.py", line 55, in
start()
File "C:\Users\DAN\AppData\Local\Programs\Python\Python39\lib\site-packages\click\core.py", line 1137, in call
return self.main(*args, **kwargs)
File "C:\Users\DAN\AppData\Local\Programs\Python\Python39\lib\site-packages\click\core.py", line 1062, in main
rv = self.invoke(ctx)
File "C:\Users\DAN\AppData\Local\Programs\Python\Python39\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\DAN\AppData\Local\Programs\Python\Python39\lib\site-packages\click\core.py", line 763, in invoke
return _callback(*args, **kwargs)
File "C:\Users\DAN\Desktop\darkshot-master\run.py", line 52, in start
main(threads, mode, algo, debug, clean, resume_ro)
File "C:\Users\DAN\Desktop\darkshot-master\main.py", line 44, in main
words = translate_keywords(cfg["keywords_langs"], cfg["words_to_translate"])
File "C:\Users\DAN\Desktop\darkshot-master\lib\translate.py", line 9, in translate_keywords
translation = translator.translate(word, lang_tgt=code)
File "C:\Users\DAN\AppData\Local\Programs\Python\Python39\lib\site-packages\google_trans_new\google_trans_new.py", line 188, in translate
raise e
File "C:\Users\DAN\AppData\Local\Programs\Python\Python39\lib\site-packages\google_trans_new\google_trans_new.py", line 152, in translate
response = json.loads(response)
File "C:\Users\DAN\AppData\Local\Programs\Python\Python39\lib\json_init.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\DAN\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 1030 (char 1029)
python run.py -t 5 -m stealth -a descending
Python 3.8.5
Kali GNU/Linux Rolling x86_64
I've already run sudo darkshot-venv/bin/python3 check_ocr_langs.py
When running run.py, I get the following:
(darkshot-venv) kali@kali:~/software/darkshot$ python3 run.py
Traceback (most recent call last):
File "run.py", line 55, in <module>
start()
File "/home/kali/software/darkshot/darkshot-venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/kali/software/darkshot/darkshot-venv/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/kali/software/darkshot/darkshot-venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/kali/software/darkshot/darkshot-venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "run.py", line 52, in start
main(threads, mode, algo, debug, clean, resume_ro)
File "/home/kali/software/darkshot/main.py", line 27, in main
log(f"Debug mode : {'ACTIVATED' if debug else 'DEACTIVATED'}", timecode=dirname, cfg=cfg, level="VALUABLE", hidden=False, debug=debug)
File "/home/kali/software/darkshot/lib/log.py", line 28, in log
with open(path, 'a') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'logs/2020-10-06_202859.txt'
help pls
Currently running this project on Windows 10, and the following issue emerged for me:
Traceback (most recent call last):
File "C:\Users\REDACTED\darkshot\main.py", line 88, in main
for new_data, link in run_algo(algo=algo, min=cfg["min"], limit=limit, chars=cfg["chars"], stateFile=cfg["stateFile"], resume=resume):
File "C:\Users\REDACTED\darkshot\lib\utils.py", line 97, in run_algo
for i in algo(limit, chars, min=min):
File "C:\Users\REDACTEDR\darkshot\lib\generators.py", line 45, in descending
nbs = [chars.index(c) for c in limit][::-1]
File "C:\Users\REDACTED\darkshot\lib\generators.py", line 45, in
nbs = [chars.index(c) for c in limit][::-1]
ValueError: substring not found
Error detected (ValueError).
State saved ! (resume.json)
Translation of keywords...
Getting the last seen link...
Traceback (most recent call last):
File "run.py", line 57, in
start()
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "run.py", line 54, in start
main(threads, mode, algo, debug, clean, resume_ro)
File "/home/frigyes/Desktop/darkshot/main.py", line 54, in main
limit = get_limit(mode, client)
File "/home/frigyes/Desktop/darkshot/lib/get_limit.py", line 49, in get_limit
out = noisy()
File "/home/frigyes/Desktop/darkshot/lib/get_limit.py", line 32, in noisy
req = client.post("https://prntscr.com/upload.php", files=files, headers=headers)
File "/home/frigyes/.local/lib/python3.8/site-packages/httpx/_client.py", line 824, in post
return self.request(
File "/home/frigyes/.local/lib/python3.8/site-packages/httpx/_client.py", line 600, in request
return self.send(
File "/home/frigyes/.local/lib/python3.8/site-packages/httpx/_client.py", line 620, in send
response = self.send_handling_redirects(
File "/home/frigyes/.local/lib/python3.8/site-packages/httpx/_client.py", line 647, in send_handling_redirects
response = self.send_handling_auth(
File "/home/frigyes/.local/lib/python3.8/site-packages/httpx/_client.py", line 684, in send_handling_auth
response = self.send_single_request(request, timeout)
File "/home/frigyes/.local/lib/python3.8/site-packages/httpx/_client.py", line 714, in send_single_request
) = transport.request(
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_sync/connection_pool.py", line 152, in request
response = connection.request(
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_sync/connection.py", line 78, in request
return self.connection.request(method, url, headers, stream, timeout)
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_sync/http11.py", line 62, in request
) = self._receive_response(timeout)
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_sync/http11.py", line 115, in _receive_response
event = self._receive_event(timeout)
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_sync/http11.py", line 145, in _receive_event
data = self.socket.read(self.READ_NUM_BYTES, timeout)
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_backends/sync.py", line 62, in read
return self.sock.recv(n)
File "/usr/lib/python3.8/contextlib.py", line 131, in exit
self.gen.throw(type, value, traceback)
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions
raise to_exc(exc) from None
httpcore._exceptions.ReadTimeout: The read operation timed out
Am I blocked by lightshot?
File "/home/frigyes/Desktop/darkshot/lib/scrape.py", line 22, in download
req = client.get("https://prnt.sc/{}".format(link))
File "/home/frigyes/.local/lib/python3.8/site-packages/httpx/_client.py", line 755, in get
return self.request(
File "/home/frigyes/.local/lib/python3.8/site-packages/httpx/_client.py", line 600, in request
return self.send(
File "/home/frigyes/.local/lib/python3.8/site-packages/httpx/_client.py", line 620, in send
response = self.send_handling_redirects(
File "/home/frigyes/.local/lib/python3.8/site-packages/httpx/_client.py", line 647, in send_handling_redirects
response = self.send_handling_auth(
File "/home/frigyes/.local/lib/python3.8/site-packages/httpx/_client.py", line 684, in send_handling_auth
response = self.send_single_request(request, timeout)
File "/home/frigyes/.local/lib/python3.8/site-packages/httpx/_client.py", line 714, in send_single_request
) = transport.request(
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_sync/connection_pool.py", line 152, in request
response = connection.request(
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_sync/connection.py", line 78, in request
return self.connection.request(method, url, headers, stream, timeout)
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_sync/http11.py", line 62, in request
) = self._receive_response(timeout)
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_sync/http11.py", line 115, in _receive_response
event = self._receive_event(timeout)
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_sync/http11.py", line 142, in _receive_event
event = self.h11_state.next_event()
File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/home/frigyes/.local/lib/python3.8/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions
raise to_exc(exc) from None
httpcore._exceptions.ProtocolError: can't handle event type ConnectionClosed when role=SERVER and state=SEND_RESPONSE
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/frigyes/Desktop/darkshot/main.py", line 93, in main
out = process_link(link, client, debug, dirname)
File "/home/frigyes/Desktop/darkshot/lib/process.py", line 62, in process_link
img = download(link, client, debug, dirname)
File "/home/frigyes/Desktop/darkshot/lib/scrape.py", line 39, in download
log(f"An error occured while requesting {imgur} :\n{e}", timecode=dirname, cfg=cfg, level="ERROR", hidden=False, debug=debug)
UnboundLocalError: local variable 'imgur' referenced before assignment
[21/08/12 04:16:31][VALUABLE][MainThread] Debug mode : DEACTIVATED
[21/08/12 04:16:31][VALUABLE][MainThread] Using algo DESCENDING for link generation
[21/08/12 04:16:31][VALUABLE][MainThread] Nothing to clean
[21/08/12 04:16:31][VALUABLE][MainThread] Translation of keywords...
[21/08/12 04:16:31][VALUABLE][MainThread] b"{'password': {'en': ['password']}, 'credential': {'en': ['credential']}, 'credentials': {'en': ['credentials']}, 'address': {'en': ['address']}, 'email': {'en': ['email']}, 'phone number': {'en': ['phone number']}, 'sensitive': {'en': ['sensitive']}, 'confidential': {'en': ['confidential']}, 'private': {'en': ['private']}}"
[21/08/12 04:16:31][VALUABLE][MainThread] Selecting mode NOISY for getting the last seen link
[21/08/12 04:16:33][VALUABLE][MainThread] Last seen link: 1n4sabv
[21/08/12 04:16:33][VALUABLE][MainThread] Starting Darkshot with 1 threads...
[21/08/12 04:16:33][WARNING][MainThread] Unwanted image detected at link 1n4sabv, passing
[21/08/12 04:16:42][WARNING][Thread-2] This image is currently being processed by another thread, I wait for him to finish.
[21/08/12 04:16:44][WARNING][Thread-2] Retrying...
[21/08/12 04:16:46][WARNING][Thread-2] Retrying...
[21/08/12 04:16:48][WARNING][Thread-2] Retrying...
[21/08/12 04:16:50][WARNING][Thread-2] Retrying...
[21/08/12 04:16:52][WARNING][Thread-2] Retrying...
[21/08/12 04:16:54][WARNING][Thread-2] Retrying...
[21/08/12 04:16:56][WARNING][Thread-2] Retrying...
So it works for a bit then it stops.. I've tried it with 5 threads and with 1 thread. If I start it with one thread it still says Thread-2 Retrying... What do to ? How do I keep it working for a few hours?!
I was just wondering if there was anyone who has done a video guide on getting this set up at all. I have very little experience and am getting stuck on installing scrapy level things.
As of right now all the new links are randomized. This was implemented recently as just three days ago my links were still predictable. Past links are still the same but, it won't be of any value for long.
Funny enough, I think people have been using this as a way to scam people. There's a very common trend of images of passwords constantly being re-uploaded just slightly altered to change the image hash. It's the same details each time to a btc wallet site called btcx.one. You log into it and it has an absurd about of btc and eth displayed and in order to "withdraw" you enter in another wallet ID. Then, to "verify" its you, you send an amount of ~60$ worth of btc to a random wallet as a "confirmation fee".
ERROR: Could not find a version that satisfies the requirement Twisted>=17.9.0 (from scrapy->-r requirements.txt (line 6)) (from versions: none)
ERROR: No matching distribution found for Twisted>=17.9.0 (from scrapy->-r requirements.txt (line 6))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.