mirror of
https://github.com/Arvanaghi/CheckPlease
synced 2026-06-08 10:25:16 +00:00
26 lines
617 B
Python
26 lines
617 B
Python
#
|
|
# Waits until N mouse clicks occur before executing (default: 10), Python
|
|
# Module written by Brandon Arvanaghi
|
|
# Website: arvanaghi.com
|
|
# Twitter: @arvanaghi
|
|
#
|
|
|
|
import win32api
|
|
import sys
|
|
|
|
count = 0
|
|
minClicks = 10
|
|
|
|
if len(sys.argv) == 2:
|
|
minClicks = int(sys.argv[1])
|
|
|
|
while count < minClicks:
|
|
new_state_left_click = win32api.GetAsyncKeyState(1)
|
|
new_state_right_click = win32api.GetAsyncKeyState(2)
|
|
|
|
if new_state_left_click % 2 == 1:
|
|
count += 1
|
|
if new_state_right_click % 2 == 1:
|
|
count += 1
|
|
|
|
print("Now that the user has clicked {} times, we may proceed with malware execution!".format(minClicks)) |