├── LICENSE ├── README.md ├── capture.sh └── imagesnap /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Jerry Gamblin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #Introduction 2 | 3 | This is just a Quick POC To Show Why You Should Disable/Cover Your Webcam using a 10 line shell script and a freeware utlity called [imagesnap] (http://iharder.sourceforge.net/current/macosx/imagesnap/). 4 | 5 | #Installation 6 | ` cd imagesnap/ ` 7 | ` chmod +x * ` 8 | 9 | 10 | #Usage 11 | ` ./capture.sh & ` 12 | 13 | This will take a picture with the iSight camera every 60 seconds. 14 | 15 | 16 | #Warning 17 | I dont know what I am doing. If this works for you I would be surprised. 18 | 19 | -------------------------------------------------------------------------------- /capture.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | while :; do 4 | n=$(date +%y%m%d%H%M%S)-$i.png 5 | while [[ -e $n ]]; do 6 | n=${n%-*}.png 7 | done 8 | ./imagesnap -q -w 1 $n 9 | sleep 60 10 | done 11 | -------------------------------------------------------------------------------- /imagesnap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgamblin/imagesnap/2b235ce9063e1e96484efd32d975aaf70352597c/imagesnap --------------------------------------------------------------------------------