# Square CTF 2017

## The General's Cat - Crypto \[50 pts]

> Decrypt this ancient scientific article\
> \
> The androids’ plans for domination include securing ancient artifacts relating to the animal world to be used for nefarious means. We managed to infiltrate one of their digsites and intercepted this ancient scientific tome, but it's encrypted! We think it relates to Julius Caesar's time in Rome, for he was a great friend and benefactor to the feline community. We could use your cryptanalysis skills to determine the contents of this tome and whether it will give us any leverage against our enemies.\
> \
> Kyv ufdvjkzt trk (Wvczj jzcmvjkizj trklj fi Wvczj trklj) zj r jdrcc, kpgztrccp wliip, triezmfiflj drddrc. Kyvp riv fwkve trccvu yfljv trkj nyve bvgk rj zeuffi gvkj fi jzdgcp trkj nyve kyviv zj ef evvu kf uzjkzexlzjy kyvd wifd fkyvi wvczuj reu wvczevj. Trkj riv fwkve mrclvu sp yldrej wfi tfdgrezfejyzg reu wfi kyvzi rszczkp kf ylek mvidze. Kyviv riv dfiv kyre 70 trk sivvuj, kyflxy uzwwvivek rjjftzrkzfej giftcrzd uzwwvivek eldsvij rttfiuzex kf kyvzi jkreuriuj. Kyv wcrx zj kyv gyirjv nzky urjyvj: wcrx nyrk zj r ufdvjkzt trk.\
> \
> This challenge will be discussed at Capture the Flag: Learning to Hack for Fun and Profit at the 2017 Grace Hopper Celebration.

Used decoder [online](https://www.dcode.fr/caesar-cipher) to get the phrase. \
`The domestic cat (Felis silvestris catus or Felis catus) is a small, typically furry, carnivorous mammal. They are often called house cats when kept as indoor pets or simply cats when there is no need to distinguish them from other felids and felines. Cats are often valued by humans for companionship and for their ability to hunt vermin. There are more than 70 cat breeds, though different associations proclaim different numbers according to their standards. The flag is the phrase with dashes: flag what is a domestic cat.`

**Flag: flag-what-is-a-domestic-cat**

## The Robots Grandmother - Network \[50 pts] <a href="#the-robots-grandmother" id="the-robots-grandmother"></a>

> Every once in a while we see the Grand Robot Leader Extraordinaire communicating over email with the Grand Robot Matriarch. We suspect there might be secret communications between the two, so we tapped into the network links at the Matriarch's house to see if we could grab the password to the account. We got this file, but our network admin is gone for two weeks training pigeons to carry packets. So we don't actually know how to read this file. Can you help us? This challenge will be discussed at Capture the Flag: Learning to Hack for Fun and Profit at the 2017 Grace Hopper Celebration.&#x20;

{% file src="https://980792987-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Md9Bzo_DCKomMglV10a%2F-MdrJvkcoszKBWCPQNF5%2F-MdrMubpNht285V7rzb1%2Fthe-robot's-grandmother.pcap?alt=media&token=9c7e174f-259f-42c2-b3ac-e3e4d0c9b99d" %}
Robots Grandmother
{% endfile %}

By using the strings method it seems self explanatory how I got the flag.

```
$ strings the-robot\'s-grandmother.pcap 
220 x.shh.sh ESMTP Exim 4.86 Wed, 06 Sep 2017 22:11:43 +0000
ehlo x.shh.sh
250-x.shh.sh Hello x.shh.sh [::1]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH LOGIN
250-STARTTLS
250-PRDR
250 HELP
auth login
334 VXNlcm5hbWU6
bWFsbG9yeQ==
334 UGFzc3dvcmQ6
ZmxhZy1zcGluc3Rlci1iZW5lZml0LWZhbHNpZnktZ2FtYmlhbg==
535 Incorrect authentication data
7421 x.shh.sh lost input connection
                                                                                                                                            
$ python3         
Python 3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import base64
>>> print(base64.b64decode("ZmxhZy1zcGluc3Rlci1iZW5lZml0LWZhbHNpZnktZ2FtYmlhbg=="))
b'flag-spinster-benefit-falsify-gambian'
```

**Flag: flag-spinster-benefit-falsify-gambian**

## Crossword - Misc \[99 pts] \[Not Solved]

> Description Here

{% file src="https://980792987-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Md9Bzo_DCKomMglV10a%2F-MdrJvkcoszKBWCPQNF5%2F-MdrLwFSBvohizBYqgLz%2FCrossword.tar?alt=media&token=3a5c6382-c79f-4971-aa20-46804605fab0" %}
Crossword
{% endfile %}

Solution

Flag:

## Reading between the lines - Forensics \[100 pts] \[Not Solved]

> Find the secret in the archive\
> \
> Evil Robot Corp accidently made their S3 bucket public and we were able to grab this backup archive before we were kicked out. We think there might be a secret in here, but we can’t find it. Can you help us?

{% file src="https://980792987-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Md9Bzo_DCKomMglV10a%2F-MdrJvkcoszKBWCPQNF5%2F-MdrMafkoKJ25VXH4wis%2Freading-between-the-lines.zip?alt=media&token=c72d2df8-8d85-4dd9-a583-860dc17d72b4" %}
Read between the lines
{% endfile %}

Solution

Flag:

## Sniffed off the wire - Forensics \[100 pts] \[Not Solved]

> Sniffed Off the Wire\
> Sifting through the noise\
> After weeks of perching, our avian operatives captured a suspicious network flow. Maybe there’s valuable data inside?

{% file src="https://980792987-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Md9Bzo_DCKomMglV10a%2F-MdrJvkcoszKBWCPQNF5%2F-MdrMnfWIdgCudQN7N2Q%2Fsniffed-off-the-wire.pcap?alt=media&token=abb00e19-fd06-4f60-9e50-908f51a2bcf9" %}
Sniffed off the wire
{% endfile %}

Solution

Flag:
