semvec/pypi-packages huggingface dataset:
httpie-mauth 0.0.4
MAuth plugin for HTTPie
License: MIT
Requires Python: >=3.8,<4.0

# HTTPie mauth

This is a plugin for the [HTTPie](https://github.com/jakubroztocil/httpie)
command line request library that allows it to send mauth-authenticated requests.

To use this, you will need:

* A MAuth App ID
* A MAuth private key whose corresponding public key is registered with the
MAuth server that the target service is using
* A MAuth config file in a supported location, one of:
    * `~/.mauth_config.yml`
    * `./config/mauth.yml`
    * `./mauth.yml`

The format of that file should be as follows:

```yaml
development:
  app_uuid: a36c9238-c9c8-4de9-a385-07dfe6dc1fc4
  private_key_file: /Users/mgup/.mauth_key
```

You can then issue signed requests as follows:

`http --auth-type mauth https://example.com`

You can pass the `-v` option to see the outgoing header. Validating the
signature of the response is not currently supported.
psex 0.1.4
A simple, fast and powerful password scanner engine tool was built by antx.
License: MIT
Requires Python: >=3.8,<4.0
Keywords: poc,engine,psex,database,weak password

# psex
A simple, fast and powerful password scanner engine tool was built by antx.

## Description
psex is a simple, fast and powerful password scanner engine tool was built by antx. psex also 
support some useful features, which like fofa search and parse assets to verify. psex has been built in some weak username and password. 

## Install

```bash
pip3 install psex
```

## Usage

### PSE Sample:

```python
# Title: xxxxxxx
# Author: antx-code
# Email: 7877940+antx-code@users.noreply.github.com

from loguru import logger
from redis import Redis
from psex import ScannerEngine
from psex.funcs.assetio import AssetIO
from psex.weaks import weak_passwords


class Scanner(ScannerEngine):
    def __init__(self):
        super(Scanner, self).__init__()

    @logger.catch(level='ERROR')
    def is_connected(self, connection):
        """
        check if the connection is connected.
        """
        try:
            connection.ping()
            return True
        except Exception as e:
            return False

    @logger.catch(level='ERROR')
    def create_connect(self, *args):
        """
        
        create a connection.
        
        """
        connection = Redis(host=args[0], port=args[1], password=args[3], db=0, socket_connect_timeout=self.timeout,
                           socket_timeout=self.timeout)
        return connection

    @logger.catch(level='ERROR')
    def dia(self):
        asset_io = AssetIO()
        ips = asset_io.get_file_assets('input/source_redis.csv')
        """
        
        or use fofa search and parse assets to verify.
        
        grammar = 'xxx'
        api_key='xxxxxxxxxxxxxxxxxxxxxx'
        api_email='xxxx@email.com'
        ips = asset_io.get_fofa_assets(grammar, api_key, api_email, 'fofa_redis.csv')
        
        """
        
        passwords = weak_passwords('redis')
        for password in passwords:
            for ip_port in ips:
                ip_port = ip_port.strip()
                ip = ip_port.split(':')[0]
                port = int(ip_port.split(':')[1])
                logger.debug(f'Connecting to {ip} ......')
                logger.warning(f'Testing {ip_port} with password: "{password}" !')
                result = self.poc(ip, port, '', password)
                if result:
                    asset_io.save2file('redis_success', ip, port, '', password)


if __name__ == '__main__':
    ds = Scanner()
    ds.dia()
```