Dateiansicht:
Datei: | Projekte -> PHP:check_blocked_ip -> fwlist.c |
---|---|
md5: | 6bb55b5a9fbe9d361904378c38a743cf |
sha1: | 2a74e493e9a3d64e1bd75e9882259378e9efb316 |
Download-Link: | Download |
- /*
- * fwlist.c
- * change the path to the script in line 14
- * compile with: gcc fwlist.c -o fwlist
- * then set the owner root: sudo chown root:root fwlist
- * then enable the suid-right: sudo chmod 4755 fwlist
- */
- #include <unistd.h>
- #include <errno.h>
- int main( int argc, char ** argv, char ** envp )
- {
- char script[]="/opt/fwlist.sh";
- envp = 0;
- return errno;
- }