pysap is an open source Python library that provides modules for crafting and sending packets using SAP's NI, Diag, Enqueue, Router, MS, SNC, IGS, RFC and HDB protocols.
added the DPInfo[1-3] packets in SAPMS.py for handling specific MS ADM packets relaying Dispatcher/WP info : [1-3] because of tight SAP kernel version dependency.
enhanced SAPRFC.py with mainly SAPCPIC* and SAPRFXPG* new packets
Those enhancements are used by PoC code like this and this
This is really good work, thank you very much for contributing it back to upstream @gelim and @chipik! I'll add some documentation and references to your work and the exploits repositories after the merge.
Hey, this is the contribution used for our research on Gateway+Message Server "be trusted" attack presented at OPCDE2019 Dubai.
slides and videos
Main takeaways are:
DPInfo[1-3]
packets inSAPMS.py
for handling specific MS ADM packets relaying Dispatcher/WP info :[1-3]
because of tight SAP kernel version dependency.SAPRFC.py
with mainlySAPCPIC*
andSAPRFXPG*
new packetsThose enhancements are used by PoC code like this and this