pysap - Python library for crafting SAP’s network protocols packets

Version v0.1.14.dev0 (Installation)

Overview

SAP Netweaver is a technology platform for building and integrating SAP business applications. Communication between components uses different network protocols. While some of them are standard and well-known protocols, others are proprietaries and public information is not available.

pysap is a Python library that provides modules for crafting and sending packets using SAP’s NI, Message Server, Router, RFC, SNC, Enqueue and Diag protocols. The modules are based on Scapy and are based on information acquired at researching the different protocols 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 SNC
  • Client interfaces for handling the following file formats:

    • SAP SAR archive files
  • Library implementing SAP’s LZH and LZC 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.

Indices and tables