Skip to main content

Interactive Python walkthrough for the 'Shake My Hand' 2025 Iris CTF challenge

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shakemyhand_walkthrough-0.2.3.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shakemyhand_walkthrough-0.2.3-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file shakemyhand_walkthrough-0.2.3.tar.gz.

File metadata

  • Download URL: shakemyhand_walkthrough-0.2.3.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for shakemyhand_walkthrough-0.2.3.tar.gz
Algorithm Hash digest
SHA256 b7af1cf70b9d30911d94b102cfffd60f0886b07db27e46c5fba3754cb546b71c
MD5 b172ccf014afbeeb2f45a106642eb83a
BLAKE2b-256 c6d88349d35cce8c11b68ddde92395f64b9f7e0e3f4fe4cf7d0184c914e8e780

See more details on using hashes here.

File details

Details for the file shakemyhand_walkthrough-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for shakemyhand_walkthrough-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ed8b7e4e33f8f14bfc83cdfdb9f386fc69d2de0a92abf408a7c6bb7d0872f0ff
MD5 21fd425bcecb82e0339fe7acc3b7a2d3
BLAKE2b-256 94b67fdff8e723646e53277b43c57570160eae39c5ac47a1d1f210106607390d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page