CTF-Party : A Ruby Library To Enhance & Speed Up Script/Exploit

CTF-Party is a library to enhance and speed up script/exploit writing for CTF players (or security researchers, bug bounty hunters, pentesters but mostly focused on CTF) by patching the String class to add a short syntax of usual code patterns.

The philosophy is also to keep the library to be pure ruby (no dependencies) and not to re-implement what another library is already doing well (eg. xorcist for xor).

For example instead of writing:

require ‘base64’

myvar = ‘string’
myvar = Base64.strict_encode64(myvar)

Just write (shorter and easier to remember):

require ‘ctf_party’

myvar = ‘string’
myvar.to_b64!

Features

  • base64: to_b64, to_b64!, from_b64, from_b64!, b64?
  • digest: md5, md5!, sha1, sha1!, etc.
  • flag: flag, flag!, flag? (apply/check a flag format)
  • rot: rot, rot!, rot13, rot13!
  • hex: hex2dec, dec2hex, to_hex, from_hex, hex2bin, bin2hex and bang versions

Credit: Alexandre ZANNI

R K

Recent Posts

Install and Configure Squid Proxy on Ubuntu 18.04: Setup Guide

Squid is a full-featured caching proxy server that supports HTTP, HTTPS, and FTP. It is most…

9 hours ago

Install Chromium on Ubuntu 18.04: The Open-Source Browser Guide

Chromium is a fast, lightweight, open-source web browser developed primarily by Google. It serves as the…

9 hours ago

Install MySQL Workbench on Ubuntu 18.04: SSH Connections Guide

MySQL Workbench is a cross-platform graphical tool for MySQL database administration. It brings together everything a…

10 hours ago

Configure NFS Server on Ubuntu 18.04: Setup and Mount Guide

NFS (Network File System) is a distributed file sharing protocol that lets you mount remote directories…

10 hours ago

VirtualBox Guest Additions on Ubuntu 18.04: Install and Verify

VirtualBox is an open-source, cross-platform virtualization application that lets you run multiple operating systems simultaneously on…

10 hours ago

Enable SSH on Ubuntu 18.04: Install, Connect, and Manage

SSH (Secure Shell) is a cryptographic network protocol that creates a secure, encrypted connection between your…

1 day ago