OWASP / pysap

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.
https://owasp.org/www-project-core-business-application-security/
GNU General Public License v2.0
220 stars 61 forks source link

Display welcome screen + tech info #13

Closed gelim closed 7 years ago

gelim commented 7 years ago

Hi again, I thought you could be interested in a diag_login_screen script that outputs more info in a comprehensive way (if you think parsing of objects for welcome screen is not too flaky you could adapt diag_render_login_screen.py to print out those info as well...

Ouptut looks like this:

    $ python diag_login_screen2.py --host 192.168.32.129
    [*] Connecting to 192.168.32.129:3200
    [+] Dumping technical information
    DBNAME                  N45
    CPUNAME                 nw750
    KERNEL_VERSION          750.7450.15
    CLIENT                  000
    LANGUAGE                English
    SESSION_ICON            SAP R/3 (1) N45
    SESSION_TITLE           SAP

    [+] Login Screen text
    RSYST-MANDT             666
    RSYST-BNAME             ?
    RSYST-BCODE             ?
    INFO_TAB-TDLINE         Welcome to the IDES ECC 6.0 incl. EhP7
    1_0                     Edition 2 (2015)
    3_0                     Client : 800   -> ECC USERS
    4_0                     Client : 810   -> FIORI USERS
    --------------------------------------------------------------------------------

-- Mathieu

martingalloar commented 7 years ago

Hey Mathieu! Indeed this is a great idea! Initially thought about the script as a way to help on mass-scanning servers and grabbing info, so this addition is a good one.

Would you mind merging this changes into the original diag_login_screen_info.py? I think at some point your version superseed the old one, so it doesn't make much sense to have both.

gelim commented 7 years ago

Yeah sure. By the way, contacting you via your email in commits is fine for more broad questions?

martingalloar commented 7 years ago

Yes, feel free to reach me there too!

gelim commented 7 years ago

I did another pull request in #14, didn't want to tamper this one with commit about style change etc.

martingalloar commented 7 years ago

Merged in #14!