Mrxn分享QQ技术之 --- 教你识别QQ匿名聊天的人是谁 技术文章
Mrxn分享QQ技术之 --- 教你识别QQ匿名聊天的人是谁
在QQ群中只要开启了匿名聊天的功能,群员就可以匿名进行发言了。有利就有弊,这个功能虽然让“言论自由”的水平加强了,但这是建立在群员自觉地情况下,有些不自觉的人就利用这个功能进行谩骂和发广告,引起了很大的不满,关闭匿名聊天虽然是个方法,但其实大家最想知道的还是在匿名聊天下谁是匿名者,是不是想看看谁是幕后,然后引蛇出洞,一网打尽?这里给大家支一招,一把揪出来~好的话别忘了点赞啊亲,绝对首发方法啊!
Mrxn分享-www.mrxn.net分享-硕思闪客精灵专业版7.4 Build 5320版破解 破解软件
2015-10-26更新 *由于版权原因,该软件已经下线,请大家支持正版。
其公司律师找到我了。。。各位对不住了
Mrxn分享-mrxn.net分享-硕思闪客精灵专业版7.4 Build 5320版破解
这个神奇的威力我就不多说了.
可以把swf里面的东西提取出来,还原,然后自己进行修改,等操作.很强大.但是收费的.一套接近300大洋.
这里给大家分享,希望大家低调是使用.
不注册,试用30天结束后就不能导出swf的文件素材了.就等于没多大用了.
安装完最新版的硕思闪客精灵专业版7.4 Build 5320后, 再把本破解补丁替换到相应的文件夹里面后,就不会提示注册了.
下载地址:点击免评论下载
百度网盘备份下载:
[hide] http://pan.baidu.com/s/1kThANIZ
链接:http://pan.baidu.com/s/1sj4zn8T [/hide]
密码:tbcv
emlog教程--为网页添加动态背景 (背景轮播) emlog
以前文章 最近发现一个插件所以重新更新下本文
插件名称: jquery.backstretch.js
下面是 示例代码:
设置网页背景:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>全屏背景</title> <script src="http://api.asilu.com/cdn/jquery.js,jquery.backstretch.min.js" type="text/javascript"></script> </head> <body> <script type="text/javascript"> $.backstretch('http://api.asilu.com/cdn/img/bg/444.jpg'); </script> </body> </html>多张张图片切换:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>全屏背景切换</title> <script src="http://api.asilu.com/cdn/jquery.js,jquery.backstretch.min.js" type="text/javascript"></script> </head> <body> <script type="text/javascript"> $.backstretch([ 'http://api.asilu.com/cdn/img/bg/444.jpg', 'http://api.asilu.com/cdn/img/bg/445.jpg', 'http://api.asilu.com/cdn/img/bg/446.jpg', 'http://api.asilu.com/cdn/img/bg/447.jpg', 'http://api.asilu.com/cdn/img/bg/448.jpg' ], { fade : 1000, // 动画时长 duration : 2000 // 切换延时 }); </script> </body> </html>该代码实现了, 背景图片的切换,带有切换效果的
第一个版本 切换效果用到了
jQuery
的动画,这个版本果断放弃 不需要 jQuery
切换动画由CSS
设置具体代码如下
CSS 样式
JS 代码
HTML 就一个
div#bg
简单实用
<meta http-equiv="Content-Type"content="text/html; charset=UTF-8"/> <style> div#bg { position: fixed; top: 0; left: 0; height: 100%; width: 100%; z-index: -10; background-position: center 0; background-repeat: no-repeat; background-attachment: fixed; background-size: cover; -webkit-background-size: cover; -o-background-size: cover; zoom: 1; opacity:1; transition: opacity 1s linear; -moz-transition: opacity 1s linear; -webkit-transition: opacity 1s linear; -o-transition: opacity 1s linear; } </style> <h1><a href="http://gouji.org/?post=317">代码出处</a></h1> <div id="bg"></div> <script> // 定义图片路径 {num} 为 可变的图片序号 var bgImgUrl = 'http://api.asilu.com/cdn/img/bg/{num}.jpg', bgNum, bgImgArr = [], bgDiv = document.getElementById("bg"); // 组合数组 此处 200 为 图开始序号 结束 210 for (var i=200; i <= 210; i++){ bgImgArr.push(bgImgUrl.replace('{num}', i)); } setBGimg(); function setBGimg(d){ if(!bgNum || bgNum > bgImgArr.length) bgNum = 0; bgDiv.style.opacity = .001; setTimeout(function(){ bgDiv.style.backgroundImage = 'url('+ bgImgArr[bgNum] +')'; bgDiv.style.opacity = 1; }, 1000); bgNum++; if(typeof d == 'undefined') setInterval(function(){setBGimg(true);}, 6000); // 上一行的 6000 是背景图片自动切换时间(单位 毫秒) } </script>原文为简爱博客,地址:http://www.gouji.org/?post=317
想装逼?提升逼格?自慰?戳进来-Mrxn教你让文章浏览数随机增加 emlog
如题:想装逼?提升逼格?自慰?戳进来-Mrxn教你让文章浏览数随机增加
之前在论坛看过这种帖子,还有人求助...
看了一下各位给出的答案就是夹固定的数量.我想这么装逼不是很爽,不舒服呀.别人一看就知道了.你每次刷新网页增加的都是一样的.-_-|
今天我看自己也前的文章的时候发现了这篇文章:让emlog侧边栏显示彩色标签,随机显示标签,数量多少有你控制
于是就想到了这个.rand()php随机函数 于是就有了如下的装逼姿势:
/** * 增加阅读次数 * * @param int $blogId */ function updateViewCount($blogId) { $vnum=rand(1,7); $this->db->query("UPDATE " . DB_PREFIX . "blog SET views=views+'$vnum' WHERE gid=$blogId"); }友情提示:装逼有风险.请自行买保险!
这样修改了 include/mode/log_model.php 的第 302行 后,装逼姿势就优雅多了,有木有,rand(1,7)可以自己随便修改的.
总地来说.就装逼,然并卵!自慰吧.骚年! Mrxn writed 2015/07/20
Emlog教程:实现Tag汇总单独页面的方法 emlog
这个Tag汇总页面的方法并不难,先在你的根目录下新建一个PHP文件(比如就叫tags.php),然后把如下代码放到文件中就好了:
<?php //tag汇总页面 require_once 'init.php'; define('TEMPLATE_PATH', TPLS_PATH.Option::get('nonce_templet').'/'); $CACHE = Cache::getInstance(); $options_cache = $CACHE->readCache('options'); extract($options_cache); $navibar = unserialize($navibar); $curpage = CURPAGE_HOME; $site_title = '标签 - '.$blogname; $site_key = '关键词'; $site_description = '描述'; include View::getView('header'); ?> <div id="tags"> <?php global $CACHE;$tag_cache = $CACHE->readCache('tags');?> <h2><a href="<?php echo $log_url; ?>"><?php echo $log_title; ?></a></h2> <?php foreach($tag_cache as $value): ?> <span style="font-size:<?php echo $value['fontsize']; ?>pt; line-height:30px;"><a href="<?php echo Url::tag($value['tagurl']); ?>" title="<?php echo $value['usenum']; ?> 篇日志"><?php echo $value['tagname']; ?></a></span><?php endforeach; ?> </div> </body> <style type="text/css"> #tags{max-width:1000px; margin:auto;} </style> </html>这里必须给大家说清楚,如果你只是把这个代码贴上去可能并不一定能正常显示,还需要配置你的css,建议你也参考模板的css写上去,这样可能比较美观。 保存到PHP文件之后,你通过http://你的域名/tags.php就能访问了.
腾讯视频解析接口 技术文章
http://vv.video.qq.com/geturl?vid=v00149uf4ir&otype=json
高清视频(分段视频)
1080P-fhd,超清-shd,高清-hd,标清-sd
http://vv.video.qq.com/getinfo?vids=v00149uf4ir&otype=json&charge=0&defaultfmt=shd
其他可用解析
vv.video.qq.com/getinfo.*
tt.video.qq.com/getinfo.*
ice.video.qq.com/getinfo.*
tjsa.video.qq.com/getinfo.*
a10.video.qq.com/getinfo.*
xyy.video.qq.com/getinfo.*
vcp.video.qq.com/getinfo.*
vsh.video.qq.com/getinfo.*
vbj.video.qq.com/getinfo.*
bobo.video.qq.com/getinfo.*
flvs.video.qq.com/getinfo.*
rcgi.video.qq.com/report.*
Emlog显示评论者IP地理信息的三种方法-三种方法-重要的说两遍 emlog
emlog系统存储了评论人的IP地址,有的时候,需要显示该IP的真实地理地址,可以通过以下两种方法获得。
一、本地获得IP地理地址。通过本地查找本地IP数据库(纯真版)来获得,IP数据库可以到http://www.cz88.net/下载安装后,在安装目录里把qqwry.dat文件提取出来,放到emlog根目录即可。 (保证与index.php同在一个目录中)
在module.php中添加以下代码:
<?php //获取IP地理地址 $data = '254.254.254.254'; class IpLocation { var $fp; var $firstip; var $lastip; var $totalip; function getlong() { $result = unpack('Vlong', fread($this->fp, 4)); return $result['long']; } function getlong3() { $result = unpack('Vlong', fread($this->fp, 3).chr(0)); return $result['long']; } function packip($ip) { return pack('N', intval(ip2long($ip))); } function getstring($data = "") { $char = fread($this->fp, 1); while (ord($char) > 0) { $data .= $char; $char = fread($this->fp, 1); } return $data; } function getarea() { $byte = fread($this->fp, 1); switch (ord($byte)) { case 0: $area = ""; break; case 1: case 2: fseek($this->fp, $this->getlong3()); $area = $this->getstring(); break; default: $area = $this->getstring($byte); break; } return $area; } function getlocation($ip) { if (!$this->fp) return null; $location['ip'] = gethostbyname($ip); $ip = $this->packip($location['ip']); $l = 0; $u = $this->totalip; $findip = $this->lastip; while ($l <= $u) { $i = floor(($l + $u) / 2); fseek($this->fp, $this->firstip + $i * 7); $beginip = strrev(fread($this->fp, 4)); if ($ip < $beginip) { $u = $i - 1; } else { fseek($this->fp, $this->getlong3()); $endip = strrev(fread($this->fp, 4)); if ($ip > $endip) { $l = $i + 1; } else { $findip = $this->firstip + $i * 7; break; } } } fseek($this->fp, $findip); $location['beginip'] = long2ip($this->getlong()); $offset = $this->getlong3(); fseek($this->fp, $offset); $location['endip'] = long2ip($this->getlong()); $byte = fread($this->fp, 1); switch (ord($byte)) { case 1: $countryOffset = $this->getlong3(); fseek($this->fp, $countryOffset); $byte = fread($this->fp, 1); switch (ord($byte)) { case 2: fseek($this->fp, $this->getlong3()); $location['country'] = $this->getstring(); fseek($this->fp, $countryOffset + 4); $location['area'] = $this->getarea(); break; default: $location['country'] = $this->getstring($byte); $location['area'] = $this->getarea(); break; } break; case 2: fseek($this->fp, $this->getlong3()); $location['country'] = $this->getstring(); fseek($this->fp, $offset + 8); $location['area'] = $this->getarea(); break; default: $location['country'] = $this->getstring($byte); $location['area'] = $this->getarea(); break; } if ($location['country'] == " CZNET") { $location['country'] = "未知"; } if ($location['area'] == " CZNET") { $location['area'] = ""; } return $location; } function IpLocation($filename = "qqwry.dat") { $this->fp = 0; if (($this->fp = @fopen($filename, 'rb')) !== false) { $this->firstip = $this->getlong(); $this->lastip = $this->getlong(); $this->totalip = ($this->lastip - $this->firstip) / 7; register_shutdown_function(array(&$this, '_IpLocation')); } } function _IpLocation() { if ($this->fp) { fclose($this->fp); } $this->fp = 0; } } function getaddress($myip){ $ipOrDomain=$myip; $iplocation = new IpLocation(); $location = $iplocation->getlocation($ipOrDomain); $address=mb_convert_encoding($location['country'].$location['area'], "utf-8", "gbk"); return $address; } ?>
然后在需要显示的地方插入:
<?php echo getaddress($comment['ip']);?>
即可。
二、通过远程网站相关接口实现。
在module.php中添加以下代码:
<?php //blog:获取IP地址所在地,提取新浪IP接口 function getaddress($ip) { //调用sina查询接口 $str = file_get_contents("http://counter.sina.com.cn/ip?ip=".$ip); //转换字符集 $str = mb_convert_encoding($str,"UTF-8","GBK"); //匹配结果 preg_match_all('/[\x{4e00}-\x{9fa5}]+/u',$str,$get); //将数组转换成字符串 $add = implode('-',$get[0]); //返回结果 return $add; } ?>
然后在需要显示的地方插入:
<?php echo getaddress($comment['ip']);?>
即可。
图片显示方式:
<a title= <?php echo getaddress($comment['ip']);?>> <img src="./content/templates/default/images/ip.png"></a>
其中ip.png这个图标会显示在评论人的后面,图片自找,鼠标放上去会显示地理地址。
另一种方法显示IP:
1.首先在当前模板的module.php最后添加如下代码:
<?php function convertip($ip) { $dat_path = EMLOG_ROOT.'/content/templates/你的模板文件/QQWry.Dat'; //*数据库路径*// if(!$fd = @fopen($dat_path, 'rb')){ return 'IP数据库文件不存在或者禁止访问或者已经被删除!'; } $ip = explode('.', $ip); $ipNum = $ip[0] * 16777216 + $ip[1] * 65536 + $ip[2] * 256 + $ip[3]; $DataBegin = fread($fd, 4); $DataEnd = fread($fd, 4); $ipbegin = implode('', unpack('L', $DataBegin)); if($ipbegin < 0) $ipbegin += pow(2, 32); $ipend = implode('', unpack('L', $DataEnd)); if($ipend < 0) $ipend += pow(2, 32); $ipAllNum = ($ipend - $ipbegin) / 7 + 1; $BeginNum = 0; $EndNum = $ipAllNum; while($ip1num>$ipNum || $ip2num<$ipNum) { $Middle= intval(($EndNum + $BeginNum) / 2); fseek($fd, $ipbegin + 7 * $Middle); $ipData1 = fread($fd, 4); if(strlen($ipData1) < 4) { fclose($fd); return '系统出错!'; } $ip1num = implode('', unpack('L', $ipData1)); if($ip1num < 0) $ip1num += pow(2, 32); if($ip1num > $ipNum) { $EndNum = $Middle; continue; } $DataSeek = fread($fd, 3); if(strlen($DataSeek) < 3) { fclose($fd); return '系统出错!'; } $DataSeek = implode('', unpack('L', $DataSeek.chr(0))); fseek($fd, $DataSeek); $ipData2 = fread($fd, 4); if(strlen($ipData2) < 4) { fclose($fd); return '系统出错!'; } $ip2num = implode('', unpack('L', $ipData2)); if($ip2num < 0) $ip2num += pow(2, 32); if($ip2num < $ipNum) { if($Middle == $BeginNum) { fclose($fd); return '未知'; } $BeginNum = $Middle; } } $ipFlag = fread($fd, 1); if($ipFlag == chr(1)) { $ipSeek = fread($fd, 3); if(strlen($ipSeek) < 3) { fclose($fd); return '系统出错!'; } $ipSeek = implode('', unpack('L', $ipSeek.chr(0))); fseek($fd, $ipSeek); $ipFlag = fread($fd, 1); } if($ipFlag == chr(2)) { $AddrSeek = fread($fd, 3); if(strlen($AddrSeek) < 3) { fclose($fd); return '系统出错!'; } $ipFlag = fread($fd, 1); if($ipFlag == chr(2)) { $AddrSeek2 = fread($fd, 3); if(strlen($AddrSeek2) < 3) { fclose($fd); return '系统出错!'; } $AddrSeek2 = implode('', unpack('L', $AddrSeek2.chr(0))); fseek($fd, $AddrSeek2); } else { fseek($fd, -1, SEEK_CUR); } while(($char = fread($fd, 1)) != chr(0)) $ipAddr2 .= $char; $AddrSeek = implode('', unpack('L', $AddrSeek.chr(0))); fseek($fd, $AddrSeek); while(($char = fread($fd, 1)) != chr(0)) $ipAddr1 .= $char; } else { fseek($fd, -1, SEEK_CUR); while(($char = fread($fd, 1)) != chr(0)) $ipAddr1 .= $char; $ipFlag = fread($fd, 1); if($ipFlag == chr(2)) { $AddrSeek2 = fread($fd, 3); if(strlen($AddrSeek2) < 3) { fclose($fd); return '系统出错!'; } $AddrSeek2 = implode('', unpack('L', $AddrSeek2.chr(0))); fseek($fd, $AddrSeek2); } else { fseek($fd, -1, SEEK_CUR); } while(($char = fread($fd, 1)) != chr(0)){ $ipAddr2 .= $char; } } fclose($fd); if(preg_match('/http/i', $ipAddr2)) { $ipAddr2 = ''; } $ipaddr = "$ipAddr1 $ipAddr2"; $ipaddr = preg_replace('/CZ88.Net/is', '', $ipaddr); $ipaddr = preg_replace('/^s*/is', '', $ipaddr); $ipaddr = preg_replace('/s*$/is', '', $ipaddr); if(preg_match('/http/i', $ipaddr) || $ipaddr == '') { $ipaddr = '未知'; } $ipaddr = iconv('gbk', 'utf-8//IGNORE', $ipaddr); if( $ipaddr != ' ' ) return $ipaddr; else $ipaddr = '评论者来自火星,无法或者其所在地!'; return $ipaddr; } ?>
然后再在评论中添加要你要显示位置。原作者未给出图片提示的代码。
纯文字显示代码:
<?php echo convertip($comment['ip']); ?>
图片title显示代码:
<img src="<?php echo BLOG_URL; ?>XXX/ip.png" alt="<?php echo convertip($comment['ip']); ?>" title="<?php echo convertip($comment['ip']); ?>" width="16" height="16" class="useragent" data-bd-imgshare-binded="1">
上面代码中的XXX/ip.png是图片路径
其中使用到的纯真数据库以及图片自己下载,本博主暂不提供。
VMWare桥接之 Kali Linux DHCP自动获取IP失败的解决办法 技术文章
如图所示,在VMWare虚拟机安装Kali之后出现不能自动获取到ip的情况.
首先是ping了一下出现如下的错误:
root@kali:~# ping 192.168.1.1 connect: Network is unreachable试了一下重新启动网络服务:
root@kali:~# service networking restart [....] Running /etc/init.d/networking restart is deprecated because it [warnot re-enable some interfaces ... (warning). [....] Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/00:50:56:27:52:c8 Sending on LPF/eth0/00:50:56:27:52:c8 Sending on Socket/fallback DHCPRELEASE on eth0 to 192.168.1.1 port 67 send_packet: Network is unreachable send_packet: please consult README file regarding broadcast address. Reloading /etc/samba/smb.conf: smbd only. done.然后是检查DNS:
root@kali:~# cat /etc/resolv.conf nameserver 192.168.1.1192.168.1.1在里面, DNS设置没有问题
再检查网卡:
root@kali:~# cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet dhcp网卡自动激活, 并配置dhcp获取IP方式,这没有错呀.
最后就只能检查VMWare 桥接设置了:
由于我装有Virual Box & VMWare Workstation, 所以有多个虚拟网卡, 桥接为自动模式, 心想是不是自动桥接到不能连外网的Virtual Box的虚拟网卡了? -_- | (貌似是的!)
果断选成实际外网网卡, 重启Kali Linux networking服务, 问题解决.
希望可以帮到有同样困扰的朋友.欢迎转载,请注明出处.Mrxn's Blog https://mrxn.net 谢谢
煎饼侠-枪版百度云盘分享 影音分享
都知道,昨天刚刚上映,所以呢,暂时只有枪版,个人看了觉得还不错,所以就给大家分享分享一下.
不费话了.
下载地址:链接: http://pan.baidu.com/s/1gd4KfKn 密码: ikxq (7月28日更新)
身份证号码验证算法 (PHP JavaScript 代码) 技术文章
18 位身份证号码结构
1-2 位省、自治区、直辖市代码
3-4 位地级市、盟、自治州代码
5-6 位县、县级市、区代码
7-14 位出生年月日,比如19670401代表1967年4月1日
15-17 位为顺序号,其中17位 为性别 男为单数,女为双数
18 位为校验码,0-9和X。作为尾号的校验码 (计算方法下面有)
举例:
130503 19070101 0013 这个身份证号的含义: 13为河北,05为邢台,03为桥西区,出生日期为1967年4月1日,顺序号为001 (1 性别 男),2为校验码。
15 位的身份证相比 18 出生年月 中的 年 为两位, 且缺少 最后一位 校验码
身份证校验码的计算方法
计算最后一位校验码的具体步骤
- 17 号码 加权求和 注: 1-17位 加权因子分别为 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2
- 上一步所求的和 取模 (下面的 代码 用的是 取余)
- 上一步的 结果 0 - 10 分别对应 的 校验码 为 1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2
判断身份证号码是否正确的 函数
下面是 判断身份证号码是否正确的 函数封装 分别为 PHP JS
传入 身份证号码 返回校验结果 true
false
/* PHP 验证 身份证号 */
function ckeckIdCard($id){
static $codeArr = array(1,0,'X',9,8,7,6,5,4,3,2),
$keyArr = array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2);
$id = strtoupper($id);
if(!preg_match('/^[\d]{17}[\dX]{1}$/', $id)) return false;
$num = 0;
for($i=0; $i<17; $i++){
$num += $id[$i] * $keyArr[$i];
}
$key = $num % 11;
return substr($id, -1) == $codeArr[$key];
}
/* JS 验证 身份证号 */
function ckeckIdCard($id){
var $codeArr = [1,0,'X',9,8,7,6,5,4,3,2],
$keyArr = [7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];
$id = $id.toUpperCase();
if(!/^[\d]{17}[\dX]{1}$/.test($id)) return false;
$num = 0;
for($i=0; $i<17; $i++){
$num += $id[$i] * $keyArr[$i];
}
$key = $num % 11;
return $id.slice(-1) == $codeArr[$key];
}
原文出自简爱博客 http://www.gouji.org/?post=378 觉得不错 转载.如有不便,请联系管理员.