metasploitable3/scripts/installs/install_flags.bat
2017-08-03 15:14:31 +02:00

39 lines
1.7 KiB
Batchfile

copy C:\vagrant\resources\flags\six_of_diamonds.zip C:\inetpub\wwwroot
copy C:\vagrant\resources\flags\jack_of_clubs.png C:\WINDOWS\System32\jack_of_clubs.png
attrib +h "C:\WINDOWS\System32\jack_of_clubs.png"
cacls "C:\WINDOWS\System32\jack_of_clubs.png" /t /e /g SYSTEM:f
cacls "C:\WINDOWS\System32\jack_of_clubs.png" /R Administrators /E
cacls "C:\WINDOWS\System32\jack_of_clubs.png" /R Users /E
copy C:\vagrant\resources\flags\three_of_spades.png C:\Windows
attrib +h "C:\Windows\three_of_spades.png"
cacls "C:\Windows\three_of_spades.png" /t /e /g SYSTEM:f
cacls "C:\Windows\three_of_spades.png" /R Administrators /E
cacls "C:\Windows\three_of_spades.png" /R USERS /E
copy C:\vagrant\resources\flags\kingofclubs.exe C:\Windows\System32
copy C:\vagrant\resources\flags\four_of_clubs.wav C:\Users\Public\Music
copy C:\vagrant\resources\flags\joker.html C:\inetpub\wwwroot\index.html
copy C:\vagrant\resources\flags\hahaha.jpg C:\inetpub\wwwroot
del C:\inetpub\wwwroot\iisstart.htm
copy C:\vagrant\resources\flags\seven_of_hearts.html C:\inetpub\wwwroot
copy C:\vagrant\resources\flags\jack_of_hearts.docx C:\Users\Public\Documents
copy C:\vagrant\resources\flags\seven_of_spades.pdf C:\Users\Public\Documents
copy C:\vagrant\resources\flags\ace_of_hearts.jpg C:\Users\Public\Pictures
copy C:\vagrant\resources\flags\ten_of_diamonds.png C:\Users\Public\Pictures
cd C:\
type C:\vagrant\resources\flags\jack_of_diamonds.b64 > jack_of_diamonds.png:jack_of_diamonds.txt
cmd /c ""C:\wamp\bin\mysql\mysql5.5.20\bin\mysql.exe" -u root --password="" -e "create database cards;""
cmd /c ""C:\wamp\bin\mysql\mysql5.5.20\bin\mysql.exe" -u root --password="" cards < "C:\Vagrant\resources\flags\queen_of_hearts.sql""