查询本地监听端口对应应用

powershell Get-NetTCPConnection -State Listen | Select-Object -Property LocalAddress, LocalPort, @{Name="ProcessId";Expression={$_.OwningProcess}},

trx trx Published on 2024-08-30

grafana重置密码

# 重置密码 grafana-cli admin reset-admin-password new_password # 重启服务 systemctl restart grafana-server

trx trx Published on 2024-08-29

扫描webshell

#!/bin/bash EXCLUDE_DIRS=( "/proc" "/sys" "/dev" "/run" "/boot" "/var/log" "/var/cache" "/var/run" ) # 定义常见的Webshell后

trx trx Published on 2024-08-27

openssl下载网站证书

echo -n | openssl s_client -connect IP:PORT | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > certificate.crt

trx trx Published on 2024-08-26

tomcat9隐藏报错界面版本号

tomcat隐藏版本,在server.xml中找到host元素,在里面添加<Valve className="org.apache.catalina.valves.ErrorReportValve" showReport="false" showServerInfo="false" />,重启tom

trx trx Published on 2024-08-20

123

解压文件至指定目录.sh redis_install.sh nginx_insall_1.sh install.shrestic-backup.sh

trx trx Published on 2024-08-14

Nginx状态码

错误代码 描述 排查思路

trx trx Published on 2024-08-12
trx trx Published on 2024-08-12

nginx配置禁用指定接口

# 拒绝所有IP访问此接口 location /aaa/bbb { if ($query_string ~* ".*=.*&.*=.*") return 403; } proxy_pass http://xx.xx.xx.xx/aaa/bbb } # 允许

trx trx Published on 2024-08-12

nexus3密码重置

# 停止nexus net stop nexus # 进入OrientDB控制台 cd 安装目录 cd /apply/nexus3/nexus-3.42.0-01/lib/support/ java -jar ./nexus-orient-console.jar # 连接数据库 connect p

trx trx Published on 2024-08-12
Previous Next