Code Monkey home page Code Monkey logo

flag4ctf's Introduction

flag4ctf

Flag build for CTFs. Provide a string and it build the "flag like" string.

Usage

Default

flag4ctf make "Well played, you got the flag"

> FLAG{well_played_y0u_g0t_the_fl4g}

Change the flag prefix

flag4ctf make "Well played, you got the flag" -p "CTF"

> CTF{Well played, you got the flag}

Change the flag case format

flag4ctf make "Well played, you got the flag" -c lower

> FLAG{well_played_y0u_g0t_the_fl4g}
flag4ctf make "Well played, you got the flag" -c upper

> FLAG{WELL_PLAYED_Y0U_G0T_THE_FL4G}

Easy Installation

Binary Releases

We are now shipping binaries for each of the releases so that you don't even have to build them yourself! How wonderful is that!

If you're stupid enough to trust binaries that I've put together, you can download them from the releases page.

Using go install

If you have a Go environment ready to go (at least go 1.19), it's as easy as:

go install github.com/LeoFVO/flag4ctf@latest

PS: You need at least go 1.19 to compile flag4ctf.

Using Docker

docker pull ghcr.io/leofvo/flag4ctf:latest
docker run flag4ctf:latest

Building From Source

Since this tool is written in Go you need to install the Go language/compiler/etc. Full details of installation and set up can be found on the Go language website. Once installed you have two options. You need at least go 1.19 to compile flag4ctf.

Compiling

flag4ctf has external dependencies, and so they need to be pulled in first:

go get && go build

This will create a flag4ctf binary for you. If you want to install it in the $GOPATH/bin folder you can run:

go install

License

See the LICENSE file.

flag4ctf's People

Contributors

leofvo avatar

Watchers

 avatar

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.