# SEC-T CTF

## Bad AES - Crypto \[100 pts] \[Not Solved]

> Acid Burn found this AES-CBC encrypted text in the garbage file that Joey stole from the Gibson. Sadly, Joey didn't get the full S-BOX used by The Plague. Can you help them recover the text?

{% file src="https://980792987-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Md9Bzo_DCKomMglV10a%2F-MdY7g2KiO7rzxB0npWJ%2F-MdYA2lzNaJ1V2yuNS7v%2Fbadaes.zip?alt=media&token=45ec35fe-7455-422f-99f8-8c6dff463c7c" %}
BadAES
{% endfile %}



## Qproximity- Crypto \[200 pts] \[Not Solved]

> n = 2462649746477364143454082050368305440553491900304388646893610847386194301369924385009730987303651345060031438478297733694036327257723431468649220444397635127530301992505638291521092898714917678389314956983918603221732358628680256253537449204312287724750669208856634711056863315465220853759428826555838536733 \
> e = 201527

Solution Here

## Joeys Screenshot - Misc \[50 pts]

> Joey gave me this screenshot to prove he got into The Gibson. Can you help us hack The Gibson too?

{% file src="https://980792987-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Md9Bzo_DCKomMglV10a%2F-MdY7g2KiO7rzxB0npWJ%2F-MdYCrRsY1BtyWAyBfhL%2Fchall.png?alt=media&token=3ad69153-9467-43de-b65d-7d490b46f6a6" %}
screenshot
{% endfile %}

Starting out we use `binwalk -e chall.png` and find that there are a lot of files. They are named with just some letters and looking through them there was a pattern. Noticed there is a letter followed by a number. I wrote some code to rearrange it and put it into an empty array.

```python
import os 

files = os.listdir(".")
print(files)
cx = [] # Character Array
for i in range(0, 50):
	cx.append("-")
for filename in files:
	if "." not in filename:
		print(filename)
		f = open(filename)
		fs = f.readline()
		print(len(fs))
		let = fs[0] # Letter
		place = int(fs[1:]) # Place
		cx[place] = let
ans = ""
for xx in cx:
	ans += xx
print(ans)
```

Flag: SECT{D4\_K3Y\_2\_D4\_G1B50N\_5UP3RU53R\_15\_G0D\_H3H3!}

## Acid Burn - Misc \[200 pts] \[Not Solved]

> I suspect Acid Burn is hiding something in her background image, but I can't quite figure out what is it. Can you help me?\
> Author: SecureLink / klondike

{% file src="https://980792987-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Md9Bzo_DCKomMglV10a%2F-MdY7g2KiO7rzxB0npWJ%2F-MdYCRrJJcv0d9Cl2zCB%2Fchall.webp?alt=media&token=1bbc6251-a696-44d5-8d61-d005f67959a8" %}
Acid\_burn
{% endfile %}

77 teams solved

## Report - Misc \[200 pts] \[Not Solved]

> Mr. Belford sucks, is he hiding something....\
> Author: d3vnu11

{% file src="https://980792987-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Md9Bzo_DCKomMglV10a%2F-MdY7g2KiO7rzxB0npWJ%2F-MdYCjF4YVM7fACYC-On%2FReport.pdf?alt=media&token=f4b78987-e7c8-45b3-9b1b-61c10894ec70" %}
Report
{% endfile %}

48 teams solved
