10 2021 档案
摘要:第一周 1、按系列罗列Linux的发行版,并描述不同发行版之间的联系与区别。 Debian Redhat issue 2、安装Centos7.9和ubuntu操作系统,创建一个自己名字的用户名,并可以正常登录,将主要步骤截图。 3、配置环境变量,实现执行history的时候可以看到执行命令的时间。
阅读全文
摘要:netstat -anpt发现一个奇怪的连接,但是ps和top命令确查不到此进程,这很可能是因为因为ps和top命令被替换了导致这些进程被过滤掉了。因此我这里有个脚本专门查找出来隐藏的进程 #!/usr/bin/env python # -*- coding: utf-8 -*- import os
阅读全文
摘要:最近使用wireshark抓包icmp协议,过滤的命令如下所示: ip.addr eq 192.168.20.54 and ip.addr eq 192.168.50.131 and (icmp) 如果不加上面的and (icmp),那么两台电脑之间所有的包都会被捕获到 tcpdump使用 tcpd
阅读全文
摘要: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(
阅读全文
摘要:#include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include
阅读全文

浙公网安备 33010602011771号