php implode函数 多维数组

作者:matrix 发布时间:2015年3月19日 分类:PHP

PHP implode()[别名join]的作用是将数组元素拼接成一个字符串。
$arr=array('a','b',array('1','2'),'c'); //二维数组
$s=implode(',',$arr);
//返回a,b,Array,c
但是遇到上面这种多维数组这样的implode()就没办法处理。
I was a little worried about the multi-dimensional array implodes listed here, as they are using 'for' loops, which is bad programming practice as arrays are not always nice and neat.

I hope this helps
好在早有解决方案:

<?php  
function multi_implode($glue, $pieces)  
{  
    $string='';  

    if(is_array($pieces))  
    {  
        reset($pieces);  
        while(list($key,$value)=each($pieces))  
        {  
            $string.=$glue.multi_implode($glue, $value);  
        }  
    }  
    else  
    {  
        return $pieces;  
    }  

    return trim($string, $glue);  
}  

说明:和implode()使用参数一样。multi_implode(字符, 数组)
参考:
http://php.chinaunix.net/manual/zh/function.implode.php#94688
http://g.xker.com/97041.html
http://blog.sina.cn/dpool/blog/s/blog_50a1e1740101aet6.html?vt=4

免费公共WeiPN中继服务器-WeiPN Gate Client

作者:matrix 发布时间:2015年3月17日 分类:兼容并蓄

微PN Gate 学术实验项目是一个由日本国立筑波大学研究生院运营的免费服务。
它和传统的代理服务器微PN的不同之处在于,它只提供一个平台,而来自世界各地的志愿者才是真正提供代理的人。
因此几乎永远也不用担心微PN Gate被和谐,因为各国的志愿者成千上万并且不断在变化。

官网

http://www.vpngate.net/cn/

下载

https://download.vpngate.jp/common/cd.aspx/vpngate-client-2020.01.20-build-9731.146250.zip

食用方法

下载软件压缩包,安装里面的exe应用程序

免费公共WeiPN中继服务器-WeiPN Gate Client
安装完成后双击“vpn Gate 公共 vpn 中继服务器”选择其中的一个服务器,单击右下角的连接即可!
更加详细的的教程请参照:
http://130.158.6.78/cn/howto_softether.aspx
http://www.vpngate.net/cn/howto_softether.aspx

参考:

[下載] VPN Gate Client 免費不限流量 VPN 連線工具(安裝、使用教學)

超给力的全球免费VPN软件 节点众多 覆盖全球 VPN Gate

windows系统密码查看神器-mimikatz

作者:matrix 发布时间:2015年3月4日 分类:兼容并蓄 零零星星

mimikatz
之前不知道还有这玩意,竟然能够查看Windows系统的密码。真正的神器!法国一个牛人写的轻量级调试器-mimikatz

作者博客:http://blog.gentilkiwi.com/mimikatz
github地址:https://github.com/gentilkiwi/mimikatz
下载页面:https://github.com/gentilkiwi/mimikatz/releases/latest

2.0 alpha 20150122百度网盘:http://pan.baidu.com/s/1eQzpmQe
目前最新的是2.0版本20150122更新,支持xp及以上系统包括32和64位。Windows10貌似也不在话下(Windows 10 Constant),不过我只测试了win8.0 64bit系统是没有问题的

步骤:

下载并解压缩以管理员权限运行mimikatz.exe,逐行输入命令
privilege::debug
sekurlsa::logonpasswords
如果成功执行sekurlsa::logonpasswords命令则回显系统信息,这是明文包含密码的

如果成功最后一个命令则回显系统信息
这个工具不仅仅局限于查看windows密码,可以提升进程权限 注入进程 读取进程内存等等
参考:http://www.52pojie.cn/thread-268297-1-1.html
http://lcx.cc/?i=2265