Skip to content

osgi-info.nse script - gather system information via OSGi console#1124

Open
qkaiser wants to merge 6 commits intonmap:masterfrom
qkaiser:osgi_console_info
Open

osgi-info.nse script - gather system information via OSGi console#1124
qkaiser wants to merge 6 commits intonmap:masterfrom
qkaiser:osgi_console_info

Conversation

@qkaiser
Copy link

@qkaiser qkaiser commented Feb 1, 2018

This NSE scripts connects to an OSGi console and use the getprop command to retrieve:

  • username running the service
  • complete OS version
  • complete Java VM and Runtime versions

For more information about OSGi, you can check pull request #1123

@cldrn
Copy link
Member

cldrn commented Jun 23, 2018

Thank you for contributing. The script looks great, although the bin library is deprecated and we prefer scripts to use the string library in Lua 5.3 for pack/unpack. Do you still have access to the server? Can you replace the library and test it again without deprecated libraries?

@qkaiser
Copy link
Author

qkaiser commented Jun 25, 2018

I still have access to the server, I'll update the script sometime today.

@qkaiser
Copy link
Author

qkaiser commented Jun 26, 2018

Done. Updated the script so it uses string.pack instead of bin.pack

@cldrn
Copy link
Member

cldrn commented Jul 14, 2018

Thanks again for contributing! The script looks good to me. The only two things that would be great to include are:

@qkaiser
Copy link
Author

qkaiser commented Jul 18, 2018

  • @xmloutput added
  • endianness explicitly specified when packing

Let me know if this works for you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants