问题:有时用burpsuite/fiddler做中间人测试,但wireshark抓不到本机的数据包,无法获取假证书信息,要怎样才能抓到和burpsuite/fiddler交互的数据包呢?解决方法:1.在linux下用wireshark抓包有个专门的接口“lo”,选择它就表示抓“127.0.0.1”的...
分类:
其他好文 时间:
2014-11-08 13:31:51
阅读次数:
300
// linklist.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include using namespace std;struct student{ lo...
分类:
其他好文 时间:
2014-11-08 02:01:48
阅读次数:
230
今天开发部的同事在提交.so后缀文件时候,一直接提示报错。后来才知道原来是配置文件出了问题,把so文件的提交给屏蔽掉了。处理方法如下:cd/root/.subversion;vimconfig文件;找到global-ignores字样:#global-ignores=*.o*.lo*.la*.al.libs*.so*.so.[0-9]**.a*.pyc*.pyo#*.r..
分类:
其他好文 时间:
2014-11-07 15:01:38
阅读次数:
112
索引建立时 1.对原有索引文件进行建立,是可以访问索引文件中的数据的 2.建立新索引文件,必须等建立完毕后,才可以访问,新建立的文件如果没有建立完是不可以被访问的如果想建立200w的数据的索引又想立即查看的话,先建立1w,建好之后再去建立199w,这样做!新索引文件建立时:[webuser@lo.....
分类:
Web程序 时间:
2014-11-07 11:06:37
阅读次数:
558
昨天我练习了用CSS(即层叠样式表Cascading Stylesheet) Selector来定位(locate)页面上的元素(Elements)。Selenium官网的Document里极力推荐使用CSS locator,而不是XPath来定位元素,原因是CSS locator比XPath lo...
分类:
Web程序 时间:
2014-11-05 19:19:41
阅读次数:
275
设定IP
$sudovi/etc/network/interfaces
autolo
iface lo inet loopback
添加以下内容
autoeth0
iface eth0inet static
address192.168.0.221
netmask255.255.255.0
gateway192.168.0.1
保存,并关闭gedit。
这样,IP并没有立...
分类:
其他好文 时间:
2014-11-05 14:47:59
阅读次数:
140
即时通信功能已经开发完毕,现在还木有时间整理,打算后期抽时间整理后发一下源码跟教程。现在记录一下遇到的问题,首先是获取离线消息。
OfflineMessageManager是官方获取离线消息的,但是直接获取,是获取不到任何消息的,需要先设置离线,然后获取后,再上线。功能代码如下。
1、离线
// 初始化
public XMPPConnection init(LoginConfig lo...
分类:
系统相关 时间:
2014-11-05 13:07:21
阅读次数:
322
1. 配置静态ip地址$sudo vi /etc/network/interfaces原有内容只有如下两行:auto loiface lo inet loopback向末尾追加以下内容:auto eth0iface eth0 inet staticaddress 192.168.0.33gatewa...
分类:
系统相关 时间:
2014-11-04 16:41:04
阅读次数:
192
java.io.NotSerializableException: org.apache.log4j.Loggerpublic class HbaseCommon implements ConstantFields, Serializable { private static final lo...
分类:
其他好文 时间:
2014-11-04 12:37:35
阅读次数:
156
修改 /etc/network/interfaces文件 添加以下内容
# The loopback network interface
auto lo eth0
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
...
分类:
系统相关 时间:
2014-11-04 11:11:59
阅读次数:
195