linux信令追踪指令,使用tcpdump抓取sip信令

tcpdump -i wlan0 -s 0 -w 1.cap &

tcpdump -i rmnet0 -s 0 -w test.cap &

第一个是wifi的  第二格是 移动网络的

服务器端信令抓包

1. Download and

installWireshark

on your windows computer.

​2. Download and

installWinSCP

on your windows computer.

​3. Use putty to

login to your linux server.

​4Once logged in use the following command to

start the SIP capture:

​tcpdump -i eth1 -t -n -s 0 port 5060 -vvv

-w /home/capture_file_name.cap

​-i = interface you want to capture on,

eth0, eth1, eth2, etc, you will want to do this on your public

interface most likely.

-t =

time​

​-n = Do not convert ip addresses to names,

prevents dns lookups.

​-s = How many bytes of data to grab from

each packet, zero means use the required length to catch whole

packets.

​port = What port to listen to, 5060 is the

default port for SIP.

​-vvv = Even more verbose output, this will

give you as many details as possible.

​-w = Write to a raw file to be parsed

later.

​5. Now that we are capturing packets let it

run for a while at least 5 to 10 minutes to collect some data then

to stop the capture use CTRL Key + C.

​6. Once you stopped the capture login to

the server using WinSCP and go to the home directory. You will find

the capture file in there just copy that file to your windows

computer so you will be able to open it with Wireshark.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值