Skip to main content

a tool for solving those annoying strfry CTF challenges

Project description

About

pystrfry a tool and Python 3 library for Linux for assisting in solving those annoying strfry CTF challenges that seem to be common in CTFs like ångstromCTF 2020 and DawgCTF 2020.

No additional requirements other than Linux and Python 3.

Installation

PyPi

# pip3 install pystrfry

Manual

$ git clone https://github.com/arinerron/pystrfry.git
$ cd pystrfry
# python3 setup.py install

Usage

Command Line Interface

Help Menu

$ strfry --help

usage: strfry [-h] [--processid PROCESSID] [--timestamp TIMESTAMP] [--decode] string

a tool for solving those annoying strfry CTF challenges

positional arguments:
  string                the string to manipulate

optional arguments:
  -h, --help            show this help message and exit
  --processid PROCESSID, --pid PROCESSID, -p PROCESSID
                        process id which called strfry
  --timestamp TIMESTAMP, --ts TIMESTAMP, -t TIMESTAMP
                        unix timestamp when strfry happened
  --decode, -d          switch to decode mode$

Example

$ strfry --pid=1337 --ts=1234 "i use arch btw"
ubs twir ec ha

$ strfry --pid=1337 --ts=1234 "ubs twir ec ha" --decode
i use arch btw

Python Library

>>> from strfry import *

>>> strfry('i use arch btw', pid=1337, ts=1234)
'ubs twir ec ha'

>>> unstrfry('ubs twir ec ha', pid=1337, ts=1234)
'i use arch btw'

>>> strfry('this will pull the current ts / pid if you dont specify')
'iutihtfwel usnsd  f oyroyi    t p/rphpctlcsle n dleiitu'

>>> strfry('this will pull the current ts / pid if you dont specify')
'ols tupeprn ftod ceit l sehic  rys i tn pwl/uyflhdiiu t'

>>> strfry('this will pull the current ts / pid if you dont specify')
'ft sult f ynn srhp top /eihlew ipi ecdl l itutc rudyois'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pystrfry-1.0.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pystrfry-1.0.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pystrfry-1.0.3.tar.gz.

File metadata

  • Download URL: pystrfry-1.0.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for pystrfry-1.0.3.tar.gz
Algorithm Hash digest
SHA256 2264860503ad4f0626b0af8cdd2d110034a8361439e82c9a9f923710a1853f99
MD5 652384bda48af621ea18b5f166b1ef89
BLAKE2b-256 d75917fcd3ca656e3beac4af96a26491554c36be96b10b24f732ea65ffac9f6e

See more details on using hashes here.

File details

Details for the file pystrfry-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pystrfry-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for pystrfry-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db4bbdd88935248747799f5dc05bdafa339bac236cfbd33057142d8a7cbae3b4
MD5 b85b7588b87361d4b2e4c2d72d0aa7c6
BLAKE2b-256 ff41611762949d99dcbef8c024d400ec06bb3ce068c645b530bb0ea6b528ea5f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page