Giter VIP home page Giter VIP logo

noraj / ctf-party Goto Github PK

View Code? Open in Web Editor NEW
80.0 7.0 8.0 485 KB

:triangular_flag_on_post: A CLI tool & library to enhance and speed up script/exploit writing with string conversion/manipulation.

Home Page: https://noraj.github.io/ctf-party/

License: MIT License

Ruby 99.02% Dockerfile 0.98%
security-tools library ctf ctf-framework ctf-tools hashing encoding decoding data-manipulation string-manipulation hacktoberfest

ctf-party's Introduction

ctf-party

Gem Version GitHub tag (latest SemVer) GitHub forks GitHub stars GitHub license Rawsec's CyberSecurity Inventory

Packaging status

What it is

A CLI tool & 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!

Most of the methods are available as commands CLI tool:

$ ctf-party 'security' to_hex
7365637572697479

$ ctf-party 'NzQ2Zjc0NmY=' from_b64 hex2str str2bin
01110100011011110111010001101111

Features

  • base64: to_b64, from_b64, b64? and bang versions
  • digest: md5, sha1, etc. and bang versions
  • flag: flag, flag!, flag? (apply/check a flag format)
  • rot: rot, rot13, rot_all and bang versions
  • hex: hex2dec, dec2hex, to_hex, from_hex, str2hex, hex2str, hex2bin, bin2hex, from_hexip, to_hexip, etc. and bang versions
  • case: randomcase, alternatecase and bang versions
  • cgi: urlencode, urlencode_component, urldecode, urldecode_component, htmlescape, htmlunescape and bang versions
  • bin: to_bin, from_bin, str2bin, bin2str, hex2bin, bin2hex, etc. and bang versions
  • leet: leet and bang version
  • dec: dec2str, str2dec, hex2dec, dec2hex and bang versions
  • xor: ulxor, alxor, urxor, arxor and bang versions
  • misc: istrip and bang version
  • defang: defang_ip, defang_uri, defang_domain, defang_email, refang_ip, etc. and bang versions
  • network: ipv4?, ipv6?, ip?, uri?, domain?, email?

References

Homepage / Documentation: https://noraj.github.io/ctf-party/

Author

Made by Alexandre ZANNI (@noraj). Forked from Orange-Cyberdefense/ctf-party.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.