Skip to content

AuxillaryModules

Elizabeth edited this page Jul 8, 2016 · 1 revision

<--- Back to Analyzer

The auxillary modules are located in darwin/modules/auxillary. They are automatically run by the analyzer.

Human Interaction - human.py

Using the PyObjC QuartzEvents framework, this moves the mouse around random and clicks the mouse every second. Since this moves at super-human speed, any malware checking for that will be alerted.

Screenshots

The screenshot functions are actually in two scripts:

  • darwin/modules/auxillary/screenshots.py - This module calls the functions from the second one and sends the screenshot to the host if it has changed significantly from the last one. It takes a screenshot with a delay of one second. It also simulates the enter key being pressed when the screen changes to run through rudimentary installers.

  • darwin/lib/api/screenshot.py - This module does the actual screenshot-taking and comparing. It takes a screenshot using PyObjC, writes that shot to a temporary file in memory, reads that file into the Python Imaging Library (PIL), and sends it to screenshots.py. PIL does the actual screenshot comparisons using the Root Mean Square method.

Clone this wiki locally