2015年5月28日

IOS多网卡抓包

摘要: linux下libpcap支持从多网卡抓包,设置为any即可在IOS或者mac上就无法通过次方法抓取所有网卡报文1.通过设置libevent事件回调,每个网卡注册读事件, fd通过 pd = pcap_open_live(device, snaplen, dopromisc, timeout, e... 阅读全文

posted @ 2015-05-28 18:40 偏爱省略号 阅读(389) 评论(0) 推荐(0) 编辑

编译IOS下 libpcap1.7.2

摘要: 1.修改build-libpcap.sh libpcap版本号2.执行脚本编译出现问题:2.发现configure过后,Makefile存在问题实际configure的-arch armv7s版本 不知为何出错。删除红框中部分make -j2 && make install通过!3.附上config... 阅读全文

posted @ 2015-05-28 18:28 偏爱省略号 阅读(529) 评论(0) 推荐(0) 编辑

echo shell commands as they are executed

摘要: http://stackoverflow.com/questions/2853803/in-a-shell-script-echo-shell-commands-as-they-are-executedset -x #echo on或者#!/bin/bash -x 阅读全文

posted @ 2015-05-28 11:09 偏爱省略号 阅读(152) 评论(0) 推荐(0) 编辑

导航