Metadata-Version: 2.1
Name: unsafe
Version: 1.1.2
Summary: A practical and optimal library for those interested in Pentest, cryptography,Vulnerability Scanner and ..
Home-page: https://github.com/ahur4/unsafe
Author: Ahura Rahmani
Author-email: ahur4.rahmani@gmail.com
Maintainer: Masoud Nayebi
Maintainer-email: mesut@gmail.com
License: MIT
Keywords: hack,hack module,pentest,unsafe,osint,osint-python,hacking-python,cryptography,vulnerability-scanner,vulnerability,security,hacker,admin-finder,wordpress-scanner,instagram-osint,vulnerability,cve,proxy-wrapper,proxy-checker,ssh-connect,hydra,cracker,sqlmap,ahur4,mesutfd
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# unsafe

Under construction! Not ready for use yet! Currently experimenting and planning!

Developed by Ahur4, MesutFD (™) 2022

## Examples of How To Use (Buggy Alpha Version)

- Hashing a Text with Different Methods

```python

>>> from unsafe import Encryptor
>>> enc = Encryptor()

>>> #all arguments except words are optional
>>> #hash a text
>>> my_md5 = enc.text_encrypt(words='YOUR WORD TO HASH', encode='UTF-8', hash_method='MD5')
>>> my_md5
'28488a21527473bec901c7cc2bfbd76b'
>>> my_shake128 = enc.text_encrypt(words='YOUR WORD TO HASH', encode='UTF-8', hash_method='SHAKE128', count = 22)
>>> my_shake128
'5f75455db6b0b3652f20cd6d67972a67746631f3a562'
>>> my_base64 = enc.text_encrypt(words='YOUR WORD TO HASH', encode='UTF-8', hash_method='BASE64')
>>> my_base64
b'WU9VUiBXT1JEIFRPIEhBU0g='

#hash a file
>>> my_md5_file = enc.file_encrypt(filename='unsafe.txt', encode='UTF-8', hash_method='MD5')
```

- Hash Cracking and Decode a Encrypted Text

```python

>>> from unsafe import Decrypter
>>> dec = Decrypter()

>>> #all arguments except words are optional
>>> #hash a text
>>> my_decrypted_md5 = dec.text_decrypt(hash='28488a21527473bec901c7cc2bfbd76b', words='YOUR WORD TO HASH', hash_method='MD5')
>>> my_decrypted_md5
'YOUR WORD TO HASH'
>>> my_decrypted_shake128 = dec.text_decrypt(hash='5f75455db6b0b3652f20cd6d67972a67746631f3a562', words='Wrong Words', hash_method='SHAKE128')
>>> #return a empty string when encrypted words dont match to hash
>>> my_decrypted_shake128
''
>>> my_decrypted_base64 = dec.text_decrypt(hash=b'WU9VUiBXT1JEIFRPIEhBU0g=', hash_method='BASE64')
>>> my_decrypted_base64
'YOUR WORD TO HASH'
```

- Collecting Proxies and Check Their Health.

```python

>>> from unsafe import Proxy
>>> proxy = Proxy()
>>> my_proxy_dict = proxy.wrapper(protocol='http', max_ping=200)
>>> my_proxy_dict
{'ip':'port', 'ip':'port', ...}
>>> check_proxy = proxy.checker(proxy_host='127.0.0.1', proxy_port='80', protocol='http', timeout=10)
>>> check_proxy
True
```

- Find Admin Panel.

```python

>>> from unsafe import BruteForcer
>>> brute = BruteForcer()
>>> a = brute.admin_finder(domain='example.com', timeout=10, ext='php')
>>> a
{'http://example.com': ['http://example.com/wp-login.php']}

```

- Find Wordpress Plugins and Extract Users.

```python

>>> from unsafe import Wordpress
>>> wp = Wordpress()
>>> #get wordpress users
>>> users = wp.get_user(domain='example.com')
>>> users
['admin', 'administrator']
>>> #max workers count is 5(for now) and default workers count is 3
>>> plugins = wp.plugin_scanner(url="example.com", timeout=5, workers=5, proxy="http://127.0.0.1:80")
>>> plugins
['http://example.com/wp-content/plugins/wordpress-seo/', 'http://example.com/wp-content/plugins/duplicate-post/', 'http://example.com/wp-content/plugins/w3-total-cache/', 'http://example.com/wp-content/plugins/redirection/', 'http://example.com/wp-content/plugins/favicon-by-realfavicongenerator/']

```
