Skip to main content

light file management lib for line ctf 2022

Project description

THE MEATBALL for line ctf lib


Meatball is a small library that manages files. You can check the fast-managed data here. It supports simple AES encryption. There are small vulnerabilities that may occur when managing files.


from me7_ba11.meatball import MeatBall

## Create meatball and create data
# append data
mb = MeatBall('meat.ball',)
data = {data:'meatball'}
key = mb.append(data)
data = mb.get(key)
print(data)
{'uuid key':'meatball'}

# update data
data = {'key':'uuid key', 'data': 'meatball_change'}
mb.update(data)
data = mb.get(key)
print(data)
{'uuid key':'meatball_change'}

## File upload and update
# upload
with open('file','rb) as f:
    _file = f.read()

data = {data:'meatball'} <- Parameters are not used when uploading files.
key = mb.append(data, _file)
data = mb.get(key)
print(data)
{'uuid key':'encoded file binary'}

# update to file
data = {'key':'uuid key', 'data': 'meatball'} <- Parameters are not used when uploading files.
mb.update(data, _file)
data = mb.get(key)
print(data)
{'uuid key':'encoded file binary'}

## Encryption
# append data with encryption
mb = MeatBall('meat.ball',)
data = {data:'meatball', enc='on'}
key = mb.append(data)
data = mb.get(key)
print(data)
{'uuid key':'meatball'}

# update data with encrtyption
data = {'key':'uuid key', enc='on', 'data': 'meatball_change'}
mb.update(data)
data = mb.get(key)
print(data)
{'uuid key':'meatball_change'}

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

me7_ba11-1.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file me7_ba11-1.0-py3-none-any.whl.

File metadata

  • Download URL: me7_ba11-1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/21.8.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.3

File hashes

Hashes for me7_ba11-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d11aec901f4081178c0b86f403c0cb9bde79c79fd5118a43106928bebad1786e
MD5 803525ff1d3cf4865d3894c0146c3915
BLAKE2b-256 072a67d2e74c31477a409ff084fcf39bc73ef82ae24b68aa4eb3fe894d7ad8b4

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