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
pip3 install psex
Usage
PSE Sample:
# 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()
Release files for psex 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| psex-0.1.4.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| psex-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.5 kB
Release files / psex-0.1.4.tar.gz
| Download URL | psex-0.1.4.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a78b8cc9742f572d70d892dd54dcd04553264c18a162e70276ec50a5aa30b8e8
|
|
BLAKE2b-256 checksum How to use checksums |
bd1b74c1ecaf3d882e2cf27865ddbb0724fb798124aaa1ff9020b8ce774b6d32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.3 Linux/5.15.114-2-MANJARO
|
Release files / psex-0.1.4-py3-none-any.whl
| Download URL | psex-0.1.4-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a0a7415aa086556c81a6c8a6736faa8fa6e4de282b9dfb6f2c33c9ac46104ca
|
|
BLAKE2b-256 checksum How to use checksums |
1c77a877b56a42e8536cf61b94940054578e44a832415a8412d696f6876e0f9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.3 Linux/5.15.114-2-MANJARO
|