A library to generate processed webshell instances
Project description
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"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
poclib3-0.1.2.tar.gz
(14.0 kB
view details)
Built Distribution
poclib3-0.1.2-py3-none-any.whl
(17.4 kB
view details)
File details
Details for the file poclib3-0.1.2.tar.gz
.
File metadata
- Download URL: poclib3-0.1.2.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
56348e83efc7274715ef9c4b8c8fe326cdafbcfa09076b860a51cff91714e4c4
|
|
MD5 |
753c2d8ee37e699733ffa3719ecfcc71
|
|
BLAKE2b-256 |
501559ce5c2596c5a49d22e164c8e017e917c07a7bdc75319ec487fb5ec43a0d
|
File details
Details for the file poclib3-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: poclib3-0.1.2-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
700367f2dea59bb10829cdf248240fccd57ae70e7512bb9d629a75e4dd3b334c
|
|
MD5 |
5e4c553f0949b0118f8edf2a51f242cb
|
|
BLAKE2b-256 |
973c6bbd373947c33b669f23c93afa292dbe02870472d6ffb6e8fd69cf178346
|