if you haven' first installed the opencv librariesrun the following commands (againthank youchris fidaofrom terminal in your kali vm#:apt-get install python-opencv python-numpy python-scipy this should install all of the necessary files needed to handle facial detection on our resulting images we also need to grab the facial detection training file like sowget now create couple of directories for our outputdrop in pcapand run the script this should look something like this#:mkdir pictures #:mkdir faces #:python pic_carver py extracted images detected faces #:you might see number of error messages being produced by opencv due to the fact that some of the images we fed into it may be corrupt or partially downloaded or their format might not be supported ( 'll leave building robust image extraction and validation routine as homework assignment for you if you crack open your faces directoryyou should see number of files with faces and magic green boxes drawn around them this technique can be used to determine what types of content your target is looking atas well as to discover likely approaches via social engineering you can of course extend this example beyond using it against carved images from pcaps and use it in conjunction with web crawling and parsing techniques described in later [ [ check out opencv here