Skip to main content

IrisCTF 2025 - "Shake My Hand" Writeup & Walkthrough

This is an interactive Python writeup and walkthrough for the "Shake My Hand" 2025 Iris CTF challenge.

Title Screen

Mission 1

Features

  • Step-by-step TCP handshake demonstration
  • Real-time packet crafting and analysis with Scapy
  • ASCII art interface

Requirements

  • Python 3.x
  • Scapy library (pip install scapy)
  • Windows/Linux compatible

Install/run with PIP

  1. Install with "pip install shakemyhand-walkthrough"
  2. Enter "shakemyhand-walkthrough" at terminal.

Manual install/run

Download shakemyhand-walkthrough.py, make sure you have scapy installed (pip install scapy) and run the file with "python ./shakemyhand-walkthrough.py"

Additional Information

This program uses built-in Scapy modules and functions to craft and manipulate network packets:

  • IP: Used to create and configure the IP headers of the packets.
  • TCP: Used to create and configure the TCP headers of the packets.
  • Raw: Used to add raw payload data to the packets.
  • raw: Converts crafted packets into raw bytes for transmission.
  • base64: Encodes raw bytes into a base64 string.

You can learn more about how this program utilizes Scapy to solve the challenge by refering to the following functions in the code:

  • create_syn: Crafts a SYN packet to initiate the TCP handshake.
  • create_ack: Creates an ACK packet to acknowledge the server's SYN-ACK.
  • create_response: Sends a PSH+ACK packet with data.
  • decode_and_show: Decodes a base64 packet and logs details about IP/TCP layers, sequence/ack numbers, flags, and payload.

See code comments for additional information on script functionality.

Metadata

Release files for shakemyhand-walkthrough 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shakemyhand-walkthrough 0.2.3
File Size Uploaded
shakemyhand_walkthrough-0.2.3.tar.gz 21.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shakemyhand-walkthrough 0.2.3
File Interpreter ABI Platform
shakemyhand_walkthrough-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 42.2 kB

Release files / shakemyhand_walkthrough-0.2.3.tar.gz

Download URL shakemyhand_walkthrough-0.2.3.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b7af1cf70b9d30911d94b102cfffd60f0886b07db27e46c5fba3754cb546b71c
BLAKE2b-256 checksum
How to use checksums
c6d88349d35cce8c11b68ddde92395f64b9f7e0e3f4fe4cf7d0184c914e8e780
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / shakemyhand_walkthrough-0.2.3-py3-none-any.whl

Download URL shakemyhand_walkthrough-0.2.3-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed8b7e4e33f8f14bfc83cdfdb9f386fc69d2de0a92abf408a7c6bb7d0872f0ff
BLAKE2b-256 checksum
How to use checksums
94b67fdff8e723646e53277b43c57570160eae39c5ac47a1d1f210106607390d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page