重要文件位置

Nginx

1
2
3
4
5
6
7
配置文件存放目录: /etc/nginx
主配置文件: /etc/nginx/conf/nginx.conf
管理脚本: /usr/lib64/systemd/system/nginx.service
模块: /usr/liib64/nginx/modules
应用程序: /usr/sbin/nginx
程序默认存放位置: /usr/share/nginx/html
日志默认存放位置: /var/log/nginx

Apache

1
2
3
4
5
配置文件: /etc/httpd/conf/http.conf
服务器根目录: /var/www/html
访问日志文件: /var/log/httpd/access_log
错误日志文件: /var/log/httpd/error_log
模块存放位置: /usr/lib/httpd/modules

SSH

1
2
3
4
5
6
7
8
9
10
11
12
13
日志位置:
# Redhat or Fedora Core:
/var/log/secure
# Mandrake, FreeBSD or OpenBSD:
/var/log/auth.log
# SuSE:
/var/log/messages
# Mac OS X (v10.4 or greater):
/private/var/log/asl.log
# Mac OS X (v10.3 or earlier):
/private/var/log/system.log
# Debian:
/var/log/auth.log

Windows中WSL的位置

1
C:\Users\[user]\AppData\Local\Packages\KaliLinux.54290C8133FEE_ey8k8hqnwqnmg\LocalState\rootfs

SSR 服务端/客户端

服务端:

1
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh && chmod +x ssr.sh && bash ssr.sh

客户端:

1
2
https://github.com/shadowsocksrr/shadowsocksr
https://github.com/shadowsocksrr/shadowsocksr-android

port-service

端口与对应服务及常见漏洞

阅读更多

正则表达式

正则表达式(Regular Expression,缩写为 regex 或者 regexp)是一组特殊文本,可以用来从文本中找出满足你想要的格式的部分。From learn regex the easy way

1
2
"the" => the fat cat sat on the mat.
the

表示使用正则表达式 “the”(第一行) 可以匹配到字符串 “the fat cat sat on the mat” 中的 “the”(第二行)

阅读更多