본문 바로가기

Perl4

PostgreSQL Shell Injection Shell InjectionPostgreSQL provides a mechanism to add custom functions by using both Dynamic Library and scripting languages such as python, perl, and tcl. Dynamic LibraryUntil PostgreSQL 8.1, it was possible to add a custom function linked with libc: CREATE FUNCTION system(cstring) RETURNS int AS '/lib/libc.so.6', 'system' LANGUAGE 'C' STRICT Since system returns an int how we can fetch results.. 2010. 8. 5.
Redis Command Reference memcached 류의 Key-Value 모델 이상의 역할을 수행하는 것이 가능하다. PHP와 Redis만으로 (즉, 별도의 Database 등을 사용하지 않고) 개발되고 있다. Every command name links to a specific wiki page describing the behavior of the command. Connection handling QUIT close the connection AUTH simple password authentication if enabled Commands operating on all the kind of values EXISTS key test if a key exists DEL key delete a key TYPE key return th.. 2009. 12. 17.
XAMPP for Windows The XAMPP 1.7.1 is available! We've released a new version of XAMPP, including: Apache HTTPD 2.2.11 + Openssl 0.9.8i MySQL 5.1.33 PHP 5.2.9 phpMyAdmin 3.1.3.1 XAMPP CLI Bundle 1.3 FileZilla FTP Server 0.9.31 Mercury Mail Transport System 4.62 Please visit the win32 compatibility list. Vista Note: Because missing or insufficient write permissions in the c:\program files folder of the default vist.. 2009. 6. 9.
로그 모니터링시 특정 문자를 highlight 하기 apache 웹로그, php 에러로그, syslog를 통한 로그를 모니터링할 때 특정 문자열에 대해서는 highlight해주면 원하는 부분만 쉽게 볼 수 있을 것이다. 또한 수치를 모니터링하는 경우, 0~59는 양호, 60~79 주의, 80~99는 경고를 나타내기위해 각각 녹색, 파란색, 빨간색으로 표시해준다면, 많은 로그가 순간적으로 스크롤되더라도 눈에 쉽게 띌 것이다. 이 글은 highlight 처리를 해주는 1) sed를 이용한 쉘스크립트와 2) 이보다 더 나은 perl 스크립트를 통해 모니터링하는 방법을 설명한다. 1. sed를 이용한 highlight 스크립트 * view.sh 내려받기 #!/bin/bash # # 특정 문자를 highlight한다. (view.sh) # # by 좋은진호(tru.. 2008. 9. 11.