Jump to content

Get Hardware Specfication from external source Using PHP


zab329

Recommended Posts

Sure.

 

I wrote an app in Python which listens on port 1985 for 'commands'

 

Currently 2 commands are implemented:

call, fork

 

call exectes any OS level command and returns the STDOUT. Think 'dir' on windows.

 

fork creates any system level process that the user can execute and returns the PID (Process ID)

 

Using PHP I could send a packet to this port and get the response, thereby getting the information I need (if this is a linux box, the information would be available in /proc/)

 

If you have any specific questions about this implementation, let me know :)

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.