so I learned two things with usb on virtualbox (OS X):
- it sucks, 2) it sucks less if you enable the extension pack for ehci:
- w/ out ehci I could not install a 28 MB APK from within boot2docker. maybe if I was willing to wait long enough but AFAICT it would not complete.
± % docker run --privileged -v=/dev/bus/usb:/dev/bus/usb --rm -t -i -v pwd:/provision analysis /bin/bash
- w/out EHCI
|The MIT License (MIT)|
|Copyright (c) 2015 David Weinstein|
|Permission is hereby granted, free of charge, to any person obtaining a copy|
|of this software and associated documentation files (the "Software"), to deal|
|in the Software without restriction, including without limitation the rights|
|to use, copy, modify, merge, publish, distribute, sublicense, and/or sell|
|copies of the Software, and to permit persons to whom the Software is|
|furnished to do so, subject to the following conditions:|
The idea here is to organize multiple agent scripts into modules that can be combined into an aggregated agent.
frida agents generally live under e.g., an
./lib/agents directory in a top level project.
For each agent script we need a top level runner and then we use
frida-compile to build into a single agent script that we can load.