Skip to content

hminkoo10/flagfinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flagfinder

A tiny Python package for finding CTF-style flags in strings.

Install

pip install flagfinder

Usage

from flagfinder import findflag, findflags, findflag_labeled

text = "hello DH{test123} and DH{abc}"

print(findflag("DH", text))
# DH{test123}

print(findflags("DH", text))
# ['DH{test123}', 'DH{abc}']

print(findflag_labeled("flag", "DH", text))
# flag: DH{test123}

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors