ShadowClone allows you to distribute your long running tasks dynamically across thousands of serverless functions and gives you the results within seconds where it would have taken hours to complete.
You can make full use of the Free Tiers provided by cloud providers and supercharge your mundane cli tools with shadow clone jutsu (Naruto style)!
Please visit the wiki for installation and intial configuration instructions
⚡ python shadowclone.py -h usage: shadowclone.py [-h] -i INPUT [-s SPLITNUM] [-o OUTPUT] -c COMMAND optional arguments: -h, --help show this help message and exit -i INPUT, --input INPUT -s SPLITNUM, --split SPLITNUM Number of lines per chunk of file -o OUTPUT, --output OUTPUT -c COMMAND, --command COMMAND command to execute
How it works
We create a container image during the initial setup and register it as a runtime for our function in AWS/GCP/Azure whatever. When you execute ShadowClone on your computer, instances of that container are activated automatically and are only active for the duration of its execution. How many instances to activate is dynamically decided at runtime depending on the size of the input file provided and the split factor. The input is then split into chunks and equally distributed between all the instances to execute in parallel. For example, if your input file has 10,000 lines and you set the split factor to 100 lines, then it will be split into 100 chunks of 100 lines each and 100 instances will be run in parallel!
- Extremely fast
- No need to maintain a VPS (or a fleet of it :))
- Costs almost nothing per month
- Compatible with free tiers of most cloud services
- Cloud agnostic
- Same script works with AWS, GCP, Azure etc.
- Supports upto 1000 parallel invocations
- Dynamically decide the number of invocations
- Run any tool in parallel on the cloud
- Pipe output to other tools
This tool was inspired by the awesome Axiom and Fleex projects and goes beyond the concept of VPS for running the tools by using serverless functions and containers.
|Cost||Per instance/per minute||Mostly Free**|
|Startup Time||4-5 minutes||2-3 seconds|
|On Demand Scalability||No||∞|
*Most cloud providers do not allow spinning up too many instances by default, so you are limited to around 10-15 instances at max. You have to make a request to the support to increase this number.
** AWS & Azure allow 1 million invocations per month for free. Google allows 2 million invocations per month for free. You will be charged only if you go above these limits
DNS Bruteforcing using a 43mb file - 34 seconds
Running httpx on 94K subdomains in 1 min
|Cloud Provider||Free Allowance||Link|
|Google Functions||2 Million invocations, 400,000 GB-seconds per month||Google Cloud Free Program|
|AWS Lambda||1 Million invocations, Up to 3.2 million seconds of compute time per month||Free Cloud Computing Services - AWS Free Tier|
|Azure Functions||1 Million invocations||Microsoft Azure Free Services|
Obviously, you can make any number of function invocations per month. The table above only shows how many invocations are free.
This tool is designed as a proof-of-concept implementation and it's usage is intended for educational purpose only. Usage for attacking targets without prior mutual consent is illegal. It's the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.