<commit_before>---
layout: post
title: Some easy writeup for MitreCTF 2015
date: 2015-09-13 11:48
categories: ctf writeup
---
## Crypto 50

~~~
C qogvi. Sio qogvi. By- mby- gy... qogvi. Qogvi; Qogvicha; Qy'ff bupy nbyy qogvi; Qogvilugu; Qogvifias; nby mnoxs iz Qogvi. Cn'm zclmn aluxy, Mjihayviv! GWU-UW56X5YU
~~~

ROT-6: I wumbo. You wumbo. He- she- me... wumbo. Wumbo; Wumboing; We'll have thee wumbo; Wumborama; Wumbology; the study of Wumbo. It's first grade, Spongebob! MCA-AC56D5EA

~~~
Flag: MCA-AC56D5EA
~~~

## Crypto 100 - Message

###[Gravity Falls Cryptogram](http://gravityfalls.wikia.com/wiki/List_of_cryptograms#Author.27s_symbol_substitution_cipher)

![gravity falls](/images/CTF/gravitymessage.png)

~~~
MCA DASH FOUR TWO SIX NINE SIX C SIX C
~~~

Flag: MCA-42696c6c

## Crypto 100 - Srcamble

![scramble](/images/CTF/scramble.png)

~~~python
from PIL import Image
im = Image.open("scramble.png")
width, height = im.size
im2 = Image.new("RGB", (width, height))
def solverow(row, tuple):
    for i in range (5):
        left = i * width/5
        upper = row*height/5
        block = (left, upper, left + width/5, upper + height/5)
        blockimg = im.crop(block)
        k = tuple[i]
        replaceblock = (k*width/5, upper, (k + 1)*width/5, upper + height/5)
        im2.paste(blockimg, replaceblock)
tuples = ((3, 1, 0, 2, 4), (0, 1, 2, 3, 4), (3, 1, 0, 4, 2), (2, 0, 4, 3, 1), (0, 1, 3, 4, 2))
for row in range(5):
    solverow(row, tuples[row])
im2.show()
im2.save('flag.png')
~~~

![flag found](/images/CTF/c100mitreflag.png)
Flag: MCA-9b1a4f1e44

## Web 100 - Geocaching

This problem must be on run on their vpn.

~~~python
import requests
def get_file_content(url):
    resp = requests.get(url)<commit_msg>Update image writeup #5<commit_after>---
layout: post
title: Some easy writeup for MitreCTF 2015
date: 2015-09-13 11:48
categories: ctf writeup
---
## Crypto 50

~~~
C qogvi. Sio qogvi. By- mby- gy... qogvi. Qogvi; Qogvicha; Qy'ff bupy nbyy qogvi; Qogvilugu; Qogvifias; nby mnoxs iz Qogvi. Cn'm zclmn aluxy, Mjihayviv! GWU-UW56X5YU
~~~

ROT-6:
~~~
I wumbo. You wumbo. He- she- me... wumbo. Wumbo; Wumboing; We'll have thee wumbo; Wumborama; Wumbology; the study of Wumbo. It's first grade, Spongebob! MCA-AC56D5EA
~~~

~~~
Flag: MCA-AC56D5EA
~~~

## Crypto 100 - Message

###[Gravity Falls Cryptogram](http://gravityfalls.wikia.com/wiki/List_of_cryptograms#Author.27s_symbol_substitution_cipher)

![gravity falls](/images/CTF/gravitymessage.png)

~~~
MCA DASH FOUR TWO SIX NINE SIX C SIX C
~~~

Flag: MCA-42696c6c

## Crypto 100 - Srcamble

![scramble](/images/CTF/scramble.png)

~~~python
from PIL import Image
im = Image.open("scramble.png")
width, height = im.size
im2 = Image.new("RGB", (width, height))
def solverow(row, tuple):
    for i in range (5):
        left = i * width/5
        upper = row*height/5
        block = (left, upper, left + width/5, upper + height/5)
        blockimg = im.crop(block)
        k = tuple[i]
        replaceblock = (k*width/5, upper, (k + 1)*width/5, upper + height/5)
        im2.paste(blockimg, replaceblock)
tuples = ((3, 1, 0, 2, 4), (0, 1, 2, 3, 4), (3, 1, 0, 4, 2), (2, 0, 4, 3, 1), (0, 1, 3, 4, 2))
for row in range(5):
    solverow(row, tuples[row])
im2.show()
im2.save('flag.png')
~~~

![flag found](/images/CTF/c100mitreflag.png)

Flag: MCA-9b1a4f1e44

## Web 100 - Geocaching

This problem must be on run on their vpn.

~~~python
import requests
def get_file_content(url):
    resp = requests.get(url)
{'fraction_non_alphanumeric': 0.15916260395755663, 'fraction_numerical': 0.05362776025236593, 'mean_word_length': 3.5006451612903224, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2888219', 'n_tokens_mistral': 1620, 'n_tokens_neox': 1418, 'n_words': 400}