摘要: #只返回IP地址 curl whatismyip.akamai.com wget -qO - ifconfig.co curl icanhazip.com dig +short myip.opendns.com @resolver1.opendns.com curl ident.me curl v4 阅读全文
posted @ 2022-07-19 11:21 18cm的烦恼 阅读(210) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2024-05-23 07:54 18cm的烦恼 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2024-05-22 07:57 18cm的烦恼 阅读(1) 评论(0) 推荐(0) 编辑
摘要: import os import requests from bs4 import BeautifulSoup from urllib.parse import urljoin # 目标URL url = "https://update.cs2c.com.cn/NS/V10/V10SP3/os/ad 阅读全文
posted @ 2024-05-21 21:19 18cm的烦恼 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1. 安全相关的关键字 认证失败 regex复制代码Failed\s+password Invalid\s+user authentication\s+failure Failed\s+publickey Failed\s+keyboard-interactive/pam 用户相关 regex复制代 阅读全文
posted @ 2024-05-19 23:22 18cm的烦恼 阅读(5) 评论(0) 推荐(0) 编辑
摘要: metric 配置网卡的默认metric 给网卡配置默认的metric值,当添加路由的时候如果没有手动指定 metric 值,则使用默认值,默认值为 -1 ,表示自动配置路由的metric值。metric 数值越大,路由的优先级越低。 没有 NetworkManager 的情况下设置 修改位于/et 阅读全文
posted @ 2023-03-09 08:36 18cm的烦恼 阅读(1123) 评论(0) 推荐(1) 编辑
摘要: #!/bin/bash #1. 判断参数个数 if [ $# -lt 1 ] then echo Not Enough Arguement! exit; fi #2. 遍历集群所有机器 rpm -q rsync &>/dev/null || yum install -y rsync for host 阅读全文
posted @ 2023-02-28 17:13 18cm的烦恼 阅读(15) 评论(0) 推荐(0) 编辑
摘要: /*给图片加阴影和圆角,使其更美观*/ img{ filter: drop-shadow(3px 3px 2px gray); border-radius: 5px; } 阅读全文
posted @ 2023-02-28 10:50 18cm的烦恼 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 故障模拟 [root@rhel9-1-9 ~]# chattr +i /etc/ [root@rhel9-1-9 ~]# lsattr -d /etc/ i /etc/ [root@rhel9-1-9 ~]# echo 123 | passwd root Changing password for 阅读全文
posted @ 2023-02-20 21:50 18cm的烦恼 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 图片来源于下方B站视频 阅读全文
posted @ 2023-02-05 19:38 18cm的烦恼 阅读(35) 评论(0) 推荐(0) 编辑
摘要: https://zhuanlan.zhihu.com/p/302446598 原文中图标格式地址失效,用下面的这个可以 https://convertio.co/zh/ico-converter/ 最后效果是这样的 下面是icon格式的图片,可以直接下载 阅读全文
posted @ 2023-02-05 17:26 18cm的烦恼 阅读(26) 评论(0) 推荐(0) 编辑