devzspy

Automatic Screenshots OSCP Exam

Aug 2nd, 2019
899
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while true
  4. do
  5.     FILENAME="auto-$(date +%d-%H-%M)_$i.jpg"
  6.     import -window root ~/autoscreenshots/$FILENAME
  7.     echo "snap! $FILENAME"
  8.     sleep 10
  9.     ((i++))
  10. done
Advertisement
Add Comment
Please, Sign In to add comment