摘要: netstat -anpt发现一个奇怪的连接,但是ps和top命令确查不到此进程,这很可能是因为因为ps和top命令被替换了导致这些进程被过滤掉了。因此我这里有个脚本专门查找出来隐藏的进程 #!/usr/bin/env python # -*- coding: utf-8 -*- import os 阅读全文
posted @ 2021-10-16 21:42 资深测试学习机 阅读(1003) 评论(0) 推荐(0)
摘要: 最近使用wireshark抓包icmp协议,过滤的命令如下所示: ip.addr eq 192.168.20.54 and ip.addr eq 192.168.50.131 and (icmp) 如果不加上面的and (icmp),那么两台电脑之间所有的包都会被捕获到 tcpdump使用 tcpd 阅读全文
posted @ 2021-10-16 21:38 资深测试学习机 阅读(29) 评论(0) 推荐(0)
摘要: 1、目前工作上有一堆的ip地址,ip是ok的,但是需要找出来不在这里面的其他ip import os a = list() with open('ip.txt','r') as f: #print(f.readlines()) for line in f.readlines(): a.append( 阅读全文
posted @ 2021-10-16 21:31 资深测试学习机 阅读(42) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include 阅读全文
posted @ 2021-10-16 21:25 资深测试学习机 阅读(365) 评论(0) 推荐(0)