This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Installation base ($prefix) : /usr/bin/php-5.2.17 | |
2. Temporary directory for processing : /tmp/pear/install/5.2.17 | |
3. Temporary directory for downloads : /tmp/pear/install/5.2.17 | |
4. Binaries directory : /usr/bin/php-5.2.17 | |
5. PHP code directory ($php_dir) : /usr/share/pear/php-5.2.17 | |
6. Documentation directory : /usr/docs/php-5.2.17 | |
7. Data directory : /usr/data/php-5.2.17 | |
8. User-modifiable configuration files directory : /etc/php-5.2.17 | |
9. Public Web Files directory : /var/www | |
10. Tests directory : /usr/tests/php-5.2.17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iptables -P INPUT ACCEPT | |
iptables -F INPUT | |
iptables -F FORWARD | |
iptables -F OUTPUT | |
iptables -A INPUT -i lo -j ACCEPT | |
iptables -A INPUT -i eth0 -j ACCEPT | |
iptables -A INPUT -s 24.116.177.208/29 -i eth1 -p tcp -m tcp --dport 22 -j ACCEPT | |
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
iptables -A INPUT -p icmp -j ACCEPT | |
iptables -P INPUT DROP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <stdio.h> | |
#include <string.h> | |
int main(int argc, char *argv[]) { | |
const char *hostname = argv[1]; | |
const char *service = argv[2]; |