Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #include <unistd.h> | |
| #include <errno.h> | |
| main( int argc, char ** argv, char ** envp ) | |
| { | |
| if( setgid(getegid()) ) perror( "setgid" ); | |
| if( setuid(geteuid()) ) perror( "setuid" ); | |
| envp = 0; /* blocks IFS attack on non-bash shells */ | |
| system( "/path/to/bash/script", argv, envp ); | |
| perror( argv[0] ); |