Skip to content

Monthly Archives: November 2009

Find php.ini path

01-Nov-09

root@laptop:~# php -i|grep php.ini Configuration File (php.ini) Path => /etc/php5/cli Loaded Configuration File => /etc/php5/cli/php.ini root@laptop:~#

PHP Security

01-Nov-09

PHP Security PHP as a module or as a CGI Using PHP as a mod-ule is suitable for systems that are dedicated to a single purpose or for sites run by trusted groups of administrators and developers. Using PHP as a CGI (possibly with an execution wrapper) is a better option when users cannot be [...]

php security resources

01-Nov-09

Security section of the PHP manual (http://www.php.net/manual/en/security.php) PHP Security Consortium (http://www.phpsec.org)

tshark dump and analyze network traffic

01-Nov-09

tshark – Dump and analyze network traffic # tshark -n -i ppp0 port 80 Running as user “root” and group “root”. This could be dangerous. Capturing on ppp0 -n Disable network object name resolution (such as hostname, TCP and UDP port names), the -N flag might override this one. -i [capture interface] TShark is a [...]

Changing MTU

01-Nov-09

Changing MTU $ sudo ifconfig ppp0 mtu 1492 In computer networking, the maximum transmission unit (MTU) of a layer of a communications protocol is the size (in bytes) of the largest protocol data unit that it can pass onwards. MTU parameters usually appear in association with a communications interface (NIC, serial port, etc.). The MTU [...]