07 2022 档案
摘要:查找Linux进程占用内存 查找Linux某些服务进程占用内存: 可通过服务名找到对应的进程PID,再根据PID查找内存占用 方法1:top 方法2:ps -aux | sort -k4nr | head -10 # ps -aux | sort -k4nr | head -10 polkitd 2
阅读全文
摘要:shadow破解【John the Ripper密码破解者 】 此篇文章是针对弱密码进行,排查处理。思路是对/etc/shadow进行反密码破解,看是否符合密码强调需求。 下载 官网源码下载地址: wget https://www.openwall.com/john/k/john-1.9.0.tar
阅读全文
摘要:Linux终端小工具 linux终端花里胡哨的玩法 1. lolcat 让字体变得五颜六色,华而不实 2. aewan Aewan提供两个工具:一个是aewan编辑器用于编辑ascii文字,一个是aecat浏览器工具用于显示aewan创建的ascii文字。 3. cowsay 把字体内容输出到图形上
阅读全文
摘要:YUM源加载报错 加载yum源时加载失败 报错信息 #yum repolist Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered to Red H
阅读全文
摘要:记Python编译报错--unexpected indent 报错信息 #python -m py_compile __init__.py Sorry: IndentationError: unexpected indent (__init__.py, line 89) 原因 在修改python文件
阅读全文
摘要:k8s--must specify a peer 在创建k8s的networkpolicy中报错如下 $ kubectl apply -f policy.yaml The NetworkPolicy "allow-port-from-namespace" is invalid: spec.ingre
阅读全文
摘要:Python画一个多啦 使用Python画一个多啦 代码如下: # !/usr/bin/env python3 # -*- coding: utf-8 -*- # @Author: wei # @Date: 2022-07-03 12:47:33 # @Env: python 3.8.10 from
阅读全文