-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathrun-as-cuckoo.sh
35 lines (27 loc) · 1.05 KB
/
run-as-cuckoo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
printf "\n>>> Creating virtualenv...\n\n"
virtualenv ~/cuckoo
. ~/cuckoo/bin/activate
printf "\n>>> Installing python packages\n\n"
pip install --no-cache-dir setuptools \
cryptography==2.9.2 \
pyrsistent==0.16.1 \
m2crypto==0.37.1 \
psycopg2 \
bottle
printf "\n>>> Installing cuckoo & vmcloak\n\n"
pip install --no-cache-dir cuckoo vmcloak
pip uninstall -y werkzeug
pip install --no-cache-dir werkzeug==0.16.1
printf "\n>>> Creating Windows base image...\n\n"
vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048
printf "\n>>> Creating cuckoo image from base file...\n\n"
vmcloak clone win7x64base win7x64cuckoo
printf "\n>>> Installing packages in cuckoo image...\n\n"
vmcloak install win7x64cuckoo adobepdf pillow dotnet java flash vcredist vcredist.version=2015u3 wallpaper win7x64cuckoo ie11
printf "\n>>> Creating snapshots...\n\n"
vmcloak snapshot --count 4 win7x64cuckoo cuckoo 192.168.56.101
printf "\n>>> Settings configurations...\n\n"
mv ~/.cuckoo/conf/ ~/.cuckoo/conf.old
cp -R ~/conf ~/.cuckoo/conf
rm -rf ~/conf