Macbeth

April 18 2017

# # # # #

Find the flag.

  • Flag Format /flag:[a-zA-Z]+/

Provided Macbeth.docx

Hint : Not all characters are created equal.

Solution

Opening the file we can quickly tell that the entire file has been written in two fonts. We unzip the docx file, and grep the part we are interested in.

$ unzip Macbeth.docx

$ grep "Bitstream Vera Sans Mono\"/></w:rPr><w:t>\(.\)<" document.xml -o
Bitstream Vera Sans Mono"/></w:rPr><w:t>F<
Bitstream Vera Sans Mono"/></w:rPr><w:t>l<
Bitstream Vera Sans Mono"/></w:rPr><w:t>a<
Bitstream Vera Sans Mono"/></w:rPr><w:t>g<
Bitstream Vera Sans Mono"/></w:rPr><w:t>:<
Bitstream Vera Sans Mono"/></w:rPr><w:t>F<
Bitstream Vera Sans Mono"/></w:rPr><w:t>u<
Bitstream Vera Sans Mono"/></w:rPr><w:t>c<
Bitstream Vera Sans Mono"/></w:rPr><w:t>k<
Bitstream Vera Sans Mono"/></w:rPr><w:t>e<
Bitstream Vera Sans Mono"/></w:rPr><w:t>d<
Bitstream Vera Sans Mono"/></w:rPr><w:t>U<
Bitstream Vera Sans Mono"/></w:rPr><w:t>p<
Bitstream Vera Sans Mono"/></w:rPr><w:t>F<
Bitstream Vera Sans Mono"/></w:rPr><w:t>o<
Bitstream Vera Sans Mono"/></w:rPr><w:t>r<
Bitstream Vera Sans Mono"/></w:rPr><w:t>e<
Bitstream Vera Sans Mono"/></w:rPr><w:t>n<
Bitstream Vera Sans Mono"/></w:rPr><w:t>s<
Bitstream Vera Sans Mono"/></w:rPr><w:t>i<
Bitstream Vera Sans Mono"/></w:rPr><w:t>c<
Bitstream Vera Sans Mono"/></w:rPr><w:t>s<

That gives us our flag.

Flag

FuckedUpForensics


Recommended Reading

HTTP, but you're doing it wrong

# #

Find the flag.

Solution

The source of the problem is as shown.

#!/usr/bin/env node
var parser = require('http-string-parser');

var net = require('net');

var server_tcp = net.createServer();

server_tcp.on('connection', function(socket) {
    
...

Recommended Reading

Breaking Random Number Generators with Chosen Seed

# # # #

Find the flag.

Source is as follows

#!/usr/bin/env python3

import random
import time
import string
import signal

# use secure seed
random.seed(int(time.time()))

with open('flag.txt') as f:
	flag = f.read()

# large constant prime
p = 174807157365465092731323561678522236549173502913317875393564963123330281052524687450754910240009920154525635325209526987433833785499384204819179549544106498491589834195860008906875039418684191252537604123129659746721614402346449135195832955793815709136053198207712511838753919608894095907732099313139446299843
...