Python library for crafting SAP's network protocols packets
Project description
pysap - Python library for crafting SAP's network protocols packets
SECUREAUTH LABS. Copyright (C) 2021 SecureAuth Corporation. All rights reserved.
Version 0.1.19 (April 2021)
Overview
SAP Netweaver and SAP HANA are technology platforms for building and integrating SAP business applications. Communication between components uses different network protocols and some services and tools make use of custom file formats as well. While some of them are standard and well-known protocols, others are proprietaries and public information is generally not available.
pysap
is an open source Python 2 library that provides modules for crafting and sending packets
using SAP's NI
, Diag
, Enqueue
, Router
, MS
, SNC
, IGS
, RFC
and HDB
protocols. In addition, support for creating and parsing different proprietary file
formats is included. The modules are built on top of Scapy and are
based on information acquired at researching the different protocols, file formats
and services.
Features
-
Dissection and crafting of the following network protocols:
- SAP Network Interface (
NI
) - SAP
Diag
- SAP
Enqueue
- SAP
Router
- SAP Message Server (
MS
) - SAP Secure Network Connection (
SNC
) - SAP Internet Graphic Server (
IGS
) - SAP Remote Function Call (
RFC
) - SAP HANA SQL Command Network (
HDB
)
- SAP Network Interface (
-
Client interfaces for handling the following file formats:
- SAP
SAR
archive files - SAP Personal Security Environment (
PSE
) files - SAP SSO Credential (
Credv2
) files - SAP Secure Storage in File System (
SSFS
) files
- SAP
-
Library implementing SAP's
LZH
andLZC
compression algorithms. -
Automatic compression/decompression of payloads with SAP's algorithms.
-
Client, proxy and server classes implemented for some of the protocols.
-
Example scripts to illustrate the use of the different modules and protocols.
Installation
To install pysap simply run:
$ pip install pysap
pysap is compatible and tested with Python 2.7. A Python 2/3 compatible version is in the workings but it's not finalized yet.
Documentation
Documentation is available at Read the Docs.
License
This library is distributed under the GPLv2 license. Check the COPYING
file for
more details.
Disclaimer
The spirit of this open source initiative is hopefully to help the community to alleviate some of the hindrances associated with the implementation of networking protocols and stacks, aiming at speeding up research and educational activities. By no means this package is meant to be used in production environments / commercial products. If so, we would advise to include it into a proper SDLC process.
Authors
The library was designed and developed by Martin Gallo from SecureAuth's Innovation Labs team, with the help of a large number of contributors.
Contributors
Contributions made by:
- Florian Grunow (@0x79)
- Scott Walsh (@invisiblethreat)
- Joris van de Vis (@jvis)
- Victor Portal Gonzalez
- Dmitry Yudin (@ret5et)
- Hans-Christian Esperer (@hce)
- Vahagn Vardanyan (@vah13)
- Mathieu Geli (@gelim)
- Yvan Genuer (@iggy38)
- Malte Heinzelmann (@hnzlmnn)
- Albert Zedlitz
- @cclauss
- @okuuva
- Dmitry Chastuhin (@_chipik)
- fabhap
- Andreas Hornig
- Jennifer Hornig (@gloomicious)
Contact
Whether you want to report a bug or give some suggestions on this package, drop
us a few lines at oss@secureauth.com
or contact the author email
mgallo@secureauth.com
.
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
Built Distributions
File details
Details for the file pysap-0.1.19.zip
.
File metadata
- Download URL: pysap-0.1.19.zip
- Upload date:
- Size: 11.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b772771be41c87c2457ee2476a6d9cc91d659decd287d6c5d502de61b5086c |
|
MD5 | 5285f00b58833dbf3fbe6fe64a6e7a40 |
|
BLAKE2b-256 | 4c4ae529e4879d05dfa2694e8fbdd53e653547f90e885b81d318f3cced9abf9a |
File details
Details for the file pysap-0.1.19-cp27-cp27m-win_amd64.whl
.
File metadata
- Download URL: pysap-0.1.19-cp27-cp27m-win_amd64.whl
- Upload date:
- Size: 139.0 kB
- Tags: CPython 2.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48d575b0dae8d080bfb270cf49046090581e3c36c9c4b16614131c4e98e356b4 |
|
MD5 | 841eb6fb5d25a8bff1b9121017d173d0 |
|
BLAKE2b-256 | 79c3092d53a5099e0d7546d9064667ddcf03d576844d47ae2998e79b070cce86 |
File details
Details for the file pysap-0.1.19-cp27-cp27m-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: pysap-0.1.19-cp27-cp27m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 146.6 kB
- Tags: CPython 2.7m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0703d76dcff2d09d252e1d9224e08acce3aff8a2b66ca5b1eabe19f23e68005 |
|
MD5 | fd462cbddf2ef0925e898b50173a5607 |
|
BLAKE2b-256 | a3a91520cfe12991a91bdfb94bf59692c8cfe404b4033549050c63c60f300bf3 |