pysap.SAPIGS module

class pysap.SAPIGS.SAPIGS(_pkt='', post_transform=None, _internal=0, _underlayer=None, **fields)[source]

Bases: scapy.packet.Packet

SAP Internet Graphic Server call packet

This packet is used for the Remote IGS Function Call protocol.

aliastypes = [<class 'pysap.SAPIGS.SAPIGS'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (SAPIGS).function>, <Field (SAPIGS).listener>, <Field (SAPIGS).hostname>, <Field (SAPIGS).id>, <Field (SAPIGS).padd1>, <Field (SAPIGS).todo1>, <Field (SAPIGS).padd2>, <Field (SAPIGS).todo2>, <Field (SAPIGS).padd3>, <Field (SAPIGS).eye_catch>, <Field (SAPIGS).padd4>, <Field (SAPIGS).codepage>, <Field (SAPIGS).offset_content>, <Field (SAPIGS).packet_size>]
static http(host, port, interpreter, files=None, tls=False, method='POST')[source]

HTTP request for IGS

This method build a http(s) request for IGS HTTP Multiplexer service instead of Remote IGS Function Call

Parameters:
  • host (string) – remote host to connect to
  • port (int) – remote port to connect to
  • interpreter (string) – interpreter of function to call
  • files (dict) – list of files to send in case of multipart/form-data
  • tls (bool) – using https or not
  • method (string) – HTTP request method to use
Returns:

the HTTP request to send as raw

Return type:

string

Raises:

ImportError – if the requests library can’t be imported

class pysap.SAPIGS.SAPIGSTable(_pkt='', post_transform=None, _internal=0, _underlayer=None, **fields)[source]

Bases: scapy.packet.Packet

SAP IGS table description

Mandatory for RFC call type. This describes table name/width/length where content will be stored.

static add_entry(t_name, t_line, t_width, t_column, c_name, c_width, **kwargs)[source]

Add an entry into Table description

This where custom content is stored Entry must be write from the end like : ‘ abcd’

Parameters:
  • t_name (string) – name of table
  • t_line (int) – number of line
  • t_width (int) – width of table
  • t_column (int) – number of column
  • c_name (string) – name of column
  • c_width (int) – width of column
Returns:

SAP IGS Table

Return type:

SAPIGSTable

aliastypes = [<class 'pysap.SAPIGS.SAPIGSTable'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (SAPIGSTable).version_label>, <Field (SAPIGSTable).version>, <Field (SAPIGSTable).table_name_label>, <Field (SAPIGSTable).table_name>, <Field (SAPIGSTable).table_line_label>, <Field (SAPIGSTable).table_line>, <Field (SAPIGSTable).table_width_label>, <Field (SAPIGSTable).table_width>, <Field (SAPIGSTable).table_column_label>, <Field (SAPIGSTable).table_column>, <Field (SAPIGSTable).column_name_label>, <Field (SAPIGSTable).column_name>, <Field (SAPIGSTable).column_width_label>, <Field (SAPIGSTable).column_width>]
pysap.SAPIGS.igs_req_adm = {1: 'ADM:REGPW', 2: 'ADM:UNREGPW', 3: 'ADM:REGIP', 4: 'ADM:UNREGIP', 5: 'ADM:FREEIP', 6: 'ADM:ILLBEBACK', 7: 'ADM:ABORT', 8: 'ADM:PING', 9: 'ADM:PONG', 10: 'ADM:SHUTDOWNIGS', 11: 'ADM:SHUTDOWNPW', 12: 'ADM:CHECKCONSUMER', 13: 'ADM:FREECONSUMER', 14: 'ADM:GETLOGFILE', 15: 'ADM:GETCONFIGFILE', 16: 'ADM:GETDUMP', 17: 'ADM:DELETEDUMP', 18: 'ADM:INSTALL', 19: 'ADM:SWITCH', 20: 'ADM:GETVERSION', 21: 'ADM:STATUS', 22: 'ADM:STATISTIC', 23: 'ADM:STATISTICNEW', 24: 'ADM:GETSTATCHART', 25: 'ADM:SIM'}

IGS Request Administrator function

pysap.SAPIGS.igs_req_interpreter = {1: 'ZIPPER', 2: 'IMGCONV', 3: 'RSPOCONNECTOR', 4: 'XMLCHART', 5: 'CHART', 6: 'BWGIS', 7: 'SAPGISXML'}

IGS Request Interpreter