Skip to main content

ATLAS - Scanner Manager Message Coder

Project description

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/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smmc-0.1.5.linux-x86_64.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smmc-0.1.5-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file smmc-0.1.5.linux-x86_64.tar.gz.

File metadata

  • Download URL: smmc-0.1.5.linux-x86_64.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for smmc-0.1.5.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 bc9e2f5a419fe1732c8be1118e387d4f343813c914fdbff1894b44e9e3c09264
MD5 fd6b819df226f699ab645b81de52ff6a
BLAKE2b-256 36a65edd7a31d0ac4d9c851cf4aa7551f371fa4bc3855ae50abb88f689cdad15

See more details on using hashes here.

File details

Details for the file smmc-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: smmc-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for smmc-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b89ad6e4b022de6ae86438539ff9ed28a65da0eedef89f045388f9603bbf1efb
MD5 8c8ff1202f86a1e1cbb6124fd487a86c
BLAKE2b-256 4ee51b82ed0c967905e527610faba5dc68bc60e722008857a12b677cba99e7e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page