Comment by hksoft

2 years ago

Slightly ashamed to admit that I built an online exam cheating tool using pytesseract/tkinter/ChatGPT and ShareX.

I won't go into complete detail but it works like this.

-> Define area to be screenshotted using ShareX

-> Set ShareX auto-capture feature to screenshot defined area every 30sec (in my case, the area where the question and answer choices will be)

-> Using pytesseract, parse the image and retrieve the parsed text.

-> Make API call to ChatGPT using the parsed text with the temperature param set as low as possible along with instructions for it to return the correct answer as a series of dot(s)

A = .

B = ..

C = ...

D = ....

This is done in order for it to appear as inconspicuous as possible and not draw any attention from the exam proctor.

This is also done along with setting the tool ui and text to be almost exactly the same color as the exam progress bar so that I can hide the response within the bar. (the tool window is absolutely tiny)

There's more that goes into it but I'm only using this tool since I'm busy trying to get a degree to better my chances of getting another software job with all these insane layoffs and only 2 YoE (got laid off months ago)

I think it's hilarious that anyone smart & hardworking enough to build a tool this neat would bother cheating on an exam in the first place, haha.

  • The inspiration might also be the thrill of being naughty, breaking rules etc, not just doing well in exams

Would love to see the source code! Please consider uploading this to GitHub (even after you're done with exams if needed to be safer).