IrisCTF 2025 - "Shake My Hand" Writeup & Walkthrough
This is an interactive Python writeup and walkthrough for the "Shake My Hand" 2025 Iris CTF challenge.
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
- Install with "pip install shakemyhand-walkthrough"
- 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shakemyhand_walkthrough-0.2.3.tar.gz | 21.1 kB | Without provenance | Details for shakemyhand_walkthrough-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shakemyhand_walkthrough-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for shakemyhand_walkthrough-0.2.3-py3-none-any.whl |
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
|
Security for shakemyhand-walkthrough 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.