initial version of c code to test bindshell