php升级5.2.14,这是5.2的最后一版了

Security Enhancements and Fixes in PHP 5.2.14:

  • Rewrote var_export() to use smart_str rather than output buffering, prevents data disclosure if a fatal error occurs.
  • Fixed a possible interruption array leak in strrchr().(CVE-2010-2484)
  • Fixed a possible interruption array leak in strchr(), strstr(), substr(), chunk_split(), strtok(), addcslashes(), str_repeat(), trim().
  • Fixed a possible memory corruption in substr_replace().
  • Fixed SplObjectStorage unserialization problems (CVE-2010-2225).
  • Fixed a possible stack exaustion inside fnmatch().
  • Fixed a NULL pointer dereference when processing invalid XML-RPC requests (Fixes CVE-2010-0397, bug #51288).
  • Fixed handling of session variable serialization on certain prefix characters.
  • Fixed a possible arbitrary memory access inside sqlite extension. Reported by Mateusz Kocielski.

Key enhancements in PHP 5.2.14 include:

  • Upgraded bundled PCRE to version 8.02.
  • Updated timezone database to version 2010.5.
  • Fixed bug #52238 (Crash when an Exception occured in iterator_to_array).
  • Fixed bug #52237 (Crash when passing the reference of the property of a non-object).
  • Fixed bug #52041 (Memory leak when writing on uninitialized variable returned from function).
  • Fixed bug #51822 (Segfault with strange __destruct() for static class variables).
  • Fixed bug #51552 (debug_backtrace() causes segmentation fault and/or memory issues).
  • Fixed bug #49267 (Linking fails for iconv on MacOS: “Undefined symbols: _libiconv”).

To prepare for upgrading to PHP 5.3, now that PHP 5.2’s support ended, a migration guide available on https://php.net/migration53, details the changes between PHP 5.2 and PHP 5.3.

nginx版本更新到0.8.50

Changes with nginx 0.8.50                                        02 Sep 2010

    *) Feature: the "secure_link", "secure_link_md5", and
       "secure_link_expires" directives of the ngx_http_secure_link_module.

    *) Feature: the -q switch.
       Thanks to Gena Makhomed.

    *) Bugfix: worker processes may got caught in an endless loop during
       reconfiguration, if a caching was used; the bug had appeared in
       0.8.48.

    *) Bugfix: in the "gzip_disable" directive.
       Thanks to Derrick Petzold.

    *) Bugfix: nginx/Windows could not send stop, quit, reopen, and reload
       signals to a process run in other session.

shell加密工具shc

辛辛苦苦写了一堆shell,由于某些不可见人的原因,我要把它们加密,就找到了shc这个工具
1) 工具说明
shell脚本是可读写的, 很有可能会泄露敏感信息, 如用户名/密码/路径/IP等. 同样在shell脚本运行时会也泄露敏感信息. shc是一个加密shell脚本的工具, 它的作用是把shell脚本转换为一个可执行的二进制文件. 这就很好的解决了上述问题.

下载安装
下载: https://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.7.tgz

安装:

 mkdir /usr/local/man/man1/ (install时会把man文件放入该目录,如果该目录不存在需提前建好)

 tar vxf shc-3.8.7.tgz && cd shc-3.8.7

 make test

 make strings

 make install

     Installing shc and shc.1 on /usr/local
     Do you want to continue? <输入y>
install -c -s shc /usr/local/bin/
install -c -m 644 shc.1 /usr/local/man/man1/

用法:

 which shc

/usr/local/bin/shc

 shc

shc parse(-f): No source file specified
shc Usage: shc [-e date] [-m addr] [-i iopt] [-x cmnd] [-l lopt] [-rvDTCAh] -f script

3) 加密脚本

 shc -v -f test.sh

-v是verbose模式, 输出更详细编译日志;
-f 指定脚本的名称.
$ ll test*
-rwxr-xr-x  1 oracle oinstall   1178 Aug 18 10:00 test.sh
-rwx–x–x  1 oracle oinstall   8984 Aug 18 18:01 test.sh.x
-rw-r–r–  1 oracle oinstall  14820 Aug 18 18:01 test.sh.x.c
$ file test.sh.x
test.sh.x: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped

可以看到生成了动态链接可执行二进制文件test.sh.x和C源文件testup.sh.x.c, 注意生成的二进制文件因为是动态链接形式, 所以在其它平台上不能运行. 

4) 生成静态链接的二进制可执行文件
可以通过下面的方法生成一个静态链接的二进制可执行文件:
$ CFLAGS=-static shc -r -f test.sh
$ file testup.sh.x 

5) 通过sch加密后的脚本文件很安全吗?
一般来说是安全的, 不过可以使用gdb和其它的调试工具获得最初的源代码. 如果需要更加安全的方法, 可以考虑使用wzshSDK. 另外shc还可以设置脚本的运行期限和自定义返回信息:
$ shc -e 03/31/2007 -m "the mysql backup scrīpt is now out of date." -f test.sh
-e表示脚本将在2007年3月31日前失效, 并根据-m定义的信息返回给终端用户.

今天让我们说说rinetd吧

在Rob Flickenger写的linux server hacks里有过介绍,主要功能是可以把本地服务器流量传递给远程服务器,此工具可以运用在linux上以及win上。
rinetd默认的配置文件是/etc/rinetd.conf,格式很简单
源IP 源端口 目标IP 目标端口 比如
0.0.0.0 1234 1.1.1.1 22
在windows上,我们可以使用rinetd唯一的有用参数-c 来指定rinetd.conf的地址,一般来说应把rinetd.conf放在和rinetd.exe同一目录中,这样就可以用如下命令调用了
rinetd -c rinetd.conf
执行完后,DOS窗口不会退出就是成功了,你可以看看本地机器的1234启动了没有,如果启动了用putty连接看看是否可以连到1.1.1.1上?特别注意一下,用putty连接的时候IP要写127.0.0.1,否则会报错。

为了方便下载,已经将软件放到
https://techlife.com.cn/soft/里了

《实战Nginx》PDF电子书下载

这本书全称是《实战Nginx:取代Apache的高性能Web服务器》,国内的张宴写的,这哥们应该是在金山逍遥网工作。

现在提供的下载是网上找的,仅为学习使用,如果大家觉得不错,希望支持一下作者,毕竟是咱们中国人自己写的书
https://diavps.vpser.net/nginx-pdf-download.zip
https://www.boobooke.com/b/book0469.zip
两个下载地址任选其一。

有没有懂flex或AS3的兄弟看看能否开发一个图片编辑程序

5000有偿征懂flex或as3的兄弟做一个私活
要求:
https://www.membooks.cn 的图片编辑器类似,但可能还要增加一些功能。
如果有兄弟可以做的话,可以用首页的意见和建议发信联系我。
我收到信后会及时和你联系,看看能否适合我们的需求。(需提供源代码便于我们二次开发。谢谢!)

ASE ChartDirector 简单介绍

这个程序是跨平台跨系统的在几乎所有编程语言下生成各种图表的程序(收费,如果没有lic文件的话,会在生成的图片下出现黄色条)

1、下载
https://www.advsofteng.com/download.html
目前支持语言
ChartDirector for ASP/COM/VB
ChartDirector for .NET
ChartDirector for JSP/Java
ChartDirector for ColdFusion
ChartDirector for PHP
ChartDirector for Perl
ChartDirector for Python
ChartDirector for Ruby
ChartDirector for Ruby

图形DEMO
https://www.advsofteng.com/gallery.html

继续阅读ASE ChartDirector 简单介绍

PT建站源码-XBTIT

目前版本xbtit v.2.1.0 – revision 594 (Last commit May 10th 2010),我打算用2.0的汉化文件试一下,因为改动并不大,这里给大家放个源码的下载地址,同样还是种子,不过不是自己做的,官方的种子。

https://www.climberlife.com/test/download.php?file=787xbtit%20(2.1.0)%20rev.594.zip.torrent

CSDN 的https://download.csdn.net/source/2171708程序我也有,看大家需要吧,只要CSDN不收费个人还是不反对CSDN模式的,上传就是有回报的,挺好。不过有时候也真着急,希望有条件的能分享自己的CSDN注册号。