Scanner Manager Message Coder
Scanner Manager Message Coder is a library offering functions to set Atlas Scan Status and send Scan Output via StdOut. When writing scripts for Atlas Docker Containers make sure you never write something to StdOut because it's the standard way to send messages to Atlas.
Installation
pip install smmc
Usage
from smmc import SMMC
smmc = SMMC()
# sending status update
smmc.send_status("preparing", details={"reason": "setting up aws node"})
smmc.send_status("finished", details={"statistics": {
"high": 0, "med": 1, "low": 3, "info": 14, "crwaled_pages": 161}})
# sending output from dictionary data
smmc.send_output_json("findings.json", description="Findings of the Scan Job", payload={["id": 5, "type": "injection", "url": "http://test.org/send?data='1=1;--"]})
# sending output from strings
smmc.send_output_string("scan.log", payload="""03/22 08:51:06 INFO :...read_physical_netif: index #0, interface VLINK1 has address 129.1.1.1, ifidx 0
03/22 08:51:06 INFO :...read_physical_netif: index #1, interface TR1 has address 9.37.65.139, ifidx 1
03/22 08:51:06 INFO :...read_physical_netif: index #2, interface LINK11 has address 9.67.100.1, ifidx 2
03/22 08:51:06 INFO :...read_physical_netif: index #3, interface LINK12 has address 9.67.101.1, ifidx 3
03/22 08:51:06 INFO :...read_physical_netif: index #4, interface CTCD0 has address 9.67.116.98, ifidx 4
03/22 08:51:06 INFO :...read_physical_netif: index #5, interface CTCD2 has address 9.67.117.98, ifidx 5
03/22 08:51:06 INFO :...read_physical_netif: index #6, interface LOOPBACK has address 127.0.0.1, ifidx 0
03/22 08:51:06 INFO :....mailslot_create: creating mailslot for timer
03/22 08:51:06 INFO :...mailbox_register: mailbox allocated for timer""")
# sending output files
smmc.send_output_file("scan_findings.bin")
Build & Upload
python3 setup.py bdist bdist_wheel
python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
Release files for smmc 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smmc-0.1.5.linux-x86_64.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smmc-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / smmc-0.1.5.linux-x86_64.tar.gz
| Download URL | smmc-0.1.5.linux-x86_64.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc9e2f5a419fe1732c8be1118e387d4f343813c914fdbff1894b44e9e3c09264
|
|
BLAKE2b-256 checksum How to use checksums |
36a65edd7a31d0ac4d9c851cf4aa7551f371fa4bc3855ae50abb88f689cdad15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Release files / smmc-0.1.5-py3-none-any.whl
| Download URL | smmc-0.1.5-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b89ad6e4b022de6ae86438539ff9ed28a65da0eedef89f045388f9603bbf1efb
|
|
BLAKE2b-256 checksum How to use checksums |
4ee51b82ed0c967905e527610faba5dc68bc60e722008857a12b677cba99e7e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|