Skip to content

Instantly share code, notes, and snippets.

@secfb
Created July 7, 2018 22:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save secfb/347d9e64a930d254816d02b174beae2e to your computer and use it in GitHub Desktop.
Save secfb/347d9e64a930d254816d02b174beae2e to your computer and use it in GitHub Desktop.
Matryoshka CTF
#!/bin/bash
LIMIT=500 #number of cycles
for ((i=1; i <= LIMIT ; i++)) do
find . -name '*.rar' -exec unrar e {} \; -exec rm {} \; #rar file
#find . -name '*.7z' -exec 7za e {} \; -exec rm {} \; # 7z file
#find . -name '*.zip' -exec unzip {} \; -exec rm {} \; #zip file
done
#recursive file rar,zip,7z you can open the files with this script.
#Матрёшка,Matryoshka CTF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment