Can I use netcat to run PHP CLI w/ arguments?

edebfmq

New Member
I'm trying to create a debug listener that listens on a port for a data string and forwards it to a php script as an argument. How can I specify that the input to the port should be used as an argument?For example: The remote device send a string with comma separated values \[code\]value1,value2,value3\[/code\] and I'd like to run the command \[code\]php file.php value1,value2,value3\[/code\] and have the values used in \[code\]$_SERVER["argv"][1]\[/code\].Any help would be appreciated!
 
Back
Top