|
|
@@ -0,0 +1,4354 @@
|
|
|
+
|
|
|
+## :anger: 目录
|
|
|
+
|
|
|
+仅主要章节:
|
|
|
+
|
|
|
+- **[CLI 工具](#cli-tools-toc)**
|
|
|
+- **[GUI 工具](#gui-tools-toc)**
|
|
|
+- **[Web 工具](#web-tools-toc)**
|
|
|
+- **[系统/服务](#systemsservices-toc)**
|
|
|
+- **[网络](#networks-toc)**
|
|
|
+- **[容器/编排](#containersorchestration-toc)**
|
|
|
+- **[手册/教程/指南](#manualshowtostutorials-toc)**
|
|
|
+- **[精选列表](#inspiring-lists-toc)**
|
|
|
+- **[博客/播客/视频](#blogspodcastsvideos-toc)**
|
|
|
+- **[黑客/渗透测试](#hackingpenetration-testing-toc)**
|
|
|
+- **[每日知识与新闻](#your-daily-knowledge-and-news-toc)**
|
|
|
+- **[其他速查表](#other-cheat-sheets-toc)**
|
|
|
+- **[Shell 一行命令](#shell-one-liners-toc)**
|
|
|
+- **[Shell 技巧](#shell-tricks-toc)**
|
|
|
+- **[Shell 函数](#shell-functions-toc)**
|
|
|
+
|
|
|
+## :trident: The Book of Secret Knowledge(章节)
|
|
|
+
|
|
|
+#### CLI 工具 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### :black_small_square: Shell
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.gnu.org/software/bash/"><b>GNU Bash</b></a> - 一个兼容 sh 的 Shell,融合了 Korn shell 和 C shell 的实用特性。<br>
|
|
|
+ <a href="https://www.zsh.org/"><b>Zsh</b></a> - 一个为交互式使用而设计的 Shell,同时也是一种强大的脚本语言。<br>
|
|
|
+ <a href="https://tcl-lang.org/"><b>tclsh</b></a> - 一个非常强大的跨平台 Shell,适用于广泛的使用场景。<br>
|
|
|
+ <a href="https://github.com/Bash-it/bash-it"><b>bash-it</b></a> - 一个用于使用、开发和维护 Shell 脚本及自定义命令的框架。<br>
|
|
|
+ <a href="https://ohmyz.sh/"><b>Oh My ZSH!</b></a> - 管理 Zsh 配置的最佳框架。<br>
|
|
|
+ <a href="https://github.com/oh-my-fish/oh-my-fish"><b>Oh My Fish</b></a> - Fishshell 框架。<br>
|
|
|
+ <a href="https://github.com/starship/starship"><b>Starship</b></a> - 使用 Rust 编写的跨 Shell 提示符。<br>
|
|
|
+ <a href="https://github.com/romkatv/powerlevel10k"><b>powerlevel10k</b></a> - Powerlevel9k ZSH 主题的快速重实现。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: Shell 插件
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/rupa/z"><b>z</b></a> - 追踪你最常使用的目录,让你无需输入完整路径即可跳转。<br>
|
|
|
+ <a href="https://github.com/junegunn/fzf"><b>fzf</b></a> - 一个通用的命令行模糊查找器。<br>
|
|
|
+ <a href="https://github.com/zsh-users/zsh-autosuggestions"><b>zsh-autosuggestions</b></a> - 为 Zsh 提供类似 Fish 的自动建议。<br>
|
|
|
+ <a href="https://github.com/zsh-users/zsh-syntax-highlighting"><b>zsh-syntax-highlighting</b></a> - 为 Zsh 提供类似 Fish Shell 的语法高亮。<br>
|
|
|
+ <a href="https://github.com/unixorn/awesome-zsh-plugins"><b>Awesome ZSH Plugins</b></a> - ZSH 的框架、插件、主题和教程列表。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 管理器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://midnight-commander.org/"><b>Midnight Commander</b></a> - 一个可视化文件管理器,GNU 通用公共许可证授权。<br>
|
|
|
+ <a href="https://github.com/ranger/ranger"><b>ranger</b></a> - 一个受 VIM 启发的控制台文件管理器。<br>
|
|
|
+ <a href="https://github.com/jarun/nnn"><b>nnn</b></a> - 一个小巧、极速、功能丰富的文件管理器。<br>
|
|
|
+ <a href="https://www.gnu.org/software/screen/"><b>screen</b></a> - 一个全屏窗口管理器,可多路复用物理终端。<br>
|
|
|
+ <a href="https://github.com/tmux/tmux/wiki"><b>tmux</b></a> - 一个终端多路复用器,让你在一个终端中轻松切换多个程序。<br>
|
|
|
+ <a href="https://github.com/peikk0/tmux-cssh"><b>tmux-cssh</b></a> - 一个用于设置舒适易用的 tmux 会话功能的工具。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 文本编辑器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="http://ex-vi.sourceforge.net/"><b>vi</b></a> - Unix 上最常见的文本编辑器之一。<br>
|
|
|
+ <a href="https://www.vim.org/"><b>vim</b></a> - 一个高度可配置的文本编辑器。<br>
|
|
|
+ <a href="https://www.gnu.org/software/emacs/"><b>emacs</b></a> - 一个可扩展、可定制的自由文本编辑器,以及更多。<br>
|
|
|
+ <a href="https://github.com/zyedidia/micro"><b>micro</b></a> - 一个现代化、直观的终端文本编辑器。<br>
|
|
|
+ <a href="https://neovim.io/"><b>neovim</b></a> - 一个免费开源、功能强大、可扩展且实用的代码编辑器。<br>
|
|
|
+ <a href="https://www.spacemacs.org/"><b>spacemacs</b></a> - 社区驱动的 Emacs 发行版。<br>
|
|
|
+ <a href="https://spacevim.org/"><b>spacevim</b></a> - 社区驱动的 Vim 发行版。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 文件与目录
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/sharkdp/fd"><b>fd</b></a> - 一个简单、快速且用户友好的 find 替代品。<br>
|
|
|
+ <a href="https://dev.yorhel.nl/ncdu"><b>ncdu</b></a> - 一个易于使用、快速的磁盘使用分析器。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 网络
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.putty.org/"><b>PuTTY</b></a> - 一个 SSH 和 Telnet 客户端,最初由 Simon Tatham 开发。<br>
|
|
|
+ <a href="https://mosh.org/"><b>Mosh</b></a> - 一个 SSH 包装器,旨在使 SSH 会话在不稳定的连接上保持存活。<br>
|
|
|
+ <a href="https://eternalterminal.dev/"><b>Eternal Terminal</b></a> - 在 SSH 会话中启用鼠标滚动和 tmux 命令。<br>
|
|
|
+ <a href="https://nmap.org/"><b>nmap</b></a> - 一个免费开源的网络发现和安全审计工具。<br>
|
|
|
+ <a href="https://github.com/zmap/zmap"><b>zmap</b></a> - 一个快速的单包网络扫描器,专为互联网范围网络调查而设计。<br>
|
|
|
+ <a href="https://github.com/RustScan/RustScan"><b>Rust Scan</b></a> - 比 Nmap 更快地找到所有开放端口。<br>
|
|
|
+ <a href="https://github.com/robertdavidgraham/masscan"><b>masscan</b></a> - 最快的互联网端口扫描器,异步发送 SYN 数据包。<br>
|
|
|
+ <a href="https://github.com/gvb84/pbscan"><b>pbscan</b></a> - 一个更快更高效的无状态 SYN 扫描器和横幅抓取器。<br>
|
|
|
+ <a href="http://www.hping.org/"><b>hping</b></a> - 一个面向命令行的 TCP/IP 数据包组装/分析器。<br>
|
|
|
+ <a href="https://github.com/traviscross/mtr"><b>mtr</b></a> - 一个将 'traceroute' 和 'ping' 程序功能结合在一起的工具。<br>
|
|
|
+ <a href="https://github.com/mehrdadrad/mylg"><b>mylg</b></a> - 将不同网络探测功能结合在一个诊断工具中的实用程序。<br>
|
|
|
+ <a href="http://netcat.sourceforge.net/"><b>netcat</b></a> - 通过 TCP/IP 协议在网络连接上读写数据的实用程序。<br>
|
|
|
+ <a href="http://www.dest-unreach.org/socat/"><b>socat</b></a> - 在两个对象之间传输数据的实用程序。<br>
|
|
|
+ <a href="https://www.tcpdump.org/"><b>tcpdump</b></a> - 一个强大的命令行数据包分析器。<br>
|
|
|
+ <a href="https://www.wireshark.org/docs/man-pages/tshark.html"><b>tshark</b></a> - 一个允许我们转储和分析网络流量的工具(Wireshark CLI)。<br>
|
|
|
+ <a href="https://termshark.io/"><b>Termshark</b></a> - 一个简单的 tshark 终端用户界面。<br>
|
|
|
+ <a href="https://github.com/jpr5/ngrep"><b>ngrep</b></a> - 类似于 GNU grep 应用于网络层。<br>
|
|
|
+ <a href="http://netsniff-ng.org/"><b>netsniff-ng</b></a> - 你日常 Linux 网络管道的瑞士军刀。<br>
|
|
|
+ <a href="https://github.com/mechpen/sockdump"><b>sockdump</b></a> - 转储 Unix 域套接字流量。<br>
|
|
|
+ <a href="https://github.com/google/stenographer"><b>stenographer</b></a> - 一个数据包捕获解决方案,旨在快速将所有数据包缓冲到磁盘。<br>
|
|
|
+ <a href="https://github.com/sachaos/tcpterm"><b>tcpterm</b></a> - 在 TUI 中可视化数据包。<br>
|
|
|
+ <a href="https://github.com/tgraf/bmon"><b>bmon</b></a> - 一个监控和调试工具,用于捕获网络相关统计信息并可视化呈现。<br>
|
|
|
+ <a href="http://iptraf.seul.org/2.6/manual.html#installation"><b>iptraf-ng</b></a> - 一个基于控制台的 Linux 网络监控程序,显示 IP 流量信息。<br>
|
|
|
+ <a href="https://github.com/vergoh/vnstat"><b>vnstat</b></a> - 一个适用于 Linux 和 BSD 的网络流量监控器。<br>
|
|
|
+ <a href="https://iperf.fr/"><b>iPerf3</b></a> - 一个用于主动测量 IP 网络最大可达带宽的工具。<br>
|
|
|
+ <a href="https://github.com/Microsoft/Ethr"><b>ethr</b></a> - 一个用于 TCP、UDP 和 HTTP 的网络性能测量工具。<br>
|
|
|
+ <a href="https://github.com/jwbensley/Etherate"><b>Etherate</b></a> - 一个基于 Linux CLI 的以太网和 MPLS 流量测试工具。<br>
|
|
|
+ <a href="https://github.com/mpolden/echoip"><b>echoip</b></a> - 一个 IP 地址查询服务。<br>
|
|
|
+ <a href="https://github.com/troglobit/nemesis"><b>Nemesis</b></a> - 数据包操控 CLI 工具;制作和注入多种协议的数据包。<br>
|
|
|
+ <a href="https://github.com/packetfu/packetfu"><b>packetfu</b></a> - 一个 Ruby 的中级数据包操控库。<br>
|
|
|
+ <a href="https://scapy.net/"><b>Scapy</b></a> - 数据包操控库;伪造、发送、解码、捕获多种协议的数据包。<br>
|
|
|
+ <a href="https://github.com/SecureAuthCorp/impacket"><b>impacket</b></a> - 一组用于处理网络协议的 Python 类集合。<br>
|
|
|
+ <a href="https://github.com/arthepsy/ssh-audit"><b>ssh-audit</b></a> - 一个用于 SSH 服务器审计的工具。<br>
|
|
|
+ <a href="https://aria2.github.io/"><b>aria2</b></a> - 一个轻量级多协议多源命令行下载工具。<br>
|
|
|
+ <a href="https://github.com/x-way/iptables-tracer"><b>iptables-tracer</b></a> - 观察数据包在 iptables 链中的路径。<br>
|
|
|
+ <a href="https://github.com/proabiral/inception"><b>inception</b></a> - 一个高度可配置的工具,用于对任意数量的主机进行任意检查。<br>
|
|
|
+ <a href="https://mremoteng.org/"><b>mRemoteNG</b></a> - mRemote 的分支,强化版多标签 PuTTY!<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 网络(DNS)
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/farrokhi/dnsdiag"><b>dnsdiag</b></a> - DNS 诊断和性能测量工具。<br>
|
|
|
+ <a href="https://github.com/mschwager/fierce"><b>fierce</b></a> - 一个用于定位非连续 IP 空间的 DNS 侦察工具。<br>
|
|
|
+ <a href="https://github.com/subfinder/subfinder"><b>subfinder</b></a> - 一个子域名发现工具,发现网站的有效子域名。<br>
|
|
|
+ <a href="https://github.com/aboul3la/Sublist3r"><b>sublist3r</b></a> - 一个面向渗透测试人员的快速子域名枚举工具。<br>
|
|
|
+ <a href="https://github.com/OWASP/Amass"><b>amass</b></a> - 通过抓取数据源、爬取 Web 存档等方式获取子域名名称的工具。<br>
|
|
|
+ <a href="https://github.com/google/namebench"><b>namebench</b></a> - 基于你的浏览历史提供个性化 DNS 服务器推荐。<br>
|
|
|
+ <a href="https://github.com/blechschmidt/massdns"><b>massdns</b></a> - 一个用于批量查询和侦察的高性能 DNS 存根解析器。<br>
|
|
|
+ <a href="https://github.com/guelfoweb/knock"><b>knock</b></a> - 通过字典枚举目标域子域名的工具。<br>
|
|
|
+ <a href="https://github.com/DNS-OARC/dnsperf"><b>dnsperf</b></a> - DNS 性能测试工具。<br>
|
|
|
+ <a href="https://github.com/jedisct1/dnscrypt-proxy"><b>dnscrypt-proxy 2</b></a> - 一个灵活的 DNS 代理,支持加密 DNS 协议。<br>
|
|
|
+ <a href="https://github.com/dnsdb/dnsdbq"><b>dnsdbq</b></a> - 提供对被动 DNS 数据库系统访问的 API 客户端。<br>
|
|
|
+ <a href="https://github.com/looterz/grimd"><b>grimd</b></a> - 快速 DNS 代理,用于黑洞互联网广告和恶意软件服务器。<br>
|
|
|
+ <a href="https://github.com/elceef/dnstwist"><b>dnstwist</b></a> - 检测域名抢注、钓鱼攻击、欺诈和品牌冒充。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 网络(HTTP)
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://curl.haxx.se/"><b>curl</b></a> - 一个用于通过 URL 传输数据的命令行工具和库。<br>
|
|
|
+ <a href="https://gitlab.com/davidjpeacock/kurly"><b>kurly</b></a> - 广受欢迎的 curl 程序的替代品,用 Golang 编写。<br>
|
|
|
+ <a href="https://github.com/jakubroztocil/httpie"><b>HTTPie</b></a> - 一个用户友好的 HTTP 客户端。<br>
|
|
|
+ <a href="https://github.com/asciimoo/wuzz"><b>wuzz</b></a> - 一个交互式 CLI 工具,用于 HTTP 检查。<br>
|
|
|
+ <a href="https://github.com/summerwind/h2spec"><b>h2spec</b></a> - 一个 HTTP/2 实现的一致性测试工具。<br>
|
|
|
+ <a href="https://github.com/gildasio/h2t"><b>h2t</b></a> - 一个帮助系统管理员加固网站的简单工具。<br>
|
|
|
+ <a href="https://github.com/trimstray/htrace.sh"><b>htrace.sh</b></a> - 一个用于 HTTP/HTTPS 故障排查和分析的简单瑞士军刀。<br>
|
|
|
+ <a href="https://github.com/reorx/httpstat"><b>httpstat</b></a> - 一个以美观清晰的方式可视化 curl 统计信息的工具。<br>
|
|
|
+ <a href="https://github.com/gchaincl/httplab"><b>httplab</b></a> - 一个交互式 Web 服务器。<br>
|
|
|
+ <a href="https://lynx.browser.org/"><b>Lynx</b></a> - 一个万维网文本浏览器。<br>
|
|
|
+ <a href="https://github.com/browsh-org/browsh/"><b>Browsh</b></a> - 一个完全交互式、实时、现代化的基于文本的浏览器。<br>
|
|
|
+ <a href="https://github.com/dhamaniasad/HeadlessBrowsers"><b>HeadlessBrowsers</b></a> - 几乎所有无头 Web 浏览器的列表。<br>
|
|
|
+ <a href="https://httpd.apache.org/docs/2.4/programs/ab.html"><b>ab</b></a> - 一个用于测量 HTTP Web 服务器性能的单线程命令行工具。<br>
|
|
|
+ <a href="https://www.joedog.org/siege-home/"><b>siege</b></a> - 一个 HTTP 负载测试和基准测试实用程序。<br>
|
|
|
+ <a href="https://github.com/wg/wrk"><b>wrk</b></a> - 一个现代化的 HTTP 基准测试工具,能够产生显著的负载。<br>
|
|
|
+ <a href="https://github.com/giltene/wrk2"><b>wrk2</b></a> - wrk 的恒定吞吐量、正确延迟记录变体。<br>
|
|
|
+ <a href="https://github.com/tsenart/vegeta"><b>vegeta</b></a> - 恒定吞吐量、正确延迟记录的 HTTP 负载测试工具。<br>
|
|
|
+ <a href="https://github.com/codesenberg/bombardier"><b>bombardier</b></a> - 一个用 Go 编写的快速跨平台 HTTP 基准测试工具。<br>
|
|
|
+ <a href="https://github.com/cmpxchg16/gobench"><b>gobench</b></a> - HTTP/HTTPS 负载测试和基准测试工具。<br>
|
|
|
+ <a href="https://github.com/rakyll/hey"><b>hey</b></a> - HTTP 负载生成器,ApacheBench (ab) 替代品,以前称为 rakyll/boom。<br>
|
|
|
+ <a href="https://github.com/tarekziade/boom"><b>boom</b></a> - 一个可用于快速冒烟测试 Web 应用部署的脚本。<br>
|
|
|
+ <a href="https://github.com/shekyan/slowhttptest"><b>SlowHTTPTest</b></a> - 一个通过延长 HTTP 来模拟应用层拒绝服务攻击的工具。<br>
|
|
|
+ <a href="https://github.com/OJ/gobuster"><b>gobuster</b></a> - 一个用 Go 编写的免费开源目录/文件和 DNS 爆破工具。<br>
|
|
|
+ <a href="https://github.com/ssllabs/ssllabs-scan"><b>ssllabs-scan</b></a> - SSL Labs API 的命令行参考实现客户端。<br>
|
|
|
+ <a href="https://github.com/mozilla/http-observatory"><b>http-observatory</b></a> - Mozilla HTTP Observatory 的 CLI 版本。<br>
|
|
|
+ <a href="https://hurl.dev"><b>Hurl</b></a> - 一个用纯文本运行和测试 HTTP 请求的命令行工具。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: SSL
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.openssl.org/"><b>openssl</b></a> - 一个强大的、商业级的全功能 TLS 和 SSL 协议工具包。<br>
|
|
|
+ <a href="https://gnutls.org/manual/html_node/gnutls_002dcli-Invocation.html"><b>gnutls-cli</b></a> - 用于与其他计算机建立 TLS 连接的客户端程序。<br>
|
|
|
+ <a href="https://github.com/nabla-c0d3/sslyze"><b>sslyze</b></a> - 快速且强大的 SSL/TLS 服务器扫描库。<br>
|
|
|
+ <a href="https://github.com/rbsec/sslscan"><b>sslscan</b></a> - 测试启用 SSL/TLS 的服务以发现支持的密码套件。<br>
|
|
|
+ <a href="https://github.com/drwetter/testssl.sh"><b>testssl.sh</b></a> - 在任何端口上测试 TLS/SSL 加密。<br>
|
|
|
+ <a href="https://github.com/mozilla/cipherscan"><b>cipherscan</b></a> - 一种非常简单的方法,用于找出目标支持的 SSL 密码套件。<br>
|
|
|
+ <a href="http://www.tarsnap.com/spiped.html"><b>spiped</b></a> - 一个用于在套接字地址之间创建对称加密和认证管道的实用程序。<br>
|
|
|
+ <a href="https://github.com/certbot/certbot"><b>Certbot</b></a> - EFF 的工具,用于从 Let's Encrypt 获取证书并(可选)在服务器上自动启用 HTTPS。<br>
|
|
|
+ <a href="https://github.com/FiloSottile/mkcert"><b>mkcert</b></a> - 简单的零配置工具,用于制作任何你想要的名称的本地信任开发证书。<br>
|
|
|
+ <a href="https://github.com/square/certstrap"><b>certstrap</b></a> - 用于引导 CA、证书请求和签名证书的工具。<br>
|
|
|
+ <a href="https://github.com/yassineaboukir/sublert"><b>Sublert</b></a> - 一个安全和侦察工具,用于自动监控新的子域名。<br>
|
|
|
+ <a href="https://github.com/trimstray/mkchain"><b>mkchain</b></a> - 帮助构建有效 SSL 证书链的开源工具。<br>
|
|
|
+ <a href="https://github.com/Matty9191/ssl-cert-check"><b>ssl-cert-check</b></a> - SSL 证书到期检查器。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 安全
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html/deployment_guide/ch-selinux"><b>SELinux</b></a> - 提供内置于 Linux 内核中的灵活强制访问控制系统。<br>
|
|
|
+ <a href="https://wiki.ubuntu.com/AppArmor"><b>AppArmor</b></a> - 主动保护操作系统和应用程序免受外部或内部威胁。<br>
|
|
|
+ <a href="https://github.com/grapheneX/grapheneX"><b>grapheneX</b></a> - 自动化系统加固框架。<br>
|
|
|
+ <a href="https://github.com/dev-sec/"><b>DevSec Hardening Framework</b></a> - 安全 + DevOps:自动服务器加固。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 审计工具
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.ossec.net/"><b>ossec</b></a> - 通过文件完整性监控主动监控系统活动的各个方面。<br>
|
|
|
+ <a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/chap-system_auditing"><b>auditd</b></a> - 提供跟踪系统上安全相关信息的方法。<br>
|
|
|
+ <a href="https://www.nongnu.org/tiger/"><b>Tiger</b></a> - 一个既可用作安全审计又可用作入侵检测系统的安全工具。<br>
|
|
|
+ <a href="https://cisofy.com/lynis/"><b>Lynis</b></a> - 经过实战检验的安全工具,适用于运行 Linux、macOS 或基于 Unix 操作系统的系统。<br>
|
|
|
+ <a href="https://github.com/rebootuser/LinEnum"><b>LinEnum</b></a> - 脚本化本地 Linux 枚举和权限提升检查。<br>
|
|
|
+ <a href="https://github.com/installation/rkhunter"><b>Rkhunter</b></a> - Linux 系统扫描工具,扫描后门、Rootkit 和本地漏洞利用。<br>
|
|
|
+ <a href="https://github.com/hasherezade/pe-sieve"><b>PE-sieve</b></a> - 一个轻量级工具,帮助检测系统上运行的恶意软件。<br>
|
|
|
+ <a href="https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite"><b>PEASS</b></a> - 适用于 Windows、Linux/Unix 和 MacOS 的权限提升工具。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 系统诊断/调试器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/strace/strace"><b>strace</b></a> - 用于 Linux 的诊断、调试和教学用用户空间实用程序。<br>
|
|
|
+ <a href="http://dtrace.org/blogs/about/"><b>DTrace</b></a> - 一个性能分析和故障排查工具。<br>
|
|
|
+ <a href="https://en.wikipedia.org/wiki/Ltrace"><b>ltrace</b></a> - 一个库调用追踪器,用于追踪程序对库函数的调用。<br>
|
|
|
+ <a href="https://github.com/brainsmoke/ptrace-burrito"><b>ptrace-burrito</b></a> - 一个友好的 ptrace 包装器。<br>
|
|
|
+ <a href="https://github.com/brendangregg/perf-tools"><b>perf-tools</b></a> - 基于 Linux perf_events (又名 perf) 和 ftrace 的性能分析工具。<br>
|
|
|
+ <a href="https://github.com/iovisor/bpftrace"><b>bpftrace</b></a> - 用于 Linux eBPF 的高级追踪语言。<br>
|
|
|
+ <a href="https://github.com/draios/sysdig"><b>sysdig</b></a> - 系统探索和故障排查工具,对容器提供一等支持。<br>
|
|
|
+ <a href="http://www.valgrind.org/"><b>Valgrind</b></a> - 一个用于构建动态分析工具的插桩框架。<br>
|
|
|
+ <a href="https://github.com/gperftools/gperftools"><b>gperftools</b></a> - 高性能多线程 malloc() 实现,外加一些性能分析工具。<br>
|
|
|
+ <a href="https://nicolargo.github.io/glances/"><b>glances</b></a> - 用 Python 编写的跨平台系统监控工具。<br>
|
|
|
+ <a href="https://github.com/hishamhm/htop"><b>htop</b></a> - 用于 Unix 系统的交互式文本模式进程查看器。旨在成为更好的 'top'。<br>
|
|
|
+ <a href="https://github.com/aristocratos/bashtop"><b>bashtop</b></a> - 用纯 Bash 编写的 Linux 资源监控器。<br>
|
|
|
+ <a href="http://nmon.sourceforge.net/pmwiki.php"><b>nmon</b></a> - 用于性能监控和数据分析的单一可执行文件。<br>
|
|
|
+ <a href="https://www.atoptool.nl/"><b>atop</b></a> - ASCII 性能监控器。包含 CPU、内存、磁盘、交换分区、网络和进程的统计信息。<br>
|
|
|
+ <a href="https://en.wikipedia.org/wiki/Lsof"><b>lsof</b></a> - 在其输出中显示进程打开的文件信息。<br>
|
|
|
+ <a href="http://www.brendangregg.com/flamegraphs.html"><b>FlameGraph</b></a> - 堆栈跟踪可视化工具。<br>
|
|
|
+ <a href="https://github.com/zevv/lsofgraph"><b>lsofgraph</b></a> - 将 Unix lsof 输出转换为显示 FIFO 和 UNIX 进程间通信的图形。<br>
|
|
|
+ <a href="https://github.com/mozilla/rr"><b>rr</b></a> - 一个用于记录、重放和调试应用程序执行的轻量级工具。<br>
|
|
|
+ <a href="https://pcp.io/index.html"><b>Performance Co-Pilot</b></a> - 一个系统性能分析工具包。<br>
|
|
|
+ <a href="https://github.com/sharkdp/hexyl"><b>hexyl</b></a> - 一个命令行十六进制查看器。<br>
|
|
|
+ <a href="https://github.com/p403n1x87/austin"><b>Austin</b></a> - 用于 CPython 的 Python 帧堆栈采样器。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 日志分析器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/rcoh/angle-grinder"><b>angle-grinder</b></a> - 在命令行上切片分析日志文件。<br>
|
|
|
+ <a href="https://lnav.org"><b>lnav</b></a> - 带有搜索和自动刷新功能的日志文件导航器。<br>
|
|
|
+ <a href="https://goaccess.io/"><b>GoAccess</b></a> - 实时 Web 日志分析器和在终端中运行的交互式查看器。<br>
|
|
|
+ <a href="https://github.com/lebinh/ngxtop"><b>ngxtop</b></a> - Nginx 服务器实时指标。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 数据库
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/xo/usql"><b>usql</b></a> - SQL 数据库的通用命令行界面。<br>
|
|
|
+ <a href="https://github.com/dbcli/pgcli"><b>pgcli</b></a> - 带自动补全和语法高亮的 Postgres CLI。<br>
|
|
|
+ <a href="https://github.com/dbcli/mycli"><b>mycli</b></a> - 带自动补全和语法高亮的 MySQL 终端客户端。<br>
|
|
|
+ <a href="https://github.com/dbcli/litecli"><b>litecli</b></a> - 带自动补全和语法高亮的 SQLite CLI。<br>
|
|
|
+ <a href="https://github.com/dbcli/mssql-cli"><b>mssql-cli</b></a> - 带自动补全和语法高亮的 SQL Server CLI。<br>
|
|
|
+ <a href="https://github.com/osquery/osquery"><b>OSQuery</b></a> - 一个由 SQL 驱动的操作系统仪表、监控和分析框架。<br>
|
|
|
+ <a href="https://github.com/ankane/pgsync"><b>pgsync</b></a> - 将数据从一个 Postgres 数据库同步到另一个。<br>
|
|
|
+ <a href="https://github.com/laixintao/iredis"><b>iredis</b></a> - 带自动补全和语法高亮的 Redis 终端客户端。<br>
|
|
|
+ <a href="https://www.schemacrawler.com/diagramming.html"><b>SchemaCrawler</b></a> - 生成数据库的 E-R 图。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: TOR
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/GouveaHeitor/nipe"><b>Nipe</b></a> - 使 Tor 网络成为默认网关的脚本。<br>
|
|
|
+ <a href="https://github.com/trimstray/multitor"><b>multitor</b></a> - 一个让你创建多个 TOR 实例并实现负载均衡的工具。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 即时通讯/IRC 客户端
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://irssi.org"><b>Irssi</b></a> - 一个免费开源的终端 IRC 客户端。<br>
|
|
|
+ <a href="https://weechat.org/"><b>WeeChat</b></a> - 一个极其可扩展且轻量级的 IRC 客户端。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 生产力
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://taskwarrior.org"><b>taskwarrior</b></a> - 任务管理系统,待办事项列表。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 其他
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/skx/sysadmin-util"><b>sysadmin-util</b></a> - Linux/Unix 系统管理员工具。<br>
|
|
|
+ <a href="http://inotify.aiken.cz/"><b>incron</b></a> - 基于 inode 的文件系统通知技术。<br>
|
|
|
+ <a href="https://github.com/axkibe/lsyncd"><b>lsyncd</b></a> - 将本地目录与远程目标同步(实时同步守护进程)。<br>
|
|
|
+ <a href="https://github.com/rgburke/grv"><b>GRV</b></a> - 一个用于查看 Git 仓库的终端界面。<br>
|
|
|
+ <a href="https://jonas.github.io/tig/"><b>Tig</b></a> - Git 的文本模式界面。<br>
|
|
|
+ <a href="https://github.com/tldr-pages/tldr"><b>tldr</b></a> - 简化且社区驱动的 man 手册页。<br>
|
|
|
+ <a href="https://github.com/mholt/archiver"><b>archiver</b></a> - 轻松创建和解压 .zip、.tar、.tar.gz、.tar.bz2、.tar.xz、.tar.lz4、.tar.sz 和 .rar。<br>
|
|
|
+ <a href="https://github.com/tj/commander.js"><b>commander.js</b></a> - JavaScript 中的极简 CLI 创建器。<br>
|
|
|
+ <a href="https://github.com/tomnomnom/gron"><b>gron</b></a> - 让 JSON 可被 grep!<br>
|
|
|
+ <a href="https://github.com/itchyny/bed"><b>bed</b></a> - 用 Go 编写的二进制编辑器。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+#### GUI 工具 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### :black_small_square: 终端模拟器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/Guake/guake"><b>Guake</b></a> - 一个为 GNOME 桌面环境制作的下拉式终端。<br>
|
|
|
+ <a href="https://gnometerminator.blogspot.com/p/introduction.html"><b>Terminator</b></a> - 基于 GNOME Terminal,为系统管理员和其他用户提供有用的功能。<br>
|
|
|
+ <a href="https://sw.kovidgoyal.net/kitty/"><b>Kitty</b></a> - 一个基于 GPU 的终端模拟器,支持平滑滚动和图像。<br>
|
|
|
+ <a href="https://github.com/alacritty/alacritty"><b>Alacritty</b></a> - 一个快速、跨平台的 OpenGL 终端模拟器。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 网络
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.wireshark.org/"><b>Wireshark</b></a> - 世界上最重要且广泛使用的网络协议分析器。<br>
|
|
|
+ <a href="https://www.ettercap-project.org/"><b>Ettercap</b></a> - 一个综合的网络监控工具。<br>
|
|
|
+ <a href="https://etherape.sourceforge.io/"><b>EtherApe</b></a> - 一个图形化网络监控解决方案。<br>
|
|
|
+ <a href="https://packetsender.com/"><b>Packet Sender</b></a> - 一个网络实用程序,用于数据包生成以及内置的 UDP/TCP/SSL 客户端和服务器。<br>
|
|
|
+ <a href="https://ostinato.org/"><b>Ostinato</b></a> - 一个数据包制作器和流量生成器。<br>
|
|
|
+ <a href="https://jmeter.apache.org/"><b>JMeter™</b></a> - 用于负载测试功能行为和测量性能的开源软件。<br>
|
|
|
+ <a href="https://github.com/locustio/locust"><b>locust</b></a> - 用 Python 编写的可扩展用户负载测试工具。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 浏览器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.torproject.org/"><b>TOR Browser</b></a> - 保护你的隐私,抵御网络监控和流量分析。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 密码管理器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://keepassxc.org/"><b>KeePassXC</b></a> - 安全存储你的密码,并自动填充到你的日常网站和应用中。<br>
|
|
|
+ <a href="https://bitwarden.com/"><b>Bitwarden</b></a> - 带内置同步功能的开源密码管理器。<br>
|
|
|
+ <a href="https://github.com/dani-garcia/vaultwarden/"><b>Vaultwarden</b></a> - 用 Rust 编写的非官方 Bitwarden 兼容服务器。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 即时通讯/IRC 客户端
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://hexchat.github.io/index.html"><b>HexChat</b></a> - 一个基于 XChat 的 IRC 客户端。<br>
|
|
|
+ <a href="https://pidgin.im/"><b>Pidgin</b></a> - 一个易于使用且免费的聊天客户端,被数百万用户使用。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 即时通讯(端到端加密)
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.signal.org/"><b>Signal</b></a> - 一个加密通信应用。<br>
|
|
|
+ <a href="https://wire.com/en/"><b>Wire</b></a> - 安全的消息传递、文件共享、语音通话和视频会议。<br>
|
|
|
+ <a href="https://github.com/prof7bit/TorChat"><b>TorChat</b></a> - 建立在 Tor 隐藏服务之上的去中心化匿名即时通讯工具。<br>
|
|
|
+ <a href="https://matrix.org/"><b>Matrix</b></a> - 一个用于安全、去中心化、实时通信的开放网络。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 文本编辑器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.sublimetext.com/3"><b>Sublime Text</b></a> - 一个以其速度和易用性著称的轻量级跨平台代码编辑器。<br>
|
|
|
+ <a href="https://code.visualstudio.com/"><b>Visual Studio Code</b></a> - 由微软开发的开源免费源代码编辑器。<br>
|
|
|
+ <a href="https://atom.io/"><b>Atom</b></a> - 面向 21 世纪的可自定义文本编辑器。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+#### Web 工具 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### :black_small_square: 浏览器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.ssllabs.com/ssltest/viewMyClient.html"><b>SSL/TLS Capabilities of Your Browser</b></a> - 测试你浏览器的 SSL 实现。<br>
|
|
|
+ <a href="https://caniuse.com/"><b>Can I use</b></a> - 提供最新的前端 Web 技术浏览器支持表。<br>
|
|
|
+ <a href="https://panopticlick.eff.org/"><b>Panopticlick 3.0</b></a> - 你的浏览器安全吗?可以抵御追踪吗?<br>
|
|
|
+ <a href="https://privacy.net/analyzer/"><b>Privacy Analyzer</b></a> - 查看你的浏览器暴露了哪些数据。<br>
|
|
|
+ <a href="https://browserleaks.com/"><b>Web Browser Security</b></a> - 关于 Web 浏览器指纹识别的一切。<br>
|
|
|
+ <a href="https://www.howsmyssl.com/"><b>How's My SSL?</b></a> - 帮助 Web 服务器开发者了解真实世界 TLS 客户端的能力。<br>
|
|
|
+ <a href="https://suche.org/sslClientInfo"><b>sslClientInfo</b></a> - 客户端测试(包括 TLSv1.3 信息)。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: SSL/安全
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.ssllabs.com/ssltest/"><b>SSLLabs Server Test</b></a> - 对任何 SSL Web 服务器的配置进行深度分析。<br>
|
|
|
+ <a href="https://dev.ssllabs.com/ssltest/"><b>SSLLabs Server Test (DEV)</b></a> - 对任何 SSL Web 服务器的配置进行深度分析(开发版)。<br>
|
|
|
+ <a href="https://www.immuniweb.com/ssl/"><b>ImmuniWeb® SSLScan</b></a> - 测试 SSL/TLS(PCI DSS、HIPAA 和 NIST)。<br>
|
|
|
+ <a href="https://www.jitbit.com/sslcheck/"><b>SSL Check</b></a> - 扫描你的网站以查找非安全内容。<br>
|
|
|
+ <a href="http://www.ssltools.com"><b>SSL Scanner</b></a> - 分析网站安全性。<br>
|
|
|
+ <a href="https://cryptcheck.fr/"><b>CryptCheck</b></a> - 测试你的 TLS 服务器配置(例如密码套件)。<br>
|
|
|
+ <a href="https://urlscan.io/"><b>urlscan.io</b></a> - 用于扫描和分析网站的服务。<br>
|
|
|
+ <a href="https://report-uri.com/home/tools"><b>Report URI</b></a> - 监控安全策略,如 CSP 和 HPKP。<br>
|
|
|
+ <a href="https://csp-evaluator.withgoogle.com/"><b>CSP Evaluator</b></a> - 允许开发者和安全专家检查内容安全策略。<br>
|
|
|
+ <a href="https://uselesscsp.com/"><b>Useless CSP</b></a> - 关于一些大公司 CSP 的公开列表(可能让他们更关心一点)。<br>
|
|
|
+ <a href="https://whynohttps.com/"><b>Why No HTTPS?</b></a> - Alexa 排名前 100 的网站中未自动重定向不安全请求的列表。<br>
|
|
|
+ <a href="https://ciphersuite.info/"><b>TLS Cipher Suite Search</b></a>- 密码套件搜索引擎。<br>
|
|
|
+ <a href="https://github.com/RaymiiOrg/cipherli.st"><b>cipherli.st</b></a> - 适用于 Apache、Nginx、Lighttpd 等的强密码配置。<b>*</b><br>
|
|
|
+ <a href="https://2ton.com.au/dhtool/"><b>dhtool</b></a> - 公共 Diffie-Hellman 参数服务/工具。<br>
|
|
|
+ <a href="https://badssl.com/"><b>badssl.com</b></a> - 用于测试客户端对不良 SSL 配置的记忆站点。<br>
|
|
|
+ <a href="https://tlsfun.de/"><b>tlsfun.de</b></a> - 注册了各种关于 TLS/SSL 协议的测试。<br>
|
|
|
+ <a href="https://sslmate.com/caa/"><b>CAA Record Helper</b></a> - 生成 CAA 策略。<br>
|
|
|
+ <a href="https://ccadb.org/resources"><b>Common CA Database</b></a> - 关于 CA 及其根证书和中间证书的信息仓库。<br>
|
|
|
+ <a href="https://certstream.calidog.io/"><b>CERTSTREAM</b></a> - 实时证书透明度日志更新流。<br>
|
|
|
+ <a href="https://crt.sh/"><b>crt.sh</b></a> - 通过持续监控所有公开已知的 CT 来发现证书。<br>
|
|
|
+ <a href="https://www.hardenize.com/"><b>Hardenize</b></a> - 部署安全标准。<br>
|
|
|
+ <a href="https://cryptcheck.fr/suite/"><b>Cipher suite compatibility</b></a> - 测试 TLS 密码套件兼容性。<br>
|
|
|
+ <a href="https://www.urlvoid.com/"><b>urlvoid</b></a> - 此服务帮助你检测潜在的恶意网站。<br>
|
|
|
+ <a href="https://securitytxt.org/"><b>security.txt</b></a> - 一个提议的标准(生成器),允许网站定义安全策略。<br>
|
|
|
+ <a href="https://github.com/mozilla/ssl-config-generator"><b>ssl-config-generator</b></a> - 帮助你遵循 Mozilla 服务器端 TLS 配置指南。<br>
|
|
|
+ <a href="https://github.com/mjol/TLScan"><b>TLScan</b></a> - 纯 Python,SSL/TLS 协议和密码套件扫描器/枚举器。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: HTTP 头部与 Web Lint 工具
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://securityheaders.com/"><b>Security Headers</b></a> - 分析 HTTP 响应头(对结果进行评分)。<br>
|
|
|
+ <a href="https://observatory.mozilla.org/"><b>Observatory by Mozilla</b></a> - 用于分析你的网站的工具集。<br>
|
|
|
+ <a href="https://webhint.io/"><b>webhint</b></a> - 一个 linting 工具,帮助改善网站的可访问性、速度、安全性等。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: DNS
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="http://viewdns.info/"><b>ViewDNS</b></a> - 免费 DNS 相关工具和信息的一站式来源。<br>
|
|
|
+ <a href="https://dnslookup.org/"><b>DNSLookup</b></a> - 一个高级 DNS 查询工具。<br>
|
|
|
+ <a href="https://dnslytics.com/"><b>DNSlytics</b></a> - 在线 DNS 调查工具。<br>
|
|
|
+ <a href="https://dnsspy.io/"><b>DNS Spy</b></a> - 监控、验证和确认你的 DNS 配置。<br>
|
|
|
+ <a href="https://zonemaster.iis.se/en/"><b>Zonemaster</b></a> - 帮助你控制 DNS 的工作方式。<br>
|
|
|
+ <a href="http://leafdns.com/"><b>Leaf DNS</b></a> - 全面的 DNS 测试器。<br>
|
|
|
+ <a href="https://findsubdomains.com/"><b>Find subdomains online</b></a> - 为安全评估渗透测试查找子域名。<br>
|
|
|
+ <a href="https://dnsdumpster.com/"><b>DNSdumpster</b></a> - DNS 侦察与研究,查找和查询 DNS 记录。<br>
|
|
|
+ <a href="https://dnstable.com/"><b>DNS Table online</b></a> - 通过域名、IP、CIDR、ISP 搜索 DNS 记录。<br>
|
|
|
+ <a href="https://intodns.com/"><b>intoDNS</b></a> - DNS 和邮件服务器健康检查器。<br>
|
|
|
+ <a href="http://www.zonecut.net/dns/"><b>DNS Bajaj</b></a> - 检查域名的委派情况。<br>
|
|
|
+ <a href="https://www.buddyns.com/delegation-lab/"><b>BuddyDNS Delegation LAB</b></a> - 检查、追踪和可视化域名的委派。<br>
|
|
|
+ <a href="https://dnssec-debugger.verisignlabs.com/"><b>dnssec-debugger</b></a> - DS 或 DNSKEY 记录验证器。<br>
|
|
|
+ <a href="http://ptrarchive.com/"><b>PTRarchive.com</b></a> - 此网站负责保存历史反向 DNS 记录。<br>
|
|
|
+ <a href="http://xip.io/"><b>xip.io</b></a> - 面向所有人的通配符 DNS。<br>
|
|
|
+ <a href="https://nip.io/"><b>nip.io</b></a> - 极其简单的通配符 DNS,适用于任何 IP 地址。<br>
|
|
|
+ <a href="https://ceipam.eu/en/dnslookup.php"><b>dnslookup (ceipam)</b></a> - 最好的 DNS 传播检查器之一(且不止于此)。<br>
|
|
|
+ <a href="https://whatsmydns.com"><b>What's My DNS</b></a> - DNS 传播检查工具。<br>
|
|
|
+ <a href="https://blog.erbbysam.com/index.php/2019/02/09/dnsgrep/"><b>DNSGrep</b></a> - 快速搜索大型 DNS 数据集。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 邮件
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://luxsci.com/smtp-tls-checker"><b>smtp-tls-checker</b></a> - 检查电子邮件域的 SMTP TLS 支持。<br>
|
|
|
+ <a href="https://mxtoolbox.com/SuperTool.aspx"><b>MX Toolbox</b></a> - MX 记录、DNS、黑名单和 SMTP 诊断全部集成在一个工具中。<br>
|
|
|
+ <a href="https://www.checktls.com/index.html"><b>Secure Email</b></a> - 面向电子邮件技术人员的完整电子邮件测试工具。<br>
|
|
|
+ <a href="http://www.blacklistalert.org/"><b>blacklistalert</b></a> - 检查你的域是否在实时垃圾邮件黑名单中。<br>
|
|
|
+ <a href="http://multirbl.valli.org/"><b>MultiRBL</b></a> - 完整的发送邮件服务器 IP 检查。<br>
|
|
|
+ <a href="https://dkimvalidator.com/"><b>DKIM SPF & Spam Assassin Validator</b></a> - 检查邮件认证并使用 Spam Assassin 评分。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 编码器/解码器和正则表达式测试
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.url-encode-decode.com/"><b>URL Encode/Decode</b></a> - 用于对文本字符串进行编码或解码的工具。<br>
|
|
|
+ <a href="https://uncoder.io/"><b>Uncoder</b></a> - 用于日志数据搜索查询的在线翻译器。<br>
|
|
|
+ <a href="https://regex101.com/"><b>Regex101</b></a> - 在线正则表达式测试器和调试器:PHP、PCRE、Python、Golang 和 JavaScript。<br>
|
|
|
+ <a href="https://regexr.com/"><b>RegExr</b></a> - 学习、构建和测试正则表达式的在线工具。<br>
|
|
|
+ <a href="https://www.regextester.com/"><b>RegEx Testing</b></a> - 在线正则表达式测试工具。<br>
|
|
|
+ <a href="https://www.regexpal.com/"><b>RegEx Pal</b></a> - 在线正则表达式测试工具以及其他工具。<br>
|
|
|
+ <a href="https://gchq.github.io/CyberChef/"><b>The Cyber Swiss Army Knife</b></a> - 一个用于加密、编码、压缩和数据分析的 Web 应用。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: Net-tools
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://toolbar.netcraft.com/site_report"><b>Netcraft</b></a> - 关于网站的详细报告,帮助你对网站的完整性做出明智的选择。<b>*</b><br>
|
|
|
+ <a href="https://atlas.ripe.net/"><b>RIPE NCC Atlas</b></a> - 一个全球、开放、分布式的互联网测量平台。<br>
|
|
|
+ <a href="https://www.robtex.com/"><b>Robtex</b></a> - 使用各种来源收集关于 IP 号码、域名、主机名等的公开信息。<br>
|
|
|
+ <a href="https://securitytrails.com/"><b>Security Trails</b></a> - 面向安全公司、研究人员和团队的 API。<br>
|
|
|
+ <a href="https://tools.keycdn.com/curl"><b>Online Curl</b></a> - curl 测试,分析 HTTP 响应头。<br>
|
|
|
+ <a href="https://extendsclass.com/"><b>Online Tools for Developers</b></a> - HTTP API 工具、测试器、编码器、转换器、格式化器等。<br>
|
|
|
+ <a href="https://ping.eu/"><b>Ping.eu</b></a> - 在线 Ping、Traceroute、DNS 查询、WHOIS 等。<br>
|
|
|
+ <a href="https://network-tools.com/"><b>Network-Tools</b></a> - 面向网站管理员、IT 技术人员和极客的网络工具。<br>
|
|
|
+ <a href="https://bgpview.io/"><b>BGPview</b></a> - 搜索任何 ASN、IP、前缀或资源名称。<br>
|
|
|
+ <a href="https://isbgpsafeyet.com/"><b>Is BGP safe yet?</b></a> - 检查 ISP 和其他主要互联网参与者的 BGP (RPKI) 安全性。<br>
|
|
|
+ <a href="https://riseup.net/"><b>Riseup</b></a> - 为致力于解放性社会变革的个人和团体提供在线通信工具。<br>
|
|
|
+ <a href="https://www.virustotal.com/gui/home/upload"><b>VirusTotal</b></a> - 分析可疑文件和 URL 以检测恶意软件类型。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 隐私
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.privacyguides.org/"><b>privacyguides.org</b></a> - 提供保护隐私免受全球大规模监控的知识和工具。<br>
|
|
|
+ <a href="https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Test+Servers"><b>DNS Privacy Test Servers</b></a> - DNS 隐私递归服务器列表(具有"无日志"策略)。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 代码解析器/游乐场
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.shellcheck.net/"><b>ShellCheck</b></a> - 查找 Shell 脚本中的错误。<br>
|
|
|
+ <a href="https://explainshell.com/"><b>explainshell</b></a> - 获取 Shell 命令的交互式帮助文本。<br>
|
|
|
+ <a href="https://jsbin.com/?html,output"><b>jsbin</b></a> - HTML、CSS 和 JavaScript 等的在线 pastebin。<br>
|
|
|
+ <a href="https://codesandbox.io/"><b>CodeSandbox</b></a> - 用于 Web 应用程序开发的在线代码编辑器。<br>
|
|
|
+ <a href="http://sandbox.onlinephpfunctions.com/"><b>PHP Sandbox</b></a> - 用此代码测试器测试你的 PHP 代码。<br>
|
|
|
+ <a href="https://www.repl.it/"><b>Repl.it</b></a> - 一个即时 IDE,集学习、构建、协作和托管于一体。<br>
|
|
|
+ <a href="http://www.vclfiddle.net/"><b>vclFiddle</b></a> - 一个用于试验 Varnish Cache VCL 的在线工具。<br>
|
|
|
+ <a href="https://github.com/hadolint/hadolint"><b>Haskell Dockerfile Linter</b></a> - 一个更智能的 Dockerfile Linter,帮助你构建最佳实践的 Docker 镜像。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 性能
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://gtmetrix.com/"><b>GTmetrix</b></a> - 分析网站速度并使其更快。<br>
|
|
|
+ <a href="https://performance.sucuri.net/"><b>Sucuri loadtimetester</b></a> - 从全球各地测试你网站的性能。<br>
|
|
|
+ <a href="https://tools.pingdom.com/"><b>Pingdom Tools</b></a> - 从全球各地分析你网站的速度。<br>
|
|
|
+ <a href="https://pingme.io/"><b>PingMe.io</b></a> - 跨多个地理区域运行网站延迟测试。<br>
|
|
|
+ <a href="https://developers.google.com/speed/pagespeed/insights/"><b>PageSpeed Insights</b></a> - 分析网站速度并使其更快。<br>
|
|
|
+ <a href="https://web.dev/"><b>web.dev</b></a> - 帮助开发者学习和应用 Web 的现代能力到自己的网站和应用。<br>
|
|
|
+ <a href="https://github.com/GoogleChrome/lighthouse"><b>Lighthouse</b></a> - 自动审计、性能指标和 Web 最佳实践。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 大规模扫描器(搜索引擎)
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://censys.io/"><b>Censys</b></a> - 帮助信息安全从业人员发现、监控和分析设备的平台。<br>
|
|
|
+ <a href="https://www.shodan.io/"><b>Shodan</b></a> - 世界上第一个面向互联网连接设备的搜索引擎。<br>
|
|
|
+ <a href="https://2000.shodan.io/#/"><b>Shodan 2000</b></a> - 此工具查找 Shodan 的随机生成数据。<br>
|
|
|
+ <a href="https://viz.greynoise.io/table"><b>GreyNoise</b></a> - 类似于 Shodan 和 Censys 的大规模扫描器。<br>
|
|
|
+ <a href="https://www.zoomeye.org/"><b>ZoomEye</b></a> - 网络空间搜索引擎,允许用户查找特定的网络组件。<br>
|
|
|
+ <a href="https://netograph.io/"><b>netograph</b></a> - 监控和理解 Web 深层结构的工具。<br>
|
|
|
+ <a href="https://fofa.so/"><b>FOFA</b></a> - 一个网络空间搜索引擎。<br>
|
|
|
+ <a href="https://www.onyphe.io/"><b>onyphe</b></a> - 收集开源和网络威胁情报数据的搜索引擎。<br>
|
|
|
+ <a href="https://intelx.io/"><b>IntelligenceX</b></a> - 一个搜索引擎和数据档案。<br>
|
|
|
+ <a href="https://app.binaryedge.io/"><b>binaryedge</b></a> - 扫描整个互联网空间并创建实时威胁情报流和报告。<br>
|
|
|
+ <a href="https://spyse.com/"><b>Spyse</b></a> - 互联网资产注册表:网络、威胁、Web 对象等。<br>
|
|
|
+ <a href="https://wigle.net/"><b>wigle</b></a> - 一个基于提交的无线网络目录。所有网络。由所有人发现。<br>
|
|
|
+ <a href="https://publicwww.com/"><b>PublicWWW</b></a> - 在网页 HTML、JS 和 CSS 代码中查找任何字母数字片段、签名或关键字。<br>
|
|
|
+ <a href="https://inteltechniques.com/index.html"><b>IntelTechniques</b></a> - 此存储库包含数百个在线搜索实用程序。<br>
|
|
|
+ <a href="https://hunter.io/"><b>hunter</b></a> - 让你在几秒钟内找到电子邮件地址,并与对你的业务重要的人建立联系。<br>
|
|
|
+ <a href="https://ghostproject.fr/"><b>GhostProject?</b></a> - 通过完整电子邮件地址或用户名进行搜索。<br>
|
|
|
+ <a href="https://www.databreaches.live/"><b>databreaches</b></a> - 我的电子邮件是否受到数据泄露的影响?<br>
|
|
|
+ <a href="https://weleakinfo.com"><b>We Leak Info</b></a> - 世界上最快速、最大的数据泄露搜索引擎。<br>
|
|
|
+ <a href="https://pulsedive.com/"><b>Pulsedive</b></a> - 扫描恶意 URL、IP 和域名,包括端口扫描和 Web 请求。<br>
|
|
|
+ <a href="https://buckets.grayhatwarfare.com/"><b>Buckets by Grayhatwarfar</b></a> - 公开搜索开放 Amazon S3 Bucket 及其内容的数据库。<br>
|
|
|
+ <a href="https://vigilante.pw/"><b>Vigilante.pw</b></a> - 被入侵的数据库目录。<br>
|
|
|
+ <a href="https://builtwith.com/"><b>builtwith</b></a> - 找出网站是用什么构建的。<br>
|
|
|
+ <a href="https://nerdydata.com/"><b>NerdyData</b></a> - 在数百万个网站中搜索 Web 源代码中的技术。<br>
|
|
|
+ <a href="http://zorexeye.com/"><b>zorexeye</b></a> - 搜索网站、图片、应用、软件等。<br>
|
|
|
+ <a href="https://www.mmnt.net/"><b>Mamont's open FTP Index</b></a> - 如果目标有开放的 FTP 站点且内容可访问,它将在此列出。<br>
|
|
|
+ <a href="https://osintframework.com/"><b>OSINT Framework</b></a> - 专注于从免费工具或资源中收集信息。<br>
|
|
|
+ <a href="https://www.maltiverse.com/search"><b>maltiverse</b></a> - 一个面向网络安全分析师的服务。<br>
|
|
|
+ <a href="https://leakedsource.ru/main/"><b>Leaked Source</b></a> - 以查询形式提供在线数据合作。<br>
|
|
|
+ <a href="https://search.weleakinfo.com/"><b>We Leak Info</b></a> - 帮助日常个人保护其在线生活安全,避免被黑客入侵。<br>
|
|
|
+ <a href="https://pipl.com/"><b>pipl</b></a> - 查找电子邮件地址、社交媒体用户名或电话号码背后的人。<br>
|
|
|
+ <a href="https://abuse.ch/"><b>abuse.ch</b></a> - 由一个随机的瑞士人运营,非营利性对抗恶意软件。<br>
|
|
|
+ <a href="http://malc0de.com/database/"><b>malc0de</b></a> - 恶意软件搜索引擎。<br>
|
|
|
+ <a href="https://cybercrime-tracker.net/index.php"><b>Cybercrime Tracker</b></a> - 监控和追踪用于实施网络犯罪的各种恶意软件家族。<br>
|
|
|
+ <a href="https://github.com/eth0izzle/shhgit/"><b>shhgit</b></a> - 实时查找 GitHub 上的密钥。<br>
|
|
|
+ <a href="https://searchcode.com/"><b>searchcode</b></a> - 帮助你找到函数、API 和库的实际使用示例。<br>
|
|
|
+ <a href="http://www.insecam.org/"><b>Insecam</b></a> - 世界上最大的在线监控安全摄像头目录。<br>
|
|
|
+ <a href="http://index-of.es/"><b>index-of</b></a> - 包含安全、黑客、逆向工程、密码学、编程等重要内容。<br>
|
|
|
+ <a href="https://opendata.rapid7.com/"><b>Rapid7 Labs Open Data</b></a> - 来自 Project Sonar 的优秀数据集资源。<br>
|
|
|
+ <a href="https://webtechsurvey.com/common-response-headers"><b>Common Response Headers</b></a> - 最大的 HTTP 响应头数据库。<br>
|
|
|
+ <a href="https://labs.inquest.net"><b>InQuest Labs</b></a> - 一个面向安全研究人员的开放、交互式和 API 驱动的数据门户。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 生成器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://thispersondoesnotexist.com/"><b>thispersondoesnotexist</b></a> - 一键生成假人脸 - 无限可能。<br>
|
|
|
+ <a href="https://generated.photos"><b>AI Generated Photos</b></a> - 10 万张 AI 生成的人脸。<br>
|
|
|
+ <a href="https://www.fakenamegenerator.com/"><b>fakenamegenerator</b></a> - 随机生成的身份信息。<br>
|
|
|
+ <a href="https://tools.intigriti.io/redirector/"><b>Intigriti Redirector</b></a> - 开放重定向/SSRF 有效载荷生成器。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 密码
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://haveibeenpwned.com/"><b>have i been pwned?</b></a> - 检查你的账户是否在数据泄露中被入侵。<br>
|
|
|
+ <a href="https://www.dehashed.com/"><b>dehashed</b></a> - 一个被黑客入侵的数据库搜索引擎。<br>
|
|
|
+ <a href="https://leakedsource.ru/"><b>Leaked Source</b></a> - 以查询形式提供在线数据合作。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: CVE/漏洞利用数据库
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://cve.mitre.org/"><b>CVE Mitre</b></a> - 公开已知网络安全漏洞列表。<br>
|
|
|
+ <a href="https://www.cvedetails.com/"><b>CVE Details</b></a> - CVE 安全漏洞高级数据库。<br>
|
|
|
+ <a href="https://www.exploit-db.com/"><b>Exploit DB</b></a> - CVE 兼容的公开漏洞利用及相应易受攻击软件存档。<br>
|
|
|
+ <a href="https://0day.today/"><b>0day.today</b></a> - 漏洞利用市场,提供买卖零日漏洞利用的可能。<br>
|
|
|
+ <a href="https://sploitus.com/"><b>sploitus</b></a> - 漏洞利用和工具数据库。<br>
|
|
|
+ <a href="https://cxsecurity.com/exploit/"><b>cxsecurity</b></a> - 免费漏洞数据库。<br>
|
|
|
+ <a href="https://www.vulncode-db.com/"><b>Vulncode-DB</b></a> - 漏洞及其对应源代码的数据库(如果可用)。<br>
|
|
|
+ <a href="https://cveapi.com/"><b>cveapi</b></a> - 免费的 CVE 数据 API。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 移动应用扫描器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.immuniweb.com/mobile/"><b>ImmuniWeb® Mobile App Scanner</b></a> - 测试移动应用(iOS 和 Android)的安全和隐私。<br>
|
|
|
+ <a href="https://vulnerabilitytest.quixxi.com/"><b>Quixxi</b></a> - 免费的 Android 和 iOS 移动应用漏洞扫描器。<br>
|
|
|
+ <a href="https://www.ostorlab.co/scan/mobile/"><b>Ostorlab</b></a> - 分析移动应用以识别漏洞和潜在的弱点。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 隐私搜索引擎
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.startpage.com/"><b>Startpage</b></a> - 世界上最私密的搜索引擎。<br>
|
|
|
+ <a href="https://searx.me/"><b>searX</b></a> - 一个尊重隐私、可定制的元搜索引擎。<br>
|
|
|
+ <a href="https://darksearch.io/"><b>darksearch</b></a> - 第一个真正的暗网搜索引擎。<br>
|
|
|
+ <a href="https://www.qwant.com/"><b>Qwant</b></a> - 尊重你隐私的搜索引擎。<br>
|
|
|
+ <a href="https://duckduckgo.com/"><b>DuckDuckGo</b></a> - 不追踪你的搜索引擎。<br>
|
|
|
+ <a href="https://swisscows.com/"><b>Swisscows</b></a> - 隐私安全的 Web 搜索。<br>
|
|
|
+ <a href="https://search.disconnect.me/"><b>Disconnect</b></a> - 匿名化你的搜索的搜索引擎。<br>
|
|
|
+ <a href="https://metager.org/"><b>MetaGer</b></a> - 使用匿名代理和隐藏 Tor 分支的搜索引擎。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 安全 Webmail 提供商
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://countermail.com/"><b>CounterMail</b></a> - 旨在提供最高安全性和隐私性的在线电子邮件服务。<br>
|
|
|
+ <a href="http://mail2tor.com/"><b>Mail2Tor</b></a> - 一个 Tor 隐藏服务,允许任何人匿名发送和接收电子邮件。<br>
|
|
|
+ <a href="https://tutanota.com/"><b>Tutanota</b></a> - 世界上最安全的电子邮件服务,而且非常易于使用。<br>
|
|
|
+ <a href="https://protonmail.com/"><b>Protonmail</b></a> - 世界上最大的安全电子邮件服务,由 CERN 和 MIT 科学家开发。<br>
|
|
|
+ <a href="https://www.startmail.com/en/"><b>Startmail</b></a> - 私密且加密的电子邮件变得简单。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 加密
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://keybase.io/"><b>Keybase</b></a> - 开源,由公钥加密技术驱动。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: PGP 密钥服务器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://keyserver.ubuntu.com/"><b>SKS OpenPGP Key server</b></a> - 为 OpenPGP 使用的 SKS 密钥服务器提供服务。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+#### 系统/服务 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### :black_small_square: 操作系统
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="http://www.slackware.com/"><b>Slackware</b></a> - 最"Unix 化"的 Linux 发行版。<br>
|
|
|
+ <a href="https://www.openbsd.org/"><b>OpenBSD</b></a> - 多平台 4.4BSD 风格类 Unix 操作系统。<br>
|
|
|
+ <a href="https://hardenedbsd.org/"><b>HardenedBSD</b></a> - 旨在实现创新的漏洞利用缓解和安全解决方案。<br>
|
|
|
+ <a href="https://www.kali.org/"><b>Kali Linux</b></a> - 用于渗透测试、道德黑客和网络安全评估的 Linux 发行版。<br>
|
|
|
+ <a href="https://www.parrotsec.org/"><b>Parrot Security OS</b></a> - 网络安全 GNU/Linux 环境。<br>
|
|
|
+ <a href="https://www.backbox.org/"><b>Backbox Linux</b></a> - 面向渗透测试和安全评估的基于 Ubuntu 的 Linux 发行版。<br>
|
|
|
+ <a href="https://blackarch.org/"><b>BlackArch</b></a> - 基于 Arch Linux 的渗透测试发行版。<br>
|
|
|
+ <a href="https://www.pentoo.ch/"><b>Pentoo</b></a> - 基于 Gentoo 的安全聚焦 livecd。<br>
|
|
|
+ <a href="https://securityonion.net/"><b>Security Onion</b></a> - 用于入侵检测、企业安全监控和日志管理的 Linux 发行版。<br>
|
|
|
+ <a href="https://tails.boum.org/"><b>Tails</b></a> - 一个旨在保护你隐私和匿名的 Live 系统。<br>
|
|
|
+ <a href="https://github.com/vedetta-com/vedetta"><b>vedetta</b></a> - OpenBSD 路由器模板。<br>
|
|
|
+ <a href="https://www.qubes-os.org"><b>Qubes OS</b></a> - 一个安全导向的操作系统,使用基于 Xen 的虚拟化。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: HTTP(s) 服务
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://varnish-cache.org/"><b>Varnish Cache</b></a> - 专为内容密集型动态网站设计的 HTTP 加速器。<br>
|
|
|
+ <a href="https://nginx.org/"><b>Nginx</b></a> - 类似于 Apache 但非常轻量级的开源 Web 和反向代理服务器。<br>
|
|
|
+ <a href="https://openresty.org/en/"><b>OpenResty</b></a> - 一个基于 NGINX 和 LuaJIT 的动态 Web 平台。<br>
|
|
|
+ <a href="https://github.com/alibaba/tengine"><b>Tengine</b></a> - 带有一些高级功能的 Nginx 发行版。<br>
|
|
|
+ <a href="https://caddyserver.com/"><b>Caddy Server</b></a> - 一个开源的、默认启用 HTTPS 的 HTTP/2 Web 服务器。<br>
|
|
|
+ <a href="https://www.haproxy.org/"><b>HAProxy</b></a> - 可靠的高性能 TCP/HTTP 负载均衡器。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: DNS 服务
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://nlnetlabs.nl/projects/unbound/about/"><b>Unbound</b></a> - 验证、递归和缓存 DNS 解析器(支持 TLS)。<br>
|
|
|
+ <a href="https://www.knot-resolver.cz/"><b>Knot Resolver</b></a> - 缓存完整解析器实现,包括解析库和守护进程。<br>
|
|
|
+ <a href="https://www.powerdns.com/"><b>PowerDNS</b></a> - 用 C++ 编写的开源权威 DNS 服务器,GPL 许可。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 其他服务
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/z3APA3A/3proxy"><b>3proxy</b></a> - 微型免费代理服务器。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 安全/加固
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://twitter.com/EmeraldOnion"><b>Emerald Onion</b></a> - 一个 501(c)(3) 非营利组织和传输互联网服务提供商。<br>
|
|
|
+ <a href="https://github.com/pi-hole/pi-hole"><b>pi-hole</b></a> - Pi-hole® 是一个 DNS 黑洞,保护你的设备免受不必要的内容。<br>
|
|
|
+ <a href="https://github.com/stamparm/maltrail"><b>maltrail</b></a> - 恶意流量检测系统。<br>
|
|
|
+ <a href="https://github.com/Netflix/security_monkey"><b>security_monkey</b></a> - 监控 AWS、GCP、OpenStack 和 GitHub 组织的资产及其变化。<br>
|
|
|
+ <a href="https://github.com/firecracker-microvm/firecracker"><b>firecracker</b></a> - 用于无服务器计算的安全快速 microVM。<br>
|
|
|
+ <a href="https://github.com/StreisandEffect/streisand"><b>streisand</b></a> - 设置一台新服务器,运行你选择的 WireGuard、OpenSSH、OpenVPN 等。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+#### 网络 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### :black_small_square: 工具
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.capanalysis.net/ca/"><b>CapAnalysis</b></a> - 分析大量捕获的网络流量的 Web 可视化工具(PCAP 分析器)。<br>
|
|
|
+ <a href="https://github.com/digitalocean/netbox"><b>netbox</b></a> - IP 地址管理(IPAM)和数据中心基础设施管理(DCIM)工具。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 实验环境
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://labs.networkreliability.engineering/"><b>NRE Labs</b></a> - 通过实际操作学习自动化。就在此刻,就在你的浏览器中。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 其他
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://ee.lbl.gov/"><b>LBNL's Network Research Group</b></a> - 网络研究小组(NRG)主页。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+#### 容器/编排 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### :black_small_square: CLI 工具
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/google/gvisor"><b>gvisor</b></a> - 容器运行时沙箱。<br>
|
|
|
+ <a href="https://github.com/bcicen/ctop"><b>ctop</b></a> - 容器指标的 top 风格界面。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: Web 工具
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/moby/moby"><b>Moby</b></a> - 容器生态系统的协作项目,用于组装基于容器的系统。<br>
|
|
|
+ <a href="https://traefik.io/"><b>Traefik</b></a> - 开源反向代理/负载均衡器,提供与 Docker 和 Let's Encrypt 的更简便集成。<br>
|
|
|
+ <a href="https://github.com/Kong/kong"><b>kong</b></a> - 云原生 API 网关。<br>
|
|
|
+ <a href="https://github.com/rancher/rancher"><b>rancher</b></a> - 完整的容器管理平台。<br>
|
|
|
+ <a href="https://github.com/portainer/portainer"><b>portainer</b></a> - 使 Docker 管理变得简单。<br>
|
|
|
+ <a href="https://github.com/jwilder/nginx-proxy"><b>nginx-proxy</b></a> - 使用 docker-gen 为 Docker 容器自动配置 Nginx 代理。<br>
|
|
|
+ <a href="https://github.com/bunkerity/bunkerized-nginx"><b>bunkerized-nginx</b></a> - "默认安全"的 Nginx Docker 镜像。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 安全
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/docker/docker-bench-security"><b>docker-bench-security</b></a> - 检查部署 Docker 时的数十种常见最佳实践。<br>
|
|
|
+ <a href="https://github.com/aquasecurity/trivy"><b>trivy</b></a> - 容器漏洞扫描器,适用于 CI。<br>
|
|
|
+ <a href="https://goharbor.io/"><b>Harbor</b></a> - 云原生注册表项目,存储、签名和扫描内容。<br>
|
|
|
+ <a href="https://houdini.secsi.io/"><b>Houdini</b></a> - 数百个用于网络入侵的攻击性和有用的 Docker 镜像。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 手册/教程/最佳实践
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/wsargent/docker-cheat-sheet"><b>docker-cheat-sheet</b></a> - Docker 快速参考速查表。<br>
|
|
|
+ <a href="https://github.com/veggiemonk/awesome-docker"><b>awesome-docker</b></a> - 精选的 Docker 资源和项目列表。<br>
|
|
|
+ <a href="https://github.com/yeasy/docker_practice"><b>docker_practice</b></a> - 学习和理解 Docker 技术,附带真实 DevOps 实践!<br>
|
|
|
+ <a href="https://github.com/docker/labs"><b>labs</b></a> - 学习如何将 Docker 与各种工具结合使用的教程集合。<br>
|
|
|
+ <a href="https://github.com/jessfraz/dockerfiles"><b>dockerfiles</b></a> - 我在桌面和服务器上使用的各种 Dockerfiles。<br>
|
|
|
+ <a href="https://github.com/kelseyhightower/kubernetes-the-hard-way"><b>kubernetes-the-hard-way</b></a> - 在 Google Cloud Platform 上以硬方式引导 Kubernetes。无脚本。<br>
|
|
|
+ <a href="https://github.com/jamesward/kubernetes-the-easy-way"><b>kubernetes-the-easy-way</b></a> - 在 Google Cloud Platform 上以简单方式引导 Kubernetes。无脚本。<br>
|
|
|
+ <a href="https://github.com/dennyzhang/cheatsheet-kubernetes-A4"><b>cheatsheet-kubernetes-A4</b></a> - A4 纸 Kubernetes 速查表。<br>
|
|
|
+ <a href="https://github.com/kabachook/k8s-security"><b>k8s-security</b></a> - Kubernetes 安全笔记和最佳实践。<br>
|
|
|
+ <a href="https://learnk8s.io/production-best-practices/"><b>kubernetes-production-best-practices</b></a> - 生产就绪 Kubernetes 的最佳实践清单。<br>
|
|
|
+ <a href="https://github.com/freach/kubernetes-security-best-practice"><b>kubernetes-security-best-practice</b></a> - Kubernetes 安全 - 最佳实践指南。<br>
|
|
|
+ <a href="https://github.com/hjacobs/kubernetes-failure-stories"><b>kubernetes-failure-stories</b></a> - 与 Kubernetes 相关的公开故障/恐怖故事汇编。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+#### 手册/教程/指南 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### :black_small_square: Shell/命令行
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/dylanaraps/pure-bash-bible"><b>pure-bash-bible</b></a> - 纯 Bash 替代外部进程的方案集合。<br>
|
|
|
+ <a href="https://github.com/dylanaraps/pure-sh-bible"><b>pure-sh-bible</b></a> - 纯 POSIX sh 替代外部进程的方案集合。<br>
|
|
|
+ <a href="https://github.com/Idnan/bash-guide"><b>bash-guide</b></a> - 学习 Bash 的指南。<br>
|
|
|
+ <a href="https://github.com/denysdovhan/bash-handbook"><b>bash-handbook</b></a> - 面向想要学习 Bash 的人。<br>
|
|
|
+ <a href="https://wiki.bash-hackers.org/start"><b>The Bash Hackers Wiki</b></a> - 保存关于 GNU Bash 的各种文档。<br>
|
|
|
+ <a href="http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html"><b>Shell & Utilities</b></a> - 描述 POSIX 兼容系统提供给应用程序的命令。<br>
|
|
|
+ <a href="https://github.com/jlevy/the-art-of-command-line"><b>the-art-of-command-line</b></a> - 一页掌握命令行。<br>
|
|
|
+ <a href="https://google.github.io/styleguide/shellguide.html"><b>Shell Style Guide</b></a> - Google 发起的开源项目的 Shell 风格指南。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 文本编辑器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://vim.rtorr.com/"><b>Vim Cheat Sheet</b></a> - 出色的多语言 Vim 指南。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: Python
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://awesome-python.com/"><b>Awesome Python</b></a> - 精选的 Python 框架、库、软件和资源列表。<br>
|
|
|
+ <a href="https://github.com/gto76/python-cheatsheet"><b>python-cheatsheet</b></a> - 全面的 Python 速查表。<br>
|
|
|
+ <a href="https://www.pythoncheatsheet.org/"><b>pythoncheatsheet.org</b></a> - 面向初学者和高级开发者的基础参考。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: Sed & Awk 及其他
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://posts.specterops.io/fawk-yeah-advanced-sed-and-awk-usage-parsing-for-pentesters-3-e5727e11a8ad?gi=c8f9506b26b6"><b>F'Awk Yeah!</b></a> - 高级 sed 和 awk 用法(渗透测试人员解析篇 3)。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: \*nix 与网络
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.cyberciti.biz/"><b>nixCraft</b></a> - 面向新手和资深系统管理员的 Linux 和 Unix 教程。<br>
|
|
|
+ <a href="https://www.tecmint.com/"><b>TecMint</b></a> - 面向系统管理员和极客的理想 Linux 博客。<br>
|
|
|
+ <a href="http://www.omnisecu.com/index.php"><b>Omnisecu</b></a> - 免费的网络、系统管理和安全教程。<br>
|
|
|
+ <a href="https://github.com/cirosantilli/linux-cheat"><b>linux-cheat</b></a> - Linux 教程和速查表。最小示例。大多是用户空间 CLI 实用程序。<br>
|
|
|
+ <a href="https://github.com/snori74/linuxupskillchallenge"><b>linuxupskillchallenge</b></a> - 学习系统管理所需的技能。<br>
|
|
|
+ <a href="http://cb.vu/unixtoolbox.xhtml"><b>Unix Toolbox</b></a> - 对 IT 工作或高级用户有用的 Unix/Linux/BSD 命令和任务。<br>
|
|
|
+ <a href="https://linux-kernel-labs.github.io/refs/heads/master/index.html"><b>Linux Kernel Teaching</b></a> - Linux 内核主题讲座和实验合集。<br>
|
|
|
+ <a href="https://peteris.rocks/blog/htop/"><b>htop explained</b></a> - 关于 Linux 上 htop/top 中所有可见内容的解释。<br>
|
|
|
+ <a href="https://linuxguideandhints.com/"><b>Linux Guide and Hints</b></a> - Fedora 和 CentOS 系统管理教程。<br>
|
|
|
+ <a href="https://github.com/NanXiao/strace-little-book"><b>strace-little-book</b></a> - 一本介绍 strace 的小书。<br>
|
|
|
+ <a href="https://github.com/goldshtn/linux-tracing-workshop"><b>linux-tracing-workshop</b></a> - Linux 追踪工具研讨会的示例和动手实验。<br>
|
|
|
+ <a href="https://github.com/bagder/http2-explained"><b>http2-explained</b></a> - 详细解释和记录 HTTP/2 的文档。<br>
|
|
|
+ <a href="https://github.com/bagder/http3-explained"><b>http3-explained</b></a> - 描述 HTTP/3 和 QUIC 协议的文档。<br>
|
|
|
+ <a href="https://www.manning.com/books/http2-in-action"><b>HTTP/2 in Action</b></a> - 对新的 HTTP/2 标准的优秀介绍。<br>
|
|
|
+ <a href="https://www.saminiir.com/lets-code-tcp-ip-stack-1-ethernet-arp/"><b>Let's code a TCP/IP stack</b></a> - 在更深层次学习网络和系统编程的优秀内容。<br>
|
|
|
+ <a href="https://github.com/trimstray/nginx-admins-handbook"><b>Nginx Admin's Handbook</b></a> - 如何提高 NGINX 性能、安全性及其他重要事项。<br>
|
|
|
+ <a href="https://github.com/digitalocean/nginxconfig.io"><b>nginxconfig.io</b></a> - NGINX 配置生成器,如虎添翼。<br>
|
|
|
+ <a href="https://infosec.mozilla.org/guidelines/openssh"><b>openssh guideline</b></a> - 旨在帮助运维团队配置 OpenSSH 服务器和客户端。<br>
|
|
|
+ <a href="https://gravitational.com/blog/ssh-handshake-explained/"><b>SSH Handshake Explained</b></a> - SSH 握手过程相对简短的描述。<br>
|
|
|
+ <a href="https://kb.isc.org/docs/using-this-knowledgebase"><b>ISC's Knowledgebase</b></a> - 关于 BIND 9、ISC DHCP 和 Kea DHCP 的一般信息。<br>
|
|
|
+ <a href="https://packetlife.net/"><b>PacketLife.net</b></a> - 在学习 Cisco CCNP 认证时记录笔记的地方。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 微软
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/infosecn1nja/AD-Attack-Defense"><b>AD-Attack-Defense</b></a> - 使用现代后渗透活动攻击和防御 Active Directory。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 大规模系统
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/donnemartin/system-design-primer"><b>The System Design Primer</b></a> - 学习如何设计大规模系统。<br>
|
|
|
+ <a href="https://github.com/binhnguyennus/awesome-scalability"><b>Awesome Scalability</b></a> - 构建高可扩展、高可用、高稳定性等的最佳实践。<br>
|
|
|
+ <a href="https://engineering.videoblocks.com/web-architecture-101-a3224e126947?gi=a896808d22a"><b>Web Architecture 101</b></a> - 基础架构概念。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 系统加固
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.cisecurity.org/cis-benchmarks/"><b>CIS Benchmarks</b></a> - 100 多种技术的安全配置设置,可作为免费 PDF 获得。<br>
|
|
|
+ <a href="https://highon.coffee/blog/security-harden-centos-7/"><b>Security Harden CentOS 7</b></a> - 引导你完成 CentOS 安全加固所需的步骤。<br>
|
|
|
+ <a href="https://www.lisenet.com/2017/centos-7-server-hardening-guide/"><b>CentOS 7 Server Hardening Guide</b></a> - 优秀的 CentOS 加固指南;熟悉 OpenSCAP。<br>
|
|
|
+ <a href="https://github.com/decalage2/awesome-security-hardening"><b>awesome-security-hardening</b></a> - 安全加固指南、工具和其他资源集合。<br>
|
|
|
+ <a href="https://github.com/trimstray/the-practical-linux-hardening-guide"><b>The Practical Linux Hardening Guide</b></a> - 提供加固 GNU/Linux 系统的高层概述。<br>
|
|
|
+ <a href="https://madaidans-insecurities.github.io/guides/linux-hardening.html"><b>Linux Hardening Guide</b></a> - 如何尽可能加固 Linux 以提升安全性和隐私。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 安全与隐私
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.hackingarticles.in/"><b>Hacking Articles</b></a> - LRaj Chandel 的安全与黑客博客。<br>
|
|
|
+ <a href="https://github.com/toniblyx/my-arsenal-of-aws-security-tools"><b>AWS security tools</b></a> - 使你的 AWS 云环境更安全。<br>
|
|
|
+ <a href="https://inventory.rawsec.ml/index.html"><b>Rawsec's CyberSecurity Inventory</b></a> - 关于网络安全的工具和资源清单。<br>
|
|
|
+ <a href="https://tls.ulfheim.net/"><b>The Illustrated TLS Connection</b></a> - TLS 连接的每个字节都得到解释和重现。<br>
|
|
|
+ <a href="https://github.com/ssllabs/research/wiki/SSL-and-TLS-Deployment-Best-Practices"><b>SSL Research</b></a> - SSL Labs 的 SSL 和 TLS 部署最佳实践。<br>
|
|
|
+ <a href="http://selinuxgame.org/index.html"><b>SELinux Game</b></a> - 通过实践学习 SELinux。解决难题,展示技能。<br>
|
|
|
+ <a href="https://smallstep.com/blog/everything-pki.html"><b>Certificates and PKI</b></a> - 你应该知道但不敢问的关于证书和 PKI 的一切。<br>
|
|
|
+ <a href="https://appsecco.com/books/subdomain-enumeration/"><b>The Art of Subdomain Enumeration</b></a> - 子域名枚举技术参考。<br>
|
|
|
+ <a href="https://lifehacker.com/the-comprehensive-guide-to-quitting-google-1830001964"><b>Quitting Google</b></a> - 退出 Google 的综合指南。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: Web 应用
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.owasp.org/index.php/Main_Page"><b>OWASP</b></a> - 全球性非营利慈善组织,专注于改善软件的安全性。<br>
|
|
|
+ <a href="https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project"><b>OWASP ASVS 3.0.1</b></a> - OWASP 应用安全验证标准项目。<br>
|
|
|
+ <a href="https://github.com/Santandersecurityresearch/asvs"><b>OWASP ASVS 3.0.1 Web App</b></a> - 帮助开发者理解 ASVS 要求的简单 Web 应用。<br>
|
|
|
+ <a href="https://github.com/OWASP/ASVS/tree/master/4.0"><b>OWASP ASVS 4.0</b></a> - 应用安全要求或测试列表。<br>
|
|
|
+ <a href="https://www.owasp.org/index.php/OWASP_Testing_Project"><b>OWASP Testing Guide v4</b></a> - 包含"最佳实践"渗透测试框架。<br>
|
|
|
+ <a href="https://github.com/OWASP/DevGuide"><b>OWASP Dev Guide</b></a> - 这是 OWASP 开发者指南的开发版本。<br>
|
|
|
+ <a href="https://github.com/OWASP/wstg"><b>OWASP WSTG</b></a> - 一个全面的开源 Web 应用安全测试指南。<br>
|
|
|
+ <a href="https://www.owasp.org/index.php/OWASP_API_Security_Project"><b>OWASP API Security Project</b></a> - 专注于 API 安全中十大漏洞。<br>
|
|
|
+ <a href="https://infosec.mozilla.org/guidelines/web_security.html"><b>Mozilla Web Security</b></a> - 帮助运维团队创建安全的 Web 应用程序。<br>
|
|
|
+ <a href="https://github.com/Netflix/security-bulletins"><b>security-bulletins</b></a> - 与 Netflix 开源相关的安全公告。<br>
|
|
|
+ <a href="https://github.com/shieldfy/API-Security-Checklist"><b>API-Security-Checklist</b></a> - 设计、测试和发布 API 时的安全对策。<br>
|
|
|
+ <a href="https://enable-cors.org/index.html"><b>Enable CORS</b></a> - 启用跨源资源共享。<br>
|
|
|
+ <a href="https://appsecwiki.com/#/"><b>Application Security Wiki</b></a> - 旨在将所有应用安全相关资源集中于一处的倡议。<br>
|
|
|
+ <a href="https://github.com/GrrrDog/weird_proxies/wiki"><b>Weird Proxies</b></a> - 反向代理相关攻击;是对各种代理分析的结果。<br>
|
|
|
+ <a href="https://dfir.it/blog/2015/08/12/webshell-every-time-the-same-purpose/"><b>Webshells</b></a> - 关于恶意有效载荷的优秀系列文章。<br>
|
|
|
+ <a href="https://portswigger.net/blog/practical-web-cache-poisoning"><b>Practical Web Cache Poisoning</b></a> - 展示如何通过使用深奥的 Web 功能来入侵网站。<br>
|
|
|
+ <a href="https://github.com/bl4de/research/tree/master/hidden_directories_leaks"><b>Hidden directories and files</b></a> - 作为 Web 应用敏感信息的来源。<br>
|
|
|
+ <a href="https://bo0om.ru/en/"><b>Explosive blog</b></a> - 关于网络安全的优秀博客和渗透测试。<br>
|
|
|
+ <a href="https://www.netsparker.com/security-cookies-whitepaper/"><b>Security Cookies</b></a> - 本文将深入探讨 Cookie 安全性。<br>
|
|
|
+ <a href="https://github.com/GitGuardian/APISecurityBestPractices"><b>APISecurityBestPractices</b></a> - 帮助你保持密钥(API 密钥、数据库凭据、证书)不出现在源代码中。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 全能型
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://lzone.de/cheat-sheet/"><b>LZone Cheat Sheets</b></a> - 所有速查表。<br>
|
|
|
+ <a href="https://github.com/rstacruz/cheatsheets"><b>Dan's Cheat Sheets</b></a> - 大量速查表文档。<br>
|
|
|
+ <a href="https://devhints.io/"><b>Rico's cheatsheets</b></a> - 这是一个适度的速查表集合。<br>
|
|
|
+ <a href="https://devdocs.io/"><b>DevDocs API</b></a> - 将多个 API 文档组合在一个快速、有组织、可搜索的界面中。<br>
|
|
|
+ <a href="https://cheat.sh/"><b>cheat.sh</b></a> - 你需要的唯一速查表。<br>
|
|
|
+ <a href="https://gnulinux.guru/"><b>gnulinux.guru</b></a> - 关于 Bash、Vim 和网络的速查表集合。<br>
|
|
|
+ <a href="https://andreasbm.github.io/web-skills/"><b>Web Skills</b></a> - 作为 Web 开发者需要学习的有用技能可视化概览。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 电子书
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/EbookFoundation/free-programming-books"><b>free-programming-books</b></a> - 多语言免费学习资源列表。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 其他
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://bitvijays.github.io/LFC-VulnerableMachines.html"><b>CTF Series : Vulnerable Machines</b></a> - 可以遵循以下步骤发现漏洞和利用。<br>
|
|
|
+ <a href="https://github.com/manoelt/50M_CTF_Writeup"><b>50M_CTF_Writeup</b></a> - Hackerone 的 5000 万美元 CTF - Writeup。<br>
|
|
|
+ <a href="https://github.com/j00ru/ctf-tasks"><b>ctf-tasks</b></a> - 多年来开发的一个低级 CTF 挑战存档。<br>
|
|
|
+ <a href="https://hshrzd.wordpress.com/how-to-start/"><b>How to start RE/malware analysis?</b></a> - 为初学者收集的一些提示和有用链接。<br>
|
|
|
+ <a href="http://www.kegel.com/c10k.html"><b>The C10K problem</b></a> - 现在是时候让 Web 服务器同时处理一万个客户端了,你不觉得吗?<br>
|
|
|
+ <a href="https://blog.benjojo.co.uk/post/why-is-ethernet-mtu-1500"><b>How 1500 bytes became the MTU of the internet</b></a> - 关于最大传输单元的精彩故事。<br>
|
|
|
+ <a href="http://poormansprofiler.org/"><b>poor man's profiler</b></a> - 类似于 dtrace,但确实没有提供查看程序在阻塞什么的方法。<br>
|
|
|
+ <a href="https://nickcraver.com/blog/2017/05/22/https-on-stack-overflow/"><b>HTTPS on Stack Overflow</b></a> - 这是关于实施 SSL 的漫长旅程故事。<br>
|
|
|
+ <a href="https://drawings.jvns.ca/"><b>Julia's Drawings</b></a> - 一些关于编程和 Unix 世界的绘图,关于系统和调试工具的 zine。<br>
|
|
|
+ <a href="https://github.com/corkami/collisions"><b>Hash collisions</b></a> - 这个优秀的仓库专注于哈希碰撞利用。<br>
|
|
|
+ <a href="https://github.com/in3rsha/sha256-animation"><b>sha256-animation</b></a> - 在你的终端中展示 SHA-256 哈希函数的动画。<br>
|
|
|
+ <a href="https://sha256algorithm.com/"><b>sha256algorithm</b></a> - sha256 算法在线逐步可视化解释。<br>
|
|
|
+ <a href="https://labs.ripe.net/Members/cteusche/bgp-meets-cat"><b>BGP Meets Cat</b></a> - 经过 3072 小时的 BGP 操作,Job Snijders 成功地画出了一只 Nyancat。<br>
|
|
|
+ <a href="https://github.com/benjojo/bgp-battleships"><b>bgp-battleships</b></a> - 通过 BGP 玩战舰游戏。<br>
|
|
|
+ <a href="https://github.com/alex/what-happens-when"><b>What happens when...</b></a> - 你在浏览器中输入 google.com 并按下回车键后会发生什么?<br>
|
|
|
+ <a href="https://github.com/vasanthk/how-web-works"><b>how-web-works</b></a> - 基于 'What happens when...' 仓库。<br>
|
|
|
+ <a href="https://robertheaton.com/2018/11/28/https-in-the-real-world/"><b>HTTPS in the real world</b></a> - 优秀的教程,解释 HTTPS 在真实世界中的工作原理。<br>
|
|
|
+ <a href="https://about.gitlab.com/2018/11/14/how-we-spent-two-weeks-hunting-an-nfs-bug/"><b>Gitlab and NFS bug</b></a> - 我们如何在 Linux 内核中花了两周时间追踪 NFS 错误。<br>
|
|
|
+ <a href="https://about.gitlab.com/2017/02/10/postmortem-of-database-outage-of-january-31/"><b>Gitlab melts down</b></a> - 2017 年 1 月 31 日数据库中断的事后分析及经验教训。<br>
|
|
|
+ <a href="http://www.catb.org/esr/faqs/hacker-howto.html"><b>How To Become A Hacker</b></a> - 如果你想成为黑客,请继续阅读。<br>
|
|
|
+ <a href="http://ithare.com/infographics-operation-costs-in-cpu-clock-cycles/"><b>Operation Costs in CPU</b></a> - 应该有助于估算 CPU 时钟周期中某些操作的成本。<br>
|
|
|
+ <a href="https://cstack.github.io/db_tutorial/"><b>Let's Build a Simple Database</b></a> - 用 C 从零开始编写 SQLite 克隆。<br>
|
|
|
+ <a href="https://djhworld.github.io/post/2019/05/21/i-dont-know-how-cpus-work-so-i-simulated-one-in-code/"><b>simple-computer</b></a> - 了解计算机底层工作原理的优秀资源。<br>
|
|
|
+ <a href="https://www.troyhunt.com/working-with-154-million-records-on/"><b>The story of "Have I been pwned?"</b></a> - 在 Azure Table Storage 上处理 1.54 亿条记录。<br>
|
|
|
+ <a href="https://www.top500.org/"><b>TOP500 Supercomputers</b></a> - 展示 500 台最强大的商用计算机系统。<br>
|
|
|
+ <a href="https://www.shellntel.com/blog/2017/2/8/how-to-build-a-8-gpu-password-cracker"><b>How to build a 8 GPU password cracker</b></a> - 像桌面组件一样的数小时挫折。<br>
|
|
|
+ <a href="https://home.cern/science/computing"><b>CERN Data Centre</b></a> - CERN 计算环境的 3D 可视化(及更多)。<br>
|
|
|
+ <a href="http://howfuckedismydatabase.com/"><b>How fucked is my database</b></a> - 用这个方便的网站评估你的数据库有多糟糕。<br>
|
|
|
+ <a href="https://krisbuytaert.be/blog/linux-troubleshooting-101-2016-edition/index.html"><b>Linux Troubleshooting 101 , 2016 Edition</b></a> - 一切都是 DNS 问题...<br>
|
|
|
+ <a href="https://open.buffer.com/5-whys-process/"><b>Five Whys</b></a> - 你知道问题是什么,但无法解决?<br>
|
|
|
+ <a href="https://gvnshtn.com/maersk-me-notpetya/"><b>Maersk, me & notPetya</b></a> - 勒索软件如何成功劫持数百个域控制器?<br>
|
|
|
+ <a href="https://howhttps.works/"><b>howhttps.works</b></a> - HTTPS 如何工作 ...以漫画形式!<br>
|
|
|
+ <a href="https://howdns.works/"><b>howdns.works</b></a> - 关于 DNS 如何工作的有趣且多彩的解释。<br>
|
|
|
+ <a href="https://postgresqlco.nf/en/doc/param/"><b>POSTGRESQLCO.NF</b></a> - 你的 postgresql.conf 文档和建议。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+#### 精选列表 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### :black_small_square: 运维/DevOps
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/kahun/awesome-sysadmin"><b>Awesome Sysadmin</b></a> - 令人惊叹的开源系统管理员资源。<br>
|
|
|
+ <a href="https://github.com/alebcay/awesome-shell"><b>Awesome Shell</b></a> - 令人惊叹的命令行框架、工具包、指南和小工具。<br>
|
|
|
+ <a href="https://github.com/learnbyexample/Command-line-text-processing"><b>Command-line-text-processing</b></a> - 从查找文本到搜索替换,从排序到美化等等。<br>
|
|
|
+ <a href="https://github.com/caesar0301/awesome-pcaptools"><b>Awesome Pcaptools</b></a> - 由其他研究人员开发的用于处理网络数据包的工具集合。<br>
|
|
|
+ <a href="https://github.com/zoidbergwill/awesome-ebpf"><b>awesome-ebpf</b></a> - 与 eBPF 相关的优秀项目精选列表。<br>
|
|
|
+ <a href="https://github.com/leandromoreira/linux-network-performance-parameters"><b>Linux Network Performance</b></a> - 一些网络 sysctl 变量在 Linux/Kernel 网络流中的位置。<br>
|
|
|
+ <a href="https://github.com/dhamaniasad/awesome-postgres"><b>Awesome Postgres</b></a> - 优秀的 PostgreSQL 软件、库、工具和资源列表。<br>
|
|
|
+ <a href="https://github.com/enochtangg/quick-SQL-cheatsheet"><b>quick-SQL-cheatsheet</b></a> - 所有 SQL 查询及其用法的快速提醒。<br>
|
|
|
+ <a href="https://github.com/Kickball/awesome-selfhosted"><b>Awesome-Selfhosted</b></a> - 可以本地托管的自由软件网络服务和 Web 应用列表。<br>
|
|
|
+ <a href="https://wiki.archlinux.org/index.php/List_of_applications"><b>List of applications</b></a> - 按类别排序的巨大应用列表,作为查找软件包的参考。<br>
|
|
|
+ <a href="https://github.com/InterviewMap/CS-Interview-Knowledge-Map"><b>CS-Interview-Knowledge-Map</b></a> - 构建最佳的面试地图。<br>
|
|
|
+ <a href="https://github.com/Tikam02/DevOps-Guide"><b>DevOps-Guide</b></a> - 从基础到高级的 DevOps 指南,含面试问题和笔记。<br>
|
|
|
+ <a href="https://issue.freebsdfoundation.org/publication/?m=33057&l=1&view=issuelistBrowser"><b>FreeBSD Journal</b></a> - 关于 FreeBSD 和其他重要内容的优秀期刊杂志列表。<br>
|
|
|
+ <a href="https://github.com/bregman-arie/devops-interview-questions"><b>devops-interview-questions</b></a> - 包含关于各种 DevOps 和 SRE 相关主题的面试问题。<br></p>
|
|
|
+
|
|
|
+##### :black_small_square: 开发者
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/kamranahmedse/developer-roadmap"><b>Web Developer Roadmap</b></a> - 路线图、文章和资源帮助你选择路径、学习和提高。<br>
|
|
|
+ <a href="https://github.com/thedaviddias/Front-End-Checklist"><b>Front-End-Checklist</b></a> - 现代网站和细致开发者的完美前端检查清单。<br>
|
|
|
+ <a href="https://github.com/thedaviddias/Front-End-Performance-Checklist"><b>Front-End-Performance-Checklist</b></a> - 比其他人跑得更快的前端性能检查清单。<br>
|
|
|
+ <a href="https://rszalski.github.io/magicmethods/"><b>Python's Magic Methods</b></a> - 什么是魔术方法?它们是面向对象 Python 中的一切。<br>
|
|
|
+ <a href="https://github.com/satwikkansal/wtfpython"><b>wtfpython</b></a> - 令人惊讶的 Python 片段和鲜为人知的特性集合。<br>
|
|
|
+ <a href="https://github.com/twhite96/js-dev-reads"><b>js-dev-reads</b></a> - 面向有辨别力的 Web 开发者的书籍和文章列表。<br>
|
|
|
+ <a href="https://github.com/RomuloOliveira/commit-messages-guide"><b>Commit messages guide</b></a> - 理解提交消息重要性的指南。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 安全/渗透测试
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/qazbnm456/awesome-web-security"><b>Awesome Web Security</b></a> - 精选的 Web 安全材料和资源列表。<br>
|
|
|
+ <a href="https://github.com/joe-shenouda/awesome-cyber-skills"><b>awesome-cyber-skills</b></a> - 精选的黑客环境列表,你可以在其中训练你的网络技能。<br>
|
|
|
+ <a href="https://github.com/devsecops/awesome-devsecops"><b>awesome-devsecops</b></a> - 权威的 DevSecOps 工具列表。<br>
|
|
|
+ <a href="https://github.com/jivoi/awesome-osint"><b>awesome-osint</b></a> - 精选的令人惊叹的 OSINT 列表。<br>
|
|
|
+ <a href="https://github.com/HolyBugx/HolyTips"><b>HolyTips</b></a> - 关于漏洞赏金狩猎和 Web 应用安全的提示和教程。<br>
|
|
|
+ <a href="https://github.com/hslatman/awesome-threat-intelligence"><b>awesome-threat-intelligence</b></a> - 精选的威胁情报资源列表。<br>
|
|
|
+ <a href="https://github.com/infosecn1nja/Red-Teaming-Toolkit"><b>Red-Teaming-Toolkit</b></a> - 帮助红队行动的开源和商业工具集合。<br>
|
|
|
+ <a href="https://github.com/snoopysecurity/awesome-burp-extensions"><b>awesome-burp-extensions</b></a> - 精选的令人惊叹的 Burp 扩展列表。<br>
|
|
|
+ <a href="https://github.com/Hack-with-Github/Free-Security-eBooks"><b>Free Security eBooks</b></a> - 免费安全和黑客电子书列表。<br>
|
|
|
+ <a href="https://github.com/yeahhub/Hacking-Security-Ebooks"><b>Hacking-Security-Ebooks</b></a> - 前 100 本黑客与安全电子书。<br>
|
|
|
+ <a href="https://github.com/nikitavoloboev/privacy-respecting"><b>privacy-respecting</b></a> - 尊重隐私的服务和软件精选列表。<br>
|
|
|
+ <a href="https://github.com/wtsxDev/reverse-engineering"><b>reverse-engineering</b></a> - 精选的逆向工程资源列表。<br>
|
|
|
+ <a href="https://github.com/michalmalik/linux-re-101"><b>linux-re-101</b></a> - Linux 逆向工程资源集合。<br>
|
|
|
+ <a href="https://github.com/onethawt/reverseengineering-reading-list"><b>reverseengineering-reading-list</b></a> - 逆向工程文章、书籍和论文列表。<br>
|
|
|
+ <a href="https://github.com/0xInfection/Awesome-WAF"><b>Awesome-WAF</b></a> - 精选的 Web 应用防火墙相关内容列表。<br>
|
|
|
+ <a href="https://github.com/jakejarvis/awesome-shodan-queries"><b>awesome-shodan-queries</b></a> - 有趣、好笑和令人沮丧的插入 shodan.io 的搜索查询。<br>
|
|
|
+ <a href="https://github.com/danielmiessler/RobotsDisallowed"><b>RobotsDisallowed</b></a> - 最常见和最有趣的 robots.txt 禁止目录精选列表。<br>
|
|
|
+ <a href="https://github.com/Kayzaks/HackingNeuralNetworks"><b>HackingNeuralNetworks</b></a> - 关于利用和防御神经网络的小型课程。<br>
|
|
|
+ <a href="https://gist.github.com/joepie91/7e5cad8c0726fd6a5e90360a754fc568"><b>wildcard-certificates</b></a> - 为什么你可能不应该使用通配符证书。<br>
|
|
|
+ <a href="https://gist.github.com/joepie91/5a9909939e6ce7d09e29"><b>Don't use VPN services</b></a> - 这就是每个第三方"VPN 提供商"所做的。<br>
|
|
|
+ <a href="https://github.com/InQuest/awesome-yara"><b>awesome-yara</b></a> - 精选的 YARA 规则、工具和人员列表。<br>
|
|
|
+ <a href="https://github.com/drduh/macOS-Security-and-Privacy-Guide"><b>macOS-Security-and-Privacy-Guide</b></a> - 保护和改善 macOS 隐私的指南。<br>
|
|
|
+ <a href="https://github.com/usnistgov/macos_security"><b>macos_security</b></a> - macOS 安全合规项目。<br>
|
|
|
+ <a href="https://github.com/PaulSec/awesome-sec-talks"><b>awesome-sec-talks</b></a> - 精选的安全讲座列表。<br>
|
|
|
+ <a href="https://github.com/k4m4/movies-for-hackers"><b>Movies for Hackers</b></a> - 每个黑客和赛博朋克必须观看的电影列表。<br>
|
|
|
+ <a href="https://github.com/danieldizzy/Cryptography_1"><b>Cryptography_1</b></a> - 学习 Prof. Dan Boneh 斯坦福密码学课程时使用的材料。<br>
|
|
|
+ <a href="https://github.com/ashutosh1206/Crypton"><b>Crypton</b></a> - 学习和练习攻击性与防御性密码学的库。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 其他
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.cheatography.com/"><b>Cheatography</b></a> - 超过 3000 份免费速查表、复习辅助和快速参考。<br>
|
|
|
+ <a href="https://github.com/mre/awesome-static-analysis"><b>awesome-static-analysis</b></a> - 所有编程语言的静态分析工具。<br>
|
|
|
+ <a href="https://github.com/ossu/computer-science"><b>computer-science</b></a> - 通往计算机科学免费自学教育的路径。<br>
|
|
|
+ <a href="https://github.com/danluu/post-mortems"><b>post-mortems</b></a> - 事后分析集合(配置错误、硬件故障等)。<br>
|
|
|
+ <a href="https://github.com/danistefanovic/build-your-own-x"><b>build-your-own-x</b></a> - 构建你自己的(在此插入技术)。<br>
|
|
|
+ <a href="https://github.com/rby90/Project-Based-Tutorials-in-C"><b>Project-Based-Tutorials-in-C</b></a> - 精选的 C 语言项目基础教程列表。<br>
|
|
|
+ <a href="https://github.com/kylelobo/The-Documentation-Compendium"><b>The-Documentation-Compendium</b></a> - 各种 README 模板和编写高质量文档的技巧。<br>
|
|
|
+ <a href="https://github.com/mahmoud/awesome-python-applications"><b>awesome-python-applications</b></a> - 运行良好的自由软件,也恰好是开源 Python。<br>
|
|
|
+ <a href="https://github.com/awesomedata/awesome-public-datasets"><b>awesome-public-datasets</b></a> - 以主题为中心的优质开放数据集列表。<br>
|
|
|
+ <a href="https://github.com/Sahith02/machine-learning-algorithms"><b>machine-learning-algorithms</b></a> - 所有机器学习算法和概念的精选列表。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+#### 博客/播客/视频 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### :black_small_square: 运维/DevOps
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.youtube.com/watch?v=nAFpkV5-vuI"><b>Varnish for PHP developers</b></a> - Mattias Geniar 关于 Varnish 的非常有趣的演讲。<br>
|
|
|
+ <a href="https://www.youtube.com/watch?v=CZ3wIuvmHeM"><b>A Netflix Guide to Microservices</b></a> - 讨论 Netflix 混乱而充满活力的微服务世界。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 开发者
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.youtube.com/watch?v=yOyaJXpAYZQ"><b>Comparing C to machine lang</b></a> - 将一个简单的 C 应用与该程序编译后的机器代码进行比较。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 极客人物
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="http://www.brendangregg.com/"><b>Brendan Gregg's Blog</b></a> - 计算性能和云计算领域的行业专家。<br>
|
|
|
+ <a href="https://gynvael.coldwind.pl/"><b>Gynvael "GynDream" Coldwind</b></a> - Google 的 IT 安全工程师。<br>
|
|
|
+ <a href="http://lcamtuf.coredump.cx/"><b>Michał "lcamtuf" Zalewski</b></a> - 白帽黑客,计算机安全专家。<br>
|
|
|
+ <a href="https://ma.ttias.be/"><b>Mattias Geniar</b></a> - 开发者、系统管理员、博主、播客主持人和公共演讲者。<br>
|
|
|
+ <a href="https://nickcraver.com/"><b>Nick Craver</b></a> - Stack Exchange 的软件开发者和系统管理员。<br>
|
|
|
+ <a href="https://scotthelme.co.uk/"><b>Scott Helme</b></a> - 安全研究员、演讲者,securityheaders.com 和 report-uri.com 的创始人。<br>
|
|
|
+ <a href="https://krebsonsecurity.com/"><b>Brian Krebs</b></a> - 前华盛顿邮报记者,现在是一名独立调查记者。<br>
|
|
|
+ <a href="https://www.schneier.com/"><b>Bruce Schneier</b></a> - 国际知名的安全技术专家,被称为"安全大师"。<br>
|
|
|
+ <a href="https://chrissymorgan.co.uk/"><b>Chrissy Morgan</b></a> - 实践学习的倡导者,也参与漏洞赏金计划。<br>
|
|
|
+ <a href="https://blog.zsec.uk/"><b>Andy Gill</b></a> - 一个内心是黑客的高级渗透测试人员。<br>
|
|
|
+ <a href="https://danielmiessler.com/"><b>Daniel Miessler</b></a> - 网络安全专家和作家。<br>
|
|
|
+ <a href="https://samy.pl/"><b>Samy Kamkar</b></a> - 美国隐私和安全研究员,计算机黑客。<br>
|
|
|
+ <a href="https://www.j4vv4d.com/"><b>Javvad Malik</b></a> - AlienVault 的安全倡导者、博主、活动演讲者和行业评论员。<br>
|
|
|
+ <a href="https://www.grahamcluley.com/"><b>Graham Cluley</b></a> - 公共演讲者和独立计算机安全分析师。<br>
|
|
|
+ <a href="https://security.szurek.pl/"><b>Kacper Szurek</b></a> - ESET 的检测工程师。<br>
|
|
|
+ <a href="https://www.troyhunt.com/"><b>Troy Hunt</b></a> - Web 安全专家,以安全主题的公共教育和推广而闻名。<br>
|
|
|
+ <a href="https://raymii.org/s/index.html"><b>raymii.org</b></a> - 专门构建高可用云环境的系统管理员。<br>
|
|
|
+ <a href="https://robert.penz.name/"><b>Robert Penz</b></a> - IT 安全专家。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 极客博客
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://linux-audit.com/"><b>Linux Audit</b></a> - Michael Boelen 关于 Linux 审计、加固和合规的安全博客。<br>
|
|
|
+ <a href="https://linuxsecurity.expert/"><b>Linux Security Expert</b></a> - 培训、教程、检查清单、安全工具等。<br>
|
|
|
+ <a href="http://www.grymoire.com/"><b>The Grymoire</b></a> - 面向巫师的实用咒语集合,无论你是计算机巫师、魔术师还是其他。<br>
|
|
|
+ <a href="https://www.secjuice.com"><b>Secjuice</b></a> - 信息安全领域唯一的非营利、独立和志愿者主导的出版物。<br>
|
|
|
+ <a href="https://duo.com/decipher"><b>Decipher</b></a> - 启发和传递信息的安全新闻。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 极客供应商博客
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.tenable.com/podcast"><b>Tenable Podcast</b></a> - 与网络暴露等相关的对话和采访。<br>
|
|
|
+ <a href="https://nakedsecurity.sophos.com/"><b>Sophos</b></a> - 威胁新闻室,为你提供关于计算机安全问题的新闻、观点、建议和研究。<br>
|
|
|
+ <a href="https://www.tripwire.com/state-of-security/"><b>Tripwire State of Security</b></a> - 展示关于当前安全问题的最新新闻、趋势和见解的博客。<br>
|
|
|
+ <a href="https://blog.malwarebytes.com/"><b>Malwarebytes Labs Blog</b></a> - 旨在提供关于网络安全的内部新闻的安全博客。<br>
|
|
|
+ <a href="https://www.trustedsec.com/category/articles/"><b>TrustedSec</b></a> - 关于网络安全的最新新闻和趋势。<br>
|
|
|
+ <a href="https://portswigger.net/blog"><b>PortSwigger Web Security Blog</b></a> - 关于 Web 应用安全漏洞和我们 Web 安全团队的最佳提示。<br>
|
|
|
+ <a href="https://www.alienvault.com/blogs"><b>AT&T Cybersecurity blog</b></a> - 关于新兴威胁的新闻和简化威胁检测的实用建议。<br>
|
|
|
+ <a href="https://thycotic.com/company/blog/"><b>Thycotic</b></a> - CISO 和 IT 管理员了解行业趋势、IT 安全等的地方。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 极客网络安全播客
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://risky.biz/netcasts/risky-business/"><b>Risky Business</b></a> - 每周信息安全播客,提供新闻和深度采访。<br>
|
|
|
+ <a href="https://www.vice.com/en_us/topic/cyber"><b>Cyber, by Motherboard</b></a> - 关于网络安全的故事和想法。<br>
|
|
|
+ <a href="https://www.tenable.com/podcast"><b>Tenable Podcast</b></a> - 与网络暴露等相关的对话和采访。<br>
|
|
|
+ <a href="https://podcasts.apple.com/gb/podcast/cybercrime-investigations/id1428801405"><b>Cybercrime Investigations</b></a> - Geoff White 关于网络犯罪的播客。<br>
|
|
|
+ <a href="https://themanyhats.club/tag/episodes/"><b>The many hats club</b></a> - 收录来自广泛信息安全领域人士(白帽、灰帽和黑帽)的故事。<br>
|
|
|
+ <a href="https://darknetdiaries.com/"><b>Darknet Diaries</b></a> - 来自互联网黑暗面的真实故事。<br>
|
|
|
+ <a href="https://www.youtube.com/playlist?list=PL423I_gHbWUXah3dmt_q_XNp0NlGAKjis"><b>OSINTCurious Webcasts</b></a> - 帮助人们在 OSINT 中取得成功的好奇心。<br>
|
|
|
+ <a href="https://www.youtube.com/user/SecurityWeeklyTV"><b>Security Weekly</b></a> - 最新的信息安全和黑客新闻。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 极客网络安全视频博客
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.youtube.com/channel/UCzvJStjySZVvOBsPl-Vgj0g"><b>rev3rse security</b></a> - 攻击性、二进制利用、Web 应用安全、加固、红队、蓝队。<br>
|
|
|
+ <a href="https://www.youtube.com/channel/UClcE-kVhqyiHCcjYwcpfj9w"><b>LiveOverflow</b></a> - 比典型付费在线课程更高级的主题 - 但免费。<br>
|
|
|
+ <a href="https://www.youtube.com/infoseccynic"><b>J4vv4D</b></a> - 关于我们互联网安全的重要信息。<br>
|
|
|
+ <a href="https://cybertalks.co.uk/"><b>CyberTalks</b></a> - 关于网络安全的讲座、采访和文章。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 最佳个人 Twitter 账号
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://twitter.com/blackroomsec"><b>@blackroomsec</b></a> - 白帽黑客/渗透测试人员。1990 年星际扫雷冠军。<br>
|
|
|
+ <a href="https://twitter.com/MarcoCiappelli"><b>@MarcoCiappelli</b></a> - @ITSPmagazine 联合创始人,IT 安全与社会的交汇点。<br>
|
|
|
+ <a href="https://twitter.com/binitamshah"><b>@binitamshah</b></a> - Linux 布道者。恶意软件。内核开发。安全爱好者。<br>
|
|
|
+ <a href="https://twitter.com/joe_carson"><b>@joe_carson</b></a> - 信息安全专业人士和技术极客。<br>
|
|
|
+ <a href="https://twitter.com/mikko"><b>@mikko</b></a> - F-Secure CRO、逆向工程师、TED 演讲者、超级反派。<br>
|
|
|
+ <a href="https://twitter.com/esrtweet"><b>@esrtweet</b></a> - 通常被称为 ESR,美国软件开发者,开源软件倡导者。<br>
|
|
|
+ <a href="https://twitter.com/gynvael"><b>@gynvael</b></a> - 安全研究员/程序员,@DragonSectorCTF 创始人/选手,技术主播。<br>
|
|
|
+ <a href="https://twitter.com/x0rz"><b>@x0rz</b></a> - 安全研究员和网络观察者。<br>
|
|
|
+ <a href="https://twitter.com/hasherezade"><b>@hasherezade</b></a> - 程序员,恶意软件分析师。PEbear、PEsieve、libPeConv 的作者。<br>
|
|
|
+ <a href="https://twitter.com/TinkerSec"><b>@TinkerSec</b></a> - 修补匠、密码朋克、黑客。<br>
|
|
|
+ <a href="https://twitter.com/alisaesage"><b>@alisaesage</b></a> - 独立黑客和研究员。<br>
|
|
|
+ <a href="https://twitter.com/SwiftOnSecurity"><b>@SwiftOnSecurity</b></a> - 系统安全、工业安全、系统管理员,decentsecurity.com 作者。<br>
|
|
|
+ <a href="https://twitter.com/dakami"><b>@dakami</b></a> - 仅有的七个有权限恢复 DNS 根密钥的人之一。<br>
|
|
|
+ <a href="https://twitter.com/samykamkar"><b>@samykamkar</b></a> - 著名的"灰帽"黑客、安全研究员、MySpace "Samy"蠕虫创建者。<br>
|
|
|
+ <a href="https://twitter.com/securityweekly"><b>@securityweekly</b></a> - Security Weekly 播客网络的创始人和 CTO。<br>
|
|
|
+ <a href="https://twitter.com/jack_daniel"><b>@jack_daniel</b></a> - @SecurityBSides 联合创始人。<br>
|
|
|
+ <a href="https://twitter.com/thegrugq"><b>@thegrugq</b></a> - 安全研究员。<br>
|
|
|
+ <a href="https://twitter.com/matthew_d_green"><b>@matthew_d_green</b></a> - 密码学家,约翰霍普金斯大学教授。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 最佳商业 Twitter 账号
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://twitter.com/haveibeenpwned"><b>@haveibeenpwned</b></a> - 检查你的账户是否在数据泄露中被入侵。<br>
|
|
|
+ <a href="https://twitter.com/bugcrowd"><b>@bugcrowd</b></a> - 比任何其他众包安全平台受到更多财富 500 强企业信赖。<br>
|
|
|
+ <a href="https://twitter.com/Malwarebytes"><b>@Malwarebytes</b></a> - 最受信赖的安全公司。无与伦比的威胁可见性。<br>
|
|
|
+ <a href="https://twitter.com/sansforensics"><b>@sansforensics</b></a> - 世界领先的数字取证和事件响应提供商。<br>
|
|
|
+ <a href="https://twitter.com/attcyber"><b>@attcyber</b></a> - AT&T 网络安全端到端技术提供威胁情报等。<br>
|
|
|
+ <a href="https://twitter.com/TheManyHatsClub"><b>@TheManyHatsClub</b></a> - 以信息安全为重点的播客和来自各行各业的个人团体。<br>
|
|
|
+ <a href="https://twitter.com/hedgehogsec"><b>@hedgehogsec</b></a> - Hedgehog Cyber。直布罗陀和曼彻斯特顶级精品信息安全公司。<br>
|
|
|
+ <a href="https://twitter.com/NCSC"><b>@NCSC</b></a> - 国家网络安全中心。帮助使英国成为最安全的在线生活和工作之地。<br>
|
|
|
+ <a href="https://twitter.com/Synacktiv"><b>@Synacktiv</b></a> - IT 安全专家。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 一段历史
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="http://web.archive.org/web/20190221103734/https://ftp.arl.army.mil/~mike/howto/"><b>How to Do Things at ARL</b></a> - 如何配置调制解调器、扫描图像、刻录 CD-ROM 等。<b>*</b><br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 其他
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.youtube.com/watch?v=3QnD2c4Xovk"><b>Diffie-Hellman Key Exchange (short version)</b></a> - Diffie-Hellman 密钥交换的工作原理。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+#### 黑客/渗透测试 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### :black_small_square: 渗透测试工具库
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="http://www.syhunt.com/sandcat/"><b>Sandcat Browser</b></a> - 一个面向渗透测试的浏览器,内置大量高级功能。<br>
|
|
|
+ <a href="https://www.metasploit.com/"><b>Metasploit</b></a> - 用于系统、Web 等多种目标渗透测试的工具和框架。<br>
|
|
|
+ <a href="https://portswigger.net/burp"><b>Burp Suite</b></a> - Web 应用安全测试工具,拦截代理用于重放、注入、扫描和模糊测试。<br>
|
|
|
+ <a href="https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project"><b>OWASP Zed Attack Proxy</b></a> - 拦截代理,用于重放、注入、扫描和模糊测试 HTTP 请求。<br>
|
|
|
+ <a href="http://w3af.org/"><b>w3af</b></a> - Web 应用攻击和审计框架。<br>
|
|
|
+ <a href="https://mitmproxy.org/"><b>mitmproxy</b></a> - 面向渗透测试人员的交互式支持 TLS 的拦截 HTTP 代理。<br>
|
|
|
+ <a href="https://cirt.net/Nikto2"><b>Nikto2</b></a> - Web 服务器扫描器,对 Web 服务器进行全面的多项测试。<br>
|
|
|
+ <a href="http://sqlmap.org/"><b>sqlmap</b></a> - 自动检测和利用 SQL 注入漏洞的工具。<br>
|
|
|
+ <a href="https://github.com/lanmaster53/recon-ng"><b>Recon-ng</b></a> - 用 Python 编写的全功能 Web 侦察框架。<br>
|
|
|
+ <a href="https://github.com/Tib3rius/AutoRecon"><b>AutoRecon</b></a> - 执行服务自动枚举的网络侦察工具。<br>
|
|
|
+ <a href="https://www.faradaysec.com/"><b>Faraday</b></a> - 集成多用户渗透测试环境。<br>
|
|
|
+ <a href="https://github.com/s0md3v/Photon"><b>Photon</b></a> - 为 OSINT 设计的极速爬虫。<br>
|
|
|
+ <a href="https://github.com/s0md3v/XSStrike"><b>XSStrike</b></a> - 最先进的 XSS 检测套件。<br>
|
|
|
+ <a href="https://github.com/1N3/Sn1per"><b>Sn1per</b></a> - 面向攻击性安全专家的自动化渗透测试框架。<br>
|
|
|
+ <a href="https://github.com/future-architect/vuls"><b>vuls</b></a> - 适用于 Linux、FreeBSD 等的无代理漏洞扫描器。<br>
|
|
|
+ <a href="https://github.com/google/tsunami-security-scanner"><b>tsunami</b></a> - 具有可扩展插件系统的通用网络安全扫描器。<br>
|
|
|
+ <a href="https://github.com/michenriksen/aquatone"><b>aquatone</b></a> - 域名俯瞰工具。<br>
|
|
|
+ <a href="https://github.com/GitHackTools/BillCipher"><b>BillCipher</b></a> - 针对网站或 IP 地址的信息收集工具。<br>
|
|
|
+ <a href="https://github.com/Ekultek/WhatWaf"><b>WhatWaf</b></a> - 检测和绕过 Web 应用防火墙及保护系统。<br>
|
|
|
+ <a href="https://github.com/s0md3v/Corsy"><b>Corsy</b></a> - CORS 错误配置扫描器。<br>
|
|
|
+ <a href="https://github.com/evyatarmeged/Raccoon"><b>Raccoon</b></a> - 用于侦察和漏洞扫描的高性能攻击性安全工具。<br>
|
|
|
+ <a href="https://github.com/Nekmo/dirhunt"><b>dirhunt</b></a> - 无需暴力破解即可查找 Web 目录。<br>
|
|
|
+ <a href="https://www.openwall.com/john/"><b>John The Ripper</b></a> - 快速密码破解器,适用于多种 Unix、Windows 等。<br>
|
|
|
+ <a href="https://hashcat.net/hashcat/"><b>hashcat</b></a> - 世界上最快速、最先进的密码恢复工具。<br>
|
|
|
+ <a href="http://lcamtuf.coredump.cx/p0f3/"><b>p0f</b></a> - 识别任何偶然 TCP/IP 通信背后玩家的工具。<br>
|
|
|
+ <a href="https://github.com/mozilla/ssh_scan"><b>ssh_scan</b></a> - 原型 SSH 配置和策略扫描器。<br>
|
|
|
+ <a href="https://github.com/woj-ciech/LeakLooker"><b>LeakLooker</b></a> - 查找开放数据库 - 由 Binaryedge.io 提供支持。<br>
|
|
|
+ <a href="https://github.com/offensive-security/exploitdb"><b>exploitdb</b></a> - 来自漏洞利用数据库的可搜索存档。<br>
|
|
|
+ <a href="https://github.com/vulnersCom/getsploit"><b>getsploit</b></a> - 用于搜索和下载漏洞利用的命令行实用程序。<br>
|
|
|
+ <a href="https://github.com/zardus/ctf-tools"><b>ctf-tools</b></a> - 安全研究工具的安装脚本。<br>
|
|
|
+ <a href="https://github.com/Gallopsled/pwntools"><b>pwntools</b></a> - CTF 框架和漏洞利用开发库。<br>
|
|
|
+ <a href="https://github.com/bl4de/security-tools"><b>security-tools</b></a> - 主要用 Python 创建的小型安全工具集合。CTF、渗透测试等。<br>
|
|
|
+ <a href="https://github.com/leonteale/pentestpackage"><b>pentestpackage</b></a> - 渗透测试脚本包。<br>
|
|
|
+ <a href="https://github.com/dloss/python-pentest-tools"><b>python-pentest-tools</b></a> - 面向渗透测试人员的 Python 工具。<br>
|
|
|
+ <a href="https://github.com/fuzzdb-project/fuzzdb"><b>fuzzdb</b></a> - 用于黑盒应用故障注入的攻击模式和原语字典。<br>
|
|
|
+ <a href="https://github.com/google/AFL"><b>AFL</b></a> - Google 维护的免费软件 Fuzzer。<br>
|
|
|
+ <a href="https://github.com/AFLplusplus/AFLplusplus"><b>AFL++</b></a> - 带有社区补丁的 AFL。<br>
|
|
|
+ <a href="https://github.com/google/syzkaller"><b>syzkaller</b></a> - 无监督、覆盖率引导的内核 Fuzzer。<br>
|
|
|
+ <a href="https://github.com/pwndbg/pwndbg"><b>pwndbg</b></a> - 利用 GDB 进行漏洞利用开发和逆向工程变得更简单。<br>
|
|
|
+ <a href="https://github.com/longld/peda"><b>GDB PEDA</b></a> - GDB 的 Python 漏洞利用开发辅助。<br>
|
|
|
+ <a href="https://www.hex-rays.com/products/ida/index.shtml"><b>IDA</b></a> - 多处理器反汇编器和调试器,适用于逆向工程恶意软件。<br>
|
|
|
+ <a href="https://github.com/radare/radare2"><b>radare2</b></a> - 逆向工程和分析二进制文件的框架。<br>
|
|
|
+ <a href="https://github.com/threat9/routersploit"><b>routersploit</b></a> - 针对嵌入式设备的漏洞利用框架。<br>
|
|
|
+ <a href="https://github.com/NationalSecurityAgency/ghidra"><b>Ghidra</b></a> - 软件逆向工程框架。<br>
|
|
|
+ <a href="https://cutter.re/"><b>Cutter</b></a> - 集成 Ghidra 反编译器的 SRE 平台。<br>
|
|
|
+ <a href="https://github.com/salesforce/vulnreport"><b>Vulnreport</b></a> - Salesforce 产品安全的开源渗透测试管理和自动化平台。<br>
|
|
|
+ <a href="https://github.com/sc0tfree/mentalist"><b>Mentalist</b></a> - 自定义字典生成的图形化工具。<br>
|
|
|
+ <a href="https://github.com/archerysec/archerysec"><b>archerysec</b></a> - 漏洞评估和管理,帮助执行扫描和管理漏洞。<br>
|
|
|
+ <a href="https://github.com/j3ssie/Osmedeus"><b>Osmedeus</b></a> - 用于侦察和漏洞扫描的全自动攻击性安全工具。<br>
|
|
|
+ <a href="https://github.com/beefproject/beef"><b>beef</b></a> - 浏览器漏洞利用框架项目。<br>
|
|
|
+ <a href="https://github.com/NullArray/AutoSploit"><b>AutoSploit</b></a> - 自动化批量漏洞利用工具。<br>
|
|
|
+ <a href="https://github.com/TH3xACE/SUDO_KILLER"><b>SUDO_KILLER</b></a> - 识别和利用 sudo 规则错误配置和漏洞的工具。<br>
|
|
|
+ <a href="https://github.com/VirusTotal/yara"><b>yara</b></a> - 模式匹配瑞士军刀。<br>
|
|
|
+ <a href="https://github.com/gentilkiwi/mimikatz"><b>mimikatz</b></a> - 一个用于玩弄 Windows 安全的小工具。<br>
|
|
|
+ <a href="https://github.com/sherlock-project/sherlock"><b>sherlock</b></a> - 通过用户名跨社交网络搜索社交媒体账户。<br>
|
|
|
+ <a href="https://owasp.org/www-project-threat-dragon/"><b>OWASP Threat Dragon</b></a> - 用于创建威胁模型图表和记录可能威胁的工具。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 渗透测试书签集合
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="http://www.pentest-standard.org/index.php/Main_Page"><b>PTES</b></a> - 渗透测试执行标准。<br>
|
|
|
+ <a href="https://www.amanhardikar.com/mindmaps/Practice.html"><b>Pentests MindMap</b></a> - 带有易受攻击应用和系统的惊人思维导图。<br>
|
|
|
+ <a href="https://www.amanhardikar.com/mindmaps/webapptest.html"><b>WebApps Security Tests MindMap</b></a> - Web 应用安全测试的不可思议思维导图。<br>
|
|
|
+ <a href="https://brutelogic.com.br/blog/"><b>Brute XSS</b></a> - 掌握跨站脚本的艺术。<br>
|
|
|
+ <a href="https://portswigger.net/web-security/cross-site-scripting/cheat-sheet"><b>XSS cheat sheet</b></a> - 包含许多可帮助你绕过 WAF 和过滤器的向量。<br>
|
|
|
+ <a href="https://jivoi.github.io/2015/07/03/offensive-security-bookmarks/"><b>Offensive Security Bookmarks</b></a> - 安全书签集合,作者通过 OSCP 所需的所有内容。<br>
|
|
|
+ <a href="https://github.com/coreb1t/awesome-pentest-cheat-sheets"><b>Awesome Pentest Cheat Sheets</b></a> - 对渗透测试有用的速查表集合。<br>
|
|
|
+ <a href="https://github.com/Hack-with-Github/Awesome-Hacking"><b>Awesome Hacking by HackWithGithub</b></a> - 面向黑客、渗透测试人员和安全研究人员的精选列表。<br>
|
|
|
+ <a href="https://github.com/carpedm20/awesome-hacking"><b>Awesome Hacking by carpedm20</b></a> - 精选的黑客教程、工具和资源列表。<br>
|
|
|
+ <a href="https://github.com/vitalysim/Awesome-Hacking-Resources"><b>Awesome Hacking Resources</b></a> - 帮助你变得更强的黑客/渗透测试资源集合。<br>
|
|
|
+ <a href="https://github.com/enaqx/awesome-pentest"><b>Awesome Pentest</b></a> - 精选的渗透测试资源、工具和其他好东西。<br>
|
|
|
+ <a href="https://github.com/m4ll0k/Awesome-Hacking-Tools"><b>Awesome-Hacking-Tools</b></a> - 精选的黑客工具列表。<br>
|
|
|
+ <a href="https://github.com/ksanchezcld/Hacking_Cheat_Sheet"><b>Hacking Cheat Sheet</b></a> - 作者的黑客和渗透测试笔记。<br>
|
|
|
+ <a href="https://github.com/toolswatch/blackhat-arsenal-tools"><b>blackhat-arsenal-tools</b></a> - 官方 Black Hat 军火库安全工具仓库。<br>
|
|
|
+ <a href="https://www.peerlyst.com/posts/the-complete-list-of-infosec-related-cheat-sheets-claus-cramon"><b>Penetration Testing and WebApp Cheat Sheets</b></a> - 信息安全相关速查表的完整列表。<br>
|
|
|
+ <a href="https://github.com/The-Art-of-Hacking/h4cker"><b>Cyber Security Resources</b></a> - 包含数千个网络安全相关参考和资源。<br>
|
|
|
+ <a href="https://github.com/jhaddix/pentest-bookmarks"><b>Pentest Bookmarks</b></a> - 有很多渗透测试博客。<br>
|
|
|
+ <a href="https://github.com/OlivierLaflamme/Cheatsheet-God"><b>Cheatsheet-God</b></a> - 渗透测试参考银行 - OSCP/PTP 和 PTX 速查表。<br>
|
|
|
+ <a href="https://github.com/Cyb3rWard0g/ThreatHunter-Playbook"><b>ThreatHunter-Playbook</b></a> - 帮助开发狩猎活动的技术和假设。<br>
|
|
|
+ <a href="https://github.com/hmaverickadams/Beginner-Network-Pentesting"><b>Beginner-Network-Pentesting</b></a> - 初学者网络渗透测试课程笔记。<br>
|
|
|
+ <a href="https://github.com/rewardone/OSCPRepo"><b>OSCPRepo</b></a> - 作者为准备 OSCP 收集的资源列表。<br>
|
|
|
+ <a href="https://github.com/swisskyrepo/PayloadsAllTheThings"><b>PayloadsAllTheThings</b></a> - Web 应用安全和渗透测试/CTF 的有用有效载荷和绕过列表。<br>
|
|
|
+ <a href="https://github.com/foospidy/payloads"><b>payloads</b></a> - 获取所有有效载荷!Web 攻击有效载荷集合。<br>
|
|
|
+ <a href="https://github.com/payloadbox/command-injection-payload-list"><b>command-injection-payload-list</b></a> - 命令注入有效载荷列表。<br>
|
|
|
+ <a href="https://github.com/jakejarvis/awesome-shodan-queries"><b>Awesome Shodan Search Queries</b></a> - 用于插入 Shodan 的优秀搜索查询。<br>
|
|
|
+ <a href="https://github.com/s0md3v/AwesomeXSS"><b>AwesomeXSS</b></a> - 精选的 XSS 资源集合。<br>
|
|
|
+ <a href="https://github.com/JohnTroony/php-webshells"><b>php-webshells</b></a> - 常见的 PHP Webshell。<br>
|
|
|
+ <a href="https://highon.coffee/blog/penetration-testing-tools-cheat-sheet/"><b>Pentesting Tools Cheat Sheet</b></a> - 典型渗透测试的快速参考高层概述。<br>
|
|
|
+ <a href="https://cheatsheetseries.owasp.org/"><b>OWASP Cheat Sheet Series</b></a> - 关于特定应用安全主题的高价值信息集合。<br>
|
|
|
+ <a href="https://jeremylong.github.io/DependencyCheck/index.html"><b>OWASP dependency-check</b></a> - OWASP Top 10 2013 条目的开源解决方案。<br>
|
|
|
+ <a href="https://www.owasp.org/index.php/OWASP_Proactive_Controls"><b>OWASP ProActive Controls</b></a> - OWASP Top 10 主动控制 2018。<br>
|
|
|
+ <a href="https://github.com/blaCCkHatHacEEkr/PENTESTING-BIBLE"><b>PENTESTING-BIBLE</b></a> - 黑客与渗透测试、红队和网络安全资源。<br>
|
|
|
+ <a href="https://github.com/nixawk/pentest-wiki"><b>pentest-wiki</b></a> - 面向渗透测试人员/研究人员的免费在线安全知识库。<br>
|
|
|
+ <a href="https://media.defcon.org/"><b>DEF CON Media Server</b></a> - DEFCON 的优秀内容。<br>
|
|
|
+ <a href="https://github.com/rshipp/awesome-malware-analysis"><b>Awesome Malware Analysis</b></a> - 精选的恶意软件分析工具和资源列表。<br>
|
|
|
+ <a href="https://www.netsparker.com/blog/web-security/sql-injection-cheat-sheet/"><b>SQL Injection Cheat Sheet</b></a> - 关于 SQL 注入多种变体的详细技术内容。<br>
|
|
|
+ <a href="http://kb.entersoft.co.in/"><b>Entersoft Knowledge Base</b></a> - 关于漏洞的优秀且详细的参考。<br>
|
|
|
+ <a href="http://html5sec.org/"><b>HTML5 Security Cheatsheet</b></a> - HTML5 相关 XSS 攻击向量集合。<br>
|
|
|
+ <a href="http://evuln.com/tools/xss-encoder/"><b>XSS String Encoder</b></a> - 用于生成 XSS 代码以检查你的输入验证过滤器对 XSS 的防护。<br>
|
|
|
+ <a href="https://gtfobins.github.io/"><b>GTFOBins</b></a> - 可被攻击者利用绕过本地安全限制的 Unix 二进制文件列表。<br>
|
|
|
+ <a href="https://guif.re/"><b>Guifre Ruiz Notes</b></a> - 安全、系统、网络和渗透测试速查表集合。<br>
|
|
|
+ <a href="http://blog.safebuff.com/2016/07/03/SSRF-Tips/index.html"><b>SSRF Tips</b></a> - SSRF 提示集合。<br>
|
|
|
+ <a href="http://shell-storm.org/repo/CTF/"><b>shell-storm repo CTF</b></a> - 优秀的 CTF 存档。<br>
|
|
|
+ <a href="https://github.com/bl4de/ctf"><b>ctf</b></a> - CTF(夺旗赛)Writeup、代码片段、笔记、脚本。<br>
|
|
|
+ <a href="https://github.com/orangetw/My-CTF-Web-Challenges"><b>My-CTF-Web-Challenges</b></a> - CTF Web 挑战集合。<br>
|
|
|
+ <a href="https://github.com/OWASP/owasp-mstg"><b>MSTG</b></a> - 移动安全测试指南是移动应用安全测试的综合手册。<br>
|
|
|
+ <a href="https://github.com/sdcampbell/Internal-Pentest-Playbook"><b>Internal-Pentest-Playbook</b></a> - 内部网络渗透测试最常见事项的笔记。<br>
|
|
|
+ <a href="https://github.com/streaak/keyhacks"><b>KeyHacks</b></a> - 展示漏洞赏金计划泄露的 API 密钥可以通过快速方式检查。<br>
|
|
|
+ <a href="https://github.com/securitum/research"><b>securitum/research</b></a> - Securitum 执行的安全研究的各种概念验证。<br>
|
|
|
+ <a href="https://github.com/juliocesarfort/public-pentesting-reports"><b>public-pentesting-reports</b></a> - 多个咨询安全小组发布的公开渗透测试报告列表。<br>
|
|
|
+ <a href="https://github.com/djadmin/awesome-bug-bounty"><b>awesome-bug-bounty</b></a> - 全面的可获取漏洞赏金精选列表。<br>
|
|
|
+ <a href="https://github.com/ngalongc/bug-bounty-reference"><b>bug-bounty-reference</b></a> - 漏洞赏金 Writeup 列表。<br>
|
|
|
+ <a href="https://github.com/devanshbatham/Awesome-Bugbounty-Writeups"><b>Awesome-Bugbounty-Writeups</b></a> - 精选的漏洞赏金 Writeup 列表。<br>
|
|
|
+ <a href="https://pentester.land/list-of-bug-bounty-writeups.html"><b>Bug bounty writeups</b></a> - 漏洞赏金 Writeup 列表(2012-2020)。<br>
|
|
|
+ <a href="https://hackso.me/"><b>hackso.me</b></a> - 进入安全领域的伟大旅程。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 后门/漏洞利用
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/bartblaze/PHP-backdoors"><b>PHP-backdoors</b></a> - PHP 后门集合。仅供教育或测试目的。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 字典和弱密码
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://weakpass.com/"><b>Weakpass</b></a> - 为任何类型的暴力破解查找字典或一次性释放其全部力量!<br>
|
|
|
+ <a href="https://hashes.org/"><b>Hashes.org</b></a> - 一个免费的在线哈希解析服务,融合了许多无与伦比的技术。<br>
|
|
|
+ <a href="https://github.com/danielmiessler/SecLists"><b>SecLists</b></a> - 安全评估中使用的多种类型列表的集合,汇聚一处。<br>
|
|
|
+ <a href="https://github.com/berzerk0/Probable-Wordlists"><b>Probable-Wordlists</b></a> - 按概率排序,最初为密码生成和测试创建。<br>
|
|
|
+ <a href="https://wiki.skullsecurity.org/index.php?title=Passwords"><b>skullsecurity passwords</b></a> - 密码字典和泄露密码仓库。<br>
|
|
|
+ <a href="https://bezpieka.org/polski-slownik-premium-polish-wordlist"><b>Polish PREMIUM Dictionary</b></a> - 由 bezpieka.org 论坛团队创建的官方字典。<b>*</b> <sup><a href="https://sourceforge.net/projects/kali-linux/files/Wordlist/">1</sup><br>
|
|
|
+ <a href="https://github.com/insidetrust/statistically-likely-usernames"><b>statistically-likely-usernames</b></a> - 用于创建统计上可能的用户名列表的字典。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 赏金平台
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.yeswehack.com/"><b>YesWeHack</b></a> - 附带信息安全工作的漏洞赏金平台。<br>
|
|
|
+ <a href="https://www.openbugbounty.org/"><b>Openbugbounty</b></a> - 允许任何安全研究人员报告任何网站的漏洞。<br>
|
|
|
+ <a href="https://www.hackerone.com/"><b>hackerone</b></a> - 全球黑客社区,揭示最相关的安全问题。<br>
|
|
|
+ <a href="https://www.bugcrowd.com/"><b>bugcrowd</b></a> - 面向企业的众包网络安全。<br>
|
|
|
+ <a href="https://crowdshield.com/"><b>Crowdshield</b></a> - 众包安全和漏洞赏金管理。<br>
|
|
|
+ <a href="https://www.synack.com/"><b>Synack</b></a> - 众包安全和漏洞赏金计划、众包安全情报平台等。<br>
|
|
|
+ <a href="https://hacktrophy.com/en/"><b>Hacktrophy</b></a> - 漏洞赏金平台。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: Web 训练应用(本地安装)
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.owasp.org/index.php/OWASP_Vulnerable_Web_Applications_Directory_Project"><b>OWASP-VWAD</b></a> - 全面且维护良好的所有已知易受攻击 Web 应用的注册表。<br>
|
|
|
+ <a href="http://www.dvwa.co.uk/"><b>DVWA</b></a> - 极度脆弱的 PHP/MySQL Web 应用。<br>
|
|
|
+ <a href="https://metasploit.help.rapid7.com/docs/metasploitable-2"><b>metasploitable2</b></a> - 安全研究人员中流行的易受攻击 Web 应用。<br>
|
|
|
+ <a href="https://github.com/rapid7/metasploitable3"><b>metasploitable3</b></a> - 一个从零构建、包含大量安全漏洞的 VM。<br>
|
|
|
+ <a href="https://github.com/stamparm/DSVW"><b>DSVW</b></a> - 一个用不到 100 行代码编写的故意存在漏洞的 Web 应用。<br>
|
|
|
+ <a href="https://sourceforge.net/projects/mutillidae/"><b>OWASP Mutillidae II</b></a> - 免费、开源、故意存在漏洞的 Web 应用。<br>
|
|
|
+ <a href="https://www.owasp.org/index.php/OWASP_Juice_Shop_Project"><b>OWASP Juice Shop Project</b></a> - 现存 bug 最少的易受攻击应用。<br>
|
|
|
+ <a href="https://www.owasp.org/index.php/Projects/OWASP_Node_js_Goat_Project"><b>OWASP Node js Goat Project</b></a> - OWASP Top 10 安全风险适用于使用 Node.js 开发的 Web 应用。<br>
|
|
|
+ <a href="https://github.com/iteratec/juicy-ctf"><b>juicy-ctf</b></a> - 使用 OWASP Juice Shop 运行夺旗赛和安全培训。<br>
|
|
|
+ <a href="https://github.com/OWASP/SecurityShepherd"><b>SecurityShepherd</b></a> - Web 和移动应用安全培训平台。<br>
|
|
|
+ <a href="https://github.com/opendns/Security_Ninjas_AppSec_Training"><b>Security Ninjas</b></a> - 开源应用安全培训计划。<br>
|
|
|
+ <a href="https://github.com/rapid7/hackazon"><b>hackazon</b></a> - 一个现代的易受攻击 Web 应用。<br>
|
|
|
+ <a href="https://github.com/appsecco/dvna"><b>dvna</b></a> - 极度脆弱的 NodeJS 应用。<br>
|
|
|
+ <a href="https://github.com/DefectDojo/django-DefectDojo"><b>django-DefectDojo</b></a> - 开源应用漏洞关联和安全编排工具。<br>
|
|
|
+ <a href="https://google-gruyere.appspot.com/"><b>Google Gruyere</b></a> - Web 应用漏洞利用和防御。<br>
|
|
|
+ <a href="https://github.com/amolnaik4/bodhi"><b>Bodhi</b></a> - 专注于学习客户端 Web 漏洞利用的游乐场。<br>
|
|
|
+ <a href="https://websploit.h4cker.org/"><b>Websploit</b></a> - 单一 VM 实验室,目的是在一个环境中组合多个易受攻击的应用。<br>
|
|
|
+ <a href="https://github.com/vulhub/vulhub"><b>vulhub</b></a> - 基于 docker-compose 的预构建漏洞环境。<br>
|
|
|
+ <a href="https://rhinosecuritylabs.com/aws/introducing-cloudgoat-2/"><b>CloudGoat 2</b></a> - 新的改进版"设计为易受攻击"AWS 部署工具。<br>
|
|
|
+ <a href="https://github.com/globocom/secDevLabs"><b>secDevLabs</b></a> - 以实践方式学习安全 Web 开发的实验室。<br>
|
|
|
+ <a href="https://github.com/incredibleindishell/CORS-vulnerable-Lab"><b>CORS-vulnerable-Lab</b></a> - 示例易受攻击代码及其漏洞利用代码。<br>
|
|
|
+ <a href="https://github.com/moloch--/RootTheBox"><b>RootTheBox</b></a> - 黑客游戏(CTF 记分板和游戏管理器)。<br>
|
|
|
+ <a href="https://application.security/"><b>KONTRA</b></a> - 应用安全培训(OWASP Top Web 和 API)。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 实验环境(道德黑客平台/训练/CTF)
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://www.offensive-security.com/"><b>Offensive Security</b></a> - 十多年来真正的基于表现的渗透测试培训。<br>
|
|
|
+ <a href="https://www.hackthebox.eu/"><b>Hack The Box</b></a> - 允许你测试渗透测试技能的在线平台。<br>
|
|
|
+ <a href="https://www.hacking-lab.com/index.html"><b>Hacking-Lab</b></a> - 在线道德黑客、计算机网络和安全挑战平台。<br>
|
|
|
+ <a href="http://pwnable.kr/index.php"><b>pwnable.kr</b></a> - 提供各种 PWN 挑战的非商业战争游戏网站。<br>
|
|
|
+ <a href="https://pwnable.tw/"><b>Pwnable.tw</b></a> - 供黑客测试和扩展二进制利用技能的战争游戏网站。<br>
|
|
|
+ <a href="https://picoctf.com/"><b>picoCTF</b></a> - 面向中学生的免费计算机安全游戏。<br>
|
|
|
+ <a href="https://ctflearn.com/"><b>CTFlearn</b></a> - 帮助道德黑客学习和练习网络安全知识的在线平台。<br>
|
|
|
+ <a href="https://ctftime.org/"><b>ctftime</b></a> - CTF 存档和获取其他 CTF 相关信息的场所。<br>
|
|
|
+ <a href="https://silesiasecuritylab.com/"><b>Silesia Security Lab</b></a> - 高质量安全测试服务。<br>
|
|
|
+ <a href="https://practicalpentestlabs.com/"><b>Practical Pentest Labs</b></a> - 渗透测试实验室,将你的黑客技能提升到新水平。<br>
|
|
|
+ <a href="https://www.root-me.org/?lang=en"><b>Root Me</b></a> - 快速、简单且经济实惠地训练黑客技能的方式。<br>
|
|
|
+ <a href="https://rozwal.to/login"><b>rozwal.to</b></a> - 一个训练渗透测试技能的优秀平台。<br>
|
|
|
+ <a href="https://tryhackme.com/"><b>TryHackMe</b></a> - 让网络安全学习变得简单。<br>
|
|
|
+ <a href="https://hackxor.net/"><b>hackxor</b></a> - 一个逼真的 Web 应用黑客游戏,旨在帮助各种水平的玩家发展技能。<br>
|
|
|
+ <a href="http://hack-yourself-first.com/"><b>Hack Yourself First</b></a> - 充满了令人讨厌的应用安全漏洞。<br>
|
|
|
+ <a href="http://overthewire.org/wargames/"><b>OverTheWire</b></a> - 帮助你以有趣的游戏形式学习和练习安全概念。<br>
|
|
|
+ <a href="https://labs.wizard-security.net/"><b>Wizard Labs</b></a> - 一个在线渗透测试实验室。<br>
|
|
|
+ <a href="https://pentesterlab.com/"><b>PentesterLab</b></a> - 提供可用于测试和理解漏洞的易受攻击系统。<br>
|
|
|
+ <a href="https://ringzer0ctf.com/"><b>RingZer0</b></a> - 大量旨在测试和提高你黑客技能的挑战。<br>
|
|
|
+ <a href="http://www.try2hack.nl/"><b>try2hack</b></a> - 为你娱乐而提供的几个安全导向挑战。<br>
|
|
|
+ <a href="https://www.ubeeri.com/preconfig-labs"><b>Ubeeri</b></a> - 预配置的实验环境。<br>
|
|
|
+ <a href="https://lab.pentestit.ru/"><b>Pentestit</b></a> - 模拟真实公司的 IT 基础设施,用于合法的渗透测试和提高渗透测试技能。<br>
|
|
|
+ <a href="https://microcorruption.com/login"><b>Microcorruption</b></a> - 在 Web 界面中完成的逆向挑战。<br>
|
|
|
+ <a href="https://crackmes.one/"><b>Crackmes</b></a> - 下载 Crackme 以帮助提高你的逆向工程技能。<br>
|
|
|
+ <a href="https://domgo.at/cxss/intro"><b>DomGoat</b></a> - DOM XSS 安全学习和练习平台。<br>
|
|
|
+ <a href="https://chall.stypr.com"><b>Stereotyped Challenges</b></a> - 今天就升级你的 Web 黑客技术!<br>
|
|
|
+ <a href="https://www.vulnhub.com/"><b>Vulnhub</b></a> - 允许任何人获得数字安全方面的实践"动手"经验。<br>
|
|
|
+ <a href="https://w3challs.com/"><b>W3Challs</b></a> - 一个渗透测试训练平台,提供各种计算机挑战。<br>
|
|
|
+ <a href="https://ringzer0ctf.com/challenges"><b>RingZer0 CTF</b></a> - 为你提供大量旨在测试和提高你黑客技能的挑战。<br>
|
|
|
+ <a href="https://hack.me/"><b>Hack.me</b></a> - 一个你可以构建、托管和分享易受攻击 Web 应用以用于教育目的的平台。<br>
|
|
|
+ <a href="https://www.hackthis.co.uk/levels/"><b>HackThis!</b></a> - 发现黑客攻击、数据转储和篡改是如何执行的,并保护你的网站。<br>
|
|
|
+ <a href="https://www.enigmagroup.org/#"><b>Enigma Group WebApp Training</b></a> - 这些挑战涵盖 OWASP Top 10 项目中列出的漏洞利用。<br>
|
|
|
+ <a href="https://challenges.re/"><b>Reverse Engineering Challenges</b></a> - 挑战、练习、问题和任务 - 按级别、类型等分类。<br>
|
|
|
+ <a href="https://0x00sec.org/"><b>0x00sec</b></a> - 黑客的家 - 恶意软件、逆向工程和计算机科学。<br>
|
|
|
+ <a href="https://www.wechall.net/challs"><b>We Chall</b></a> - 存在大量不同类型的挑战。<br>
|
|
|
+ <a href="https://www.hackergateway.com/"><b>Hacker Gateway</b></a> - 想要测试其技能的黑客的首选之地。<br>
|
|
|
+ <a href="https://www.hacker101.com/"><b>Hacker101</b></a> - 免费的 Web 安全课程。<br>
|
|
|
+ <a href="https://contained.af/"><b>contained.af</b></a> - 一个关于学习容器、能力和系统调用的愚蠢游戏。<br>
|
|
|
+ <a href="http://flaws.cloud/"><b>flAWS challenge!</b></a> - 通过一系列级别,你将了解使用 AWS 时的常见错误和陷阱。<br>
|
|
|
+ <a href="https://cybersecurity.wtf"><b>CyberSec WTF</b></a> - 提供源自赏金 Writeup 的 Web 黑客挑战。<br>
|
|
|
+ <a href="https://ctfchallenge.co.uk/login"><b>CTF Challenge</b></a> - CTF Web 应用挑战。<br>
|
|
|
+ <a href="https://capturetheflag.withgoogle.com"><b>gCTF</b></a> - Google CTF 2017 中使用的大部分挑战。<br>
|
|
|
+ <a href="https://www.hackthissite.org/pages/index/index.php"><b>Hack This Site</b></a> - 一个免费、安全且合法的黑客训练场。<br>
|
|
|
+ <a href="https://attackdefense.com"><b>Attack & Defense</b></a> - 基于浏览器的云实验室。<br>
|
|
|
+ <a href="https://cryptohack.org/"><b>Cryptohack</b></a> - 一个学习现代密码学的有趣平台。<br>
|
|
|
+ <a href="https://cryptopals.com/"><b>Cryptopals</b></a> - cryptopals 密码学挑战。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: CTF 平台
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/facebook/fbctf"><b>fbctf</b></a> - 用于举办夺旗赛的平台。<br>
|
|
|
+ <a href="https://github.com/google/ctfscoreboard"><b>ctfscoreboard</b></a> - 夺旗赛记分板。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 其他资源
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/bugcrowd/bugcrowd_university"><b>Bugcrowd University</b></a> - 面向研究者社区的开源教育内容。<br>
|
|
|
+ <a href="https://github.com/rewardone/OSCPRepo"><b>OSCPRepo</b></a> - 作者为准备 OSCP 收集的资源和脚本列表。<br>
|
|
|
+ <a href="https://medium.com/@cxosmo/owasp-top-10-real-world-examples-part-1-a540c4ea2df5"><b>OWASP Top 10: Real-World Examples</b></a> - 用真实世界示例测试你的 Web 应用(两部分系列)。<br>
|
|
|
+ <a href="http://phrack.org/index.html"><b>phrack.org</b></a> - 来自多位受人尊敬的黑客和其他思想家的文章精选集。<br>
|
|
|
+ <a href="https://github.com/Gr1mmie/Practical-Ethical-Hacking-Resources"><b>Practical-Ethical-Hacking-Resources</b></a> - TCM Udemy 课程资源汇编。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+#### 每日知识与新闻 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### :black_small_square: RSS 阅读器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://feedly.com/"><b>Feedly</b></a> - 组织、阅读和分享对你重要的内容。<br>
|
|
|
+ <a href="https://www.inoreader.com/"><b>Inoreader</b></a> - 类似 Feedly,支持过滤从 RSS 获取的内容。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: IRC 频道
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://wiki.hackerspaces.org/IRC_Channel"><b>#hackerspaces</b></a> - 黑客空间 IRC 频道。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 安全
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://thehackernews.com/"><b>The Hacker News</b></a> - 致力于提高安全专家和黑客意识的主要新闻来源。<br>
|
|
|
+ <a href="https://latesthackingnews.com/"><b>Latest Hacking News</b></a> - 为道德黑客提供最新的黑客新闻、漏洞利用和漏洞信息。<br>
|
|
|
+ <a href="https://securitynewsletter.co/"><b>Security Newsletter</b></a> - 每周安全新闻摘要(电子邮件通知)。<br>
|
|
|
+ <a href="https://security.googleblog.com/"><b>Google Online Security Blog</b></a> - Google 关于互联网安全的最新新闻和见解。<br>
|
|
|
+ <a href="https://blog.qualys.com/"><b>Qualys Blog</b></a> - 专家网络安全指南和新闻。<br>
|
|
|
+ <a href="https://www.darkreading.com/"><b>DARKReading</b></a> - 连接信息安全社区。<br>
|
|
|
+ <a href="https://www.darknet.org.uk/"><b>Darknet</b></a> - 最新黑客工具、黑客新闻、网络安全最佳实践、道德黑客和渗透测试。<br>
|
|
|
+ <a href="https://twitter.com/disclosedh1"><b>publiclyDisclosed</b></a> - 公开披露观察者,让你了解最近披露的漏洞的最新情况。<br>
|
|
|
+ <a href="https://www.reddit.com/r/hacking/"><b>Reddit - Hacking</b></a> - 致力于黑客和黑客文化的子版块。<br>
|
|
|
+ <a href="https://packetstormsecurity.com/"><b>Packet Storm</b></a> - 信息安全服务、新闻、文件、工具、漏洞利用、公告和白皮书。<br>
|
|
|
+ <a href="https://sekurak.pl/"><b>Sekurak</b></a> - 关于安全、渗透测试、漏洞等内容(波兰语/英语)。<br>
|
|
|
+ <a href="https://nfsec.pl/"><b>nf.sec</b></a> - Linux 操作系统安全的基本方面和机制(波兰语)。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+##### :black_small_square: 其他/全能型
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://changelog.com/"><b>Changelog</b></a> - 一个黑客社区;面向开发者和黑客的新闻和播客。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+#### 其他速查表 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+###### 构建你自己的 DNS 服务器
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://calomel.org/unbound_dns.html"><b>Unbound DNS Tutorial</b></a> - 一个验证、递归和缓存 DNS 服务器。<br>
|
|
|
+ <a href="https://www.ctrl.blog/entry/knot-dns-resolver-tutorial.html"><b>Knot Resolver on Fedora</b></a> - 如何在 Fedora 上使用 Knot Resolver 获得更快更安全的 DNS 解析。<br>
|
|
|
+ <a href="https://www.aaflalo.me/2018/10/tutorial-setup-dns-over-https-server/"><b>DNS-over-HTTPS</b></a> - 搭建自己的 DNS-over-HTTPS (DoH) 服务器教程。<br>
|
|
|
+ <a href="https://hacks.mozilla.org/2018/05/a-cartoon-intro-to-dns-over-https/"><b>dns-over-https</b></a> - DNS over HTTPS 的漫画介绍。<br>
|
|
|
+ <a href="https://www.aaflalo.me/2019/03/dns-over-tls/"><b>DNS-over-TLS</b></a> - 继 DoH 服务器之后,搭建你的 DNS-over-TLS (DoT) 服务器。<br>
|
|
|
+ <a href="https://zwischenzugs.com/2018/01/26/how-and-why-i-run-my-own-dns-servers/"><b>DNS Servers</b></a> - 我如何(以及为什么)运行自己的 DNS 服务器。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+###### 构建你自己的证书机构 (CA)
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://jamielinux.com/docs/openssl-certificate-authority/"><b>OpenSSL Certificate Authority</b></a> - 使用 OpenSSL 工具构建你自己的证书机构 (CA)。<br>
|
|
|
+ <a href="https://github.com/smallstep/certificates"><b>step-ca Certificate Authority</b></a> - 使用开源 step-ca 构建你自己的证书机构 (CA)。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+###### 构建你自己的系统/虚拟机
|
|
|
+
|
|
|
+<p>
|
|
|
+ <a href="https://github.com/cfenollosa/os-tutorial"><b>os-tutorial</b></a> - 如何从零开始创建操作系统。<br>
|
|
|
+ <a href="https://justinmeiners.github.io/lc3-vm/"><b>Write your Own Virtual Machine</b></a> - 如何编写你自己的虚拟机 (VM)。<br>
|
|
|
+ <a href="https://github.com/cirosantilli/x86-bare-metal-examples"><b>x86 Bare Metal Examples</b></a> - 数十个用于学习 x86 系统编程的最小操作系统示例。<br>
|
|
|
+ <a href="https://github.com/djhworld/simple-computer"><b>simple-computer</b></a> - J. Clark Scott 所著 "But How Do It Know?" 中的 Scott CPU。<br>
|
|
|
+ <a href="https://littleosbook.github.io/"><b>littleosbook</b></a> - 关于操作系统开发的小书。<br>
|
|
|
+</p>
|
|
|
+
|
|
|
+###### DNS 服务器列表(隐私)
|
|
|
+
|
|
|
+| <b><u>IP</u></b> | <b><u>URL</u></b> |
|
|
|
+| :--- | :--- |
|
|
|
+| **`84.200.69.80`** | [dns.watch](https://dns.watch/) |
|
|
|
+| **`94.247.43.254`** | [opennic.org](https://www.opennic.org/) |
|
|
|
+| **`64.6.64.6`** | [verisign.com](https://www.verisign.com/en_US/security-services/public-dns/index.xhtml) |
|
|
|
+| **`89.233.43.71`** | [censurfridns.dk](https://blog.uncensoreddns.org/) |
|
|
|
+| **`1.1.1.1`** | [cloudflare.com](https://1.1.1.1/) |
|
|
|
+| **`94.130.110.185`** | [dnsprivacy.at](https://dnsprivacy.at/) |
|
|
|
+
|
|
|
+###### TOP 浏览器扩展
|
|
|
+
|
|
|
+| <b><u>扩展名</u></b> | <b><u>描述</u></b> |
|
|
|
+| :--- | :--- |
|
|
|
+| **`IPvFoo`** | 在所有页面元素中显示服务器 IP 地址和 HTTPS 信息。 |
|
|
|
+| **`FoxyProxy`** | 简化配置浏览器访问代理服务器。 |
|
|
|
+| **`HTTPS Everywhere`** | 在许多网站上自动使用 HTTPS 安全。 |
|
|
|
+| **`uMatrix`** | 点按禁止/允许浏览器发出的任何类别请求。 |
|
|
|
+| **`uBlock Origin`** | 高效的广告拦截器:内存和 CPU 占用低。 |
|
|
|
+| **`Session Buddy`** | 轻松管理浏览器标签页和书签。 |
|
|
|
+| **`SuperSorter`** | 递归排序书签、删除重复项、合并文件夹等。 |
|
|
|
+| **`Clear Cache`** | 清除缓存和浏览数据。 |
|
|
|
+| **`d3coder`** | 用于各种编码类型的编码/解码插件。 |
|
|
|
+| **`Web Developer`** | 添加一个带有各种 Web 开发者工具的工具栏按钮。 |
|
|
|
+| **`ThreatPinch Lookup`** | 添加威胁情报悬停工具提示。 |
|
|
|
+
|
|
|
+###### TOP Burp 扩展
|
|
|
+
|
|
|
+| <b><u>扩展名</u></b> | <b><u>描述</u></b> |
|
|
|
+| :--- | :--- |
|
|
|
+| **`Active Scan++`** | 扩展 Burp 的主动和被动扫描能力。 |
|
|
|
+| **`Autorize`** | 自动检测授权强制执行。 |
|
|
|
+| **`AuthMatrix`** | 一个简单的矩阵网格,用于定义所需的访问权限级别。 |
|
|
|
+| **`Logger++`** | 在可排序的表格中记录所有 Burp 工具的请求和响应。 |
|
|
|
+| **`Bypass WAF`** | 添加有助于绕过某些 WAF 设备的头部。 |
|
|
|
+| **`JSON Beautifier`** | 在 HTTP 消息查看器中美化 JSON 内容。 |
|
|
|
+| **`JSON Web Tokens`** | 使 Burp 能够解码和操作 JSON Web Token。 |
|
|
|
+| **`CSP Auditor`** | 显示响应的 CSP 头部,并被动报告 CSP 弱点。 |
|
|
|
+| **`CSP-Bypass`** | 被动扫描包含已知绕过方式的 CSP 头部。 |
|
|
|
+| **`Hackvertor`** | 使用基于标签的配置应用各种编码转换数据。 |
|
|
|
+| **`HTML5 Auditor`** | 扫描使用有风险的 HTML5 功能。 |
|
|
|
+| **`Software Vulnerability Scanner`** | 基于 vulners.com 审计 API 的漏洞扫描器。 |
|
|
|
+| **`Turbo Intruder`** | 一个强大的暴力破解工具。 |
|
|
|
+| **`Upload Scanner`** | 上传多种不同的文件类型,包含不同形式的有效载荷。 |
|
|
|
+
|
|
|
+###### 破解 Mozilla Firefox 地址栏
|
|
|
+
|
|
|
+在 Firefox 地址栏中,你可以通过在搜索词前或后输入特殊字符来限制结果:
|
|
|
+
|
|
|
+- `^` - 匹配浏览历史中的内容
|
|
|
+- `*` - 匹配书签中的内容
|
|
|
+- `%` - 匹配当前打开的标签页中的内容
|
|
|
+- `#` - 匹配页面标题中的内容
|
|
|
+- `@` - 匹配网址中的内容
|
|
|
+
|
|
|
+###### Chrome 隐藏命令
|
|
|
+
|
|
|
+- `chrome://chrome-urls` - 所有命令列表
|
|
|
+- `chrome://flags` - 启用实验和开发功能
|
|
|
+- `chrome://interstitials` - 错误和警告
|
|
|
+- `chrome://net-internals` - 网络内部状态(事件、DNS、缓存)
|
|
|
+- `chrome://network-errors` - 网络错误
|
|
|
+- `chrome://net-export` - 开始将未来的网络活动记录到文件
|
|
|
+- `chrome://safe-browsing` - 安全浏览选项
|
|
|
+- `chrome://user-actions` - 记录所有用户操作
|
|
|
+- `chrome://restart` - 重启 Chrome
|
|
|
+- `chrome://dino` - ERR_INTERNET_DISCONNECTED...
|
|
|
+- `cache:<website-address>` - 查看网页的缓存版本
|
|
|
+
|
|
|
+###### 通过缩短 IP 地址绕过 WAF(由 [0xInfection](https://twitter.com/0xInfection))
|
|
|
+
|
|
|
+IP 地址可以通过去掉零来缩短:
|
|
|
+
|
|
|
+```
|
|
|
+http://1.0.0.1 → http://1.1
|
|
|
+http://127.0.0.1 → http://127.1
|
|
|
+http://192.168.0.1 → http://192.168.1
|
|
|
+
|
|
|
+http://0xC0A80001 or http://3232235521 → 192.168.0.1
|
|
|
+http://192.168.257 → 192.168.1.1
|
|
|
+http://192.168.516 → 192.168.2.4
|
|
|
+```
|
|
|
+
|
|
|
+ > 这可以绕过 SSRF、开放重定向等场景中将 IP 地址作为输入列入黑名单的 WAF 过滤器。
|
|
|
+
|
|
|
+更多信息请参见 [How to Obscure Any URL](http://www.pc-help.org/obscure.htm) 和 [Magic IP Address Shortcuts](https://stuff-things.net/2014/09/25/magic-ip-address-shortcuts/)。
|
|
|
+
|
|
|
+###### 哈希、加密和编码(由 [Michal Špaček](https://twitter.com/spazef0rze))
|
|
|
+
|
|
|
+_哈希 (Hashing)_
|
|
|
+
|
|
|
+plaintext :arrow_right: hash<br>
|
|
|
+hash :no_entry: plaintext
|
|
|
+
|
|
|
+_对称加密 (Symmetric encryption)_
|
|
|
+
|
|
|
+plaintext :arrow_right: :key: :arrow_right: ciphertext<br>
|
|
|
+plaintext :arrow_left: :key: :arrow_left: ciphertext<br>
|
|
|
+(:key: 共享密钥)
|
|
|
+
|
|
|
+_非对称加密 (Asymmetric encryption)_
|
|
|
+
|
|
|
+plaintext :arrow_right: :key: :arrow_right: ciphertext<br>
|
|
|
+plaintext :arrow_left: :part_alternation_mark: :arrow_left: ciphertext<br>
|
|
|
+(:key: 公钥, :part_alternation_mark: 私钥)<br>
|
|
|
+
|
|
|
+_编码 (Encoding)_
|
|
|
+
|
|
|
+text :arrow_right: encoded<br>
|
|
|
+text :arrow_left: encoded
|
|
|
+
|
|
|
+#### Shell 一行命令 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### 目录
|
|
|
+
|
|
|
+ * [terminal](#tool-terminal) - 终端
|
|
|
+ * [busybox](#tool-busybox)
|
|
|
+ * [mount](#tool-mount) - 挂载
|
|
|
+ * [fuser](#tool-fuser)
|
|
|
+ * [lsof](#tool-lsof)
|
|
|
+ * [ps](#tool-ps)
|
|
|
+ * [top](#tool-top)
|
|
|
+ * [vmstat](#tool-vmstat)
|
|
|
+ * [iostat](#tool-iostat)
|
|
|
+ * [strace](#tool-strace)
|
|
|
+ * [kill](#tool-kill)
|
|
|
+ * [find](#tool-find)
|
|
|
+ * [diff](#tool-diff)
|
|
|
+ * [vimdiff](#tool-vimdiff)
|
|
|
+ * [tail](#tool-tail)
|
|
|
+ * [cpulimit](#tool-cpulimit)
|
|
|
+ * [pwdx](#tool-pwdx)
|
|
|
+ * [tr](#tool-tr)
|
|
|
+ * [chmod](#tool-chmod)
|
|
|
+ * [who](#tool-who)
|
|
|
+ * [last](#tool-last)
|
|
|
+ * [screen](#tool-screen)
|
|
|
+ * [script](#tool-script)
|
|
|
+ * [du](#tool-du)
|
|
|
+ * [inotifywait](#tool-inotifywait)
|
|
|
+ * [openssl](#tool-openssl)
|
|
|
+ * [secure-delete](#tool-secure-delete) - 安全删除
|
|
|
+ * [dd](#tool-dd)
|
|
|
+ * [gpg](#tool-gpg)
|
|
|
+ * [system-other](#tool-system-other) - 系统其他
|
|
|
+ * [curl](#tool-curl)
|
|
|
+ * [httpie](#tool-httpie)
|
|
|
+ * [ssh](#tool-ssh)
|
|
|
+ * [linux-dev](#tool-linux-dev)
|
|
|
+ * [tcpdump](#tool-tcpdump)
|
|
|
+ * [tcpick](#tool-tcpick)
|
|
|
+ * [ngrep](#tool-ngrep)
|
|
|
+ * [hping3](#tool-hping3)
|
|
|
+ * [nmap](#tool-nmap)
|
|
|
+ * [netcat](#tool-netcat)
|
|
|
+ * [socat](#tool-socat)
|
|
|
+ * [p0f](#tool-p0f)
|
|
|
+ * [gnutls-cli](#tool-gnutls-cli)
|
|
|
+ * [netstat](#tool-netstat)
|
|
|
+ * [rsync](#tool-rsync)
|
|
|
+ * [host](#tool-host)
|
|
|
+ * [dig](#tool-dig)
|
|
|
+ * [certbot](#tool-certbot)
|
|
|
+ * [network-other](#tool-network-other) - 网络其他
|
|
|
+ * [git](#tool-git)
|
|
|
+ * [awk](#tool-awk)
|
|
|
+ * [sed](#tool-sed)
|
|
|
+ * [grep](#tool-grep)
|
|
|
+ * [perl](#tool-perl)
|
|
|
+
|
|
|
+##### 工具: [terminal](https://en.wikipedia.org/wiki/Linux_console) - 终端
|
|
|
+
|
|
|
+###### 不退出重新加载 Shell
|
|
|
+
|
|
|
+```bash
|
|
|
+exec $SHELL -l
|
|
|
+```
|
|
|
+
|
|
|
+###### 关闭 Shell 但保持所有子进程运行
|
|
|
+
|
|
|
+```bash
|
|
|
+disown -a && exit
|
|
|
+```
|
|
|
+
|
|
|
+###### 退出不保存 Shell 历史
|
|
|
+
|
|
|
+```bash
|
|
|
+kill -9 $$
|
|
|
+unset HISTFILE && exit
|
|
|
+```
|
|
|
+
|
|
|
+###### 执行分支条件判断
|
|
|
+
|
|
|
+```bash
|
|
|
+true && echo success
|
|
|
+false || echo failed
|
|
|
+```
|
|
|
+
|
|
|
+###### 将 stdout 和 stderr 管道到不同的命令
|
|
|
+
|
|
|
+```bash
|
|
|
+some_command > >(/bin/cmd_for_stdout) 2> >(/bin/cmd_for_stderr)
|
|
|
+```
|
|
|
+
|
|
|
+###### 将 stdout 和 stderr 分别重定向到不同文件,并同时打印到屏幕
|
|
|
+
|
|
|
+```bash
|
|
|
+(some_command 2>&1 1>&3 | tee errorlog ) 3>&1 1>&2 | tee stdoutlog
|
|
|
+```
|
|
|
+
|
|
|
+###### 列出最常用的命令
|
|
|
+
|
|
|
+```bash
|
|
|
+history | \
|
|
|
+awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | \
|
|
|
+grep -v "./" | \
|
|
|
+column -c3 -s " " -t | \
|
|
|
+sort -nr | nl | head -n 20
|
|
|
+```
|
|
|
+
|
|
|
+###### 净化 Bash 历史
|
|
|
+
|
|
|
+```bash
|
|
|
+function sterile() {
|
|
|
+
|
|
|
+ history | awk '$2 != "history" { $1=""; print $0 }' | egrep -vi "\
|
|
|
+curl\b+.*(-E|--cert)\b+.*\b*|\
|
|
|
+curl\b+.*--pass\b+.*\b*|\
|
|
|
+curl\b+.*(-U|--proxy-user).*:.*\b*|\
|
|
|
+curl\b+.*(-u|--user).*:.*\b*
|
|
|
+.*(-H|--header).*(token|auth.*)\b+.*|\
|
|
|
+wget\b+.*--.*password\b+.*\b*|\
|
|
|
+http.?://.+:.+@.*\
|
|
|
+" > $HOME/histbuff; history -r $HOME/histbuff;
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+export PROMPT_COMMAND="sterile"
|
|
|
+```
|
|
|
+
|
|
|
+ > 另见: [A naive utility to censor credentials in command history](https://github.com/lbonanomi/go/blob/master/revisionist.go)。
|
|
|
+
|
|
|
+###### 快速备份文件
|
|
|
+
|
|
|
+```bash
|
|
|
+cp filename{,.orig}
|
|
|
+```
|
|
|
+
|
|
|
+###### 清空文件(截断为 0 大小)
|
|
|
+
|
|
|
+```bash
|
|
|
+>filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 删除文件夹中不匹配特定文件扩展名的所有文件
|
|
|
+
|
|
|
+```bash
|
|
|
+rm !(*.foo|*.bar|*.baz)
|
|
|
+```
|
|
|
+
|
|
|
+###### 将多行字符串传入文件
|
|
|
+
|
|
|
+```bash
|
|
|
+# cat >filename ... - 覆写文件
|
|
|
+# cat >>filename ... - 追加到文件
|
|
|
+cat > filename << __EOF__
|
|
|
+data data data
|
|
|
+__EOF__
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用 vim 编辑远程主机上的文件
|
|
|
+
|
|
|
+```bash
|
|
|
+vim scp://user@host//etc/fstab
|
|
|
+```
|
|
|
+
|
|
|
+###### 创建目录并同时进入
|
|
|
+
|
|
|
+```bash
|
|
|
+mkd() { mkdir -p "$@" && cd "$@"; }
|
|
|
+```
|
|
|
+
|
|
|
+###### 将大写文件名转换为小写
|
|
|
+
|
|
|
+```bash
|
|
|
+rename 'y/A-Z/a-z/' *
|
|
|
+```
|
|
|
+
|
|
|
+###### 在终端上打印一行字符
|
|
|
+
|
|
|
+```bash
|
|
|
+printf "%`tput cols`s" | tr ' ' '#'
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示 Shell 历史但不显示行号
|
|
|
+
|
|
|
+```bash
|
|
|
+history | cut -c 8-
|
|
|
+fc -l -n 1 | sed 's/^\s*//'
|
|
|
+```
|
|
|
+
|
|
|
+###### 退出会话后运行命令
|
|
|
+
|
|
|
+```bash
|
|
|
+cat > /etc/profile << __EOF__
|
|
|
+_after_logout() {
|
|
|
+
|
|
|
+ username=$(whoami)
|
|
|
+
|
|
|
+ for _pid in $(ps afx | grep sshd | grep "$username" | awk '{print $1}') ; do
|
|
|
+
|
|
|
+ kill -9 $_pid
|
|
|
+
|
|
|
+ done
|
|
|
+
|
|
|
+}
|
|
|
+trap _after_logout EXIT
|
|
|
+__EOF__
|
|
|
+```
|
|
|
+
|
|
|
+###### 生成数字序列
|
|
|
+
|
|
|
+```bash
|
|
|
+for ((i=1; i<=10; i+=2)) ; do echo $i ; done
|
|
|
+# 替代方案: seq 1 2 10
|
|
|
+
|
|
|
+for ((i=5; i<=10; ++i)) ; do printf '%02d\n' $i ; done
|
|
|
+# 替代方案: seq -w 5 10
|
|
|
+
|
|
|
+for i in {1..10} ; do echo $i ; done
|
|
|
+```
|
|
|
+
|
|
|
+###### 简单的 Bash 文件监视
|
|
|
+
|
|
|
+```bash
|
|
|
+unset MAIL; export MAILCHECK=1; export MAILPATH='$FILE_TO_WATCH?$MESSAGE'
|
|
|
+```
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+##### 工具: [busybox](https://www.busybox.net/)
|
|
|
+
|
|
|
+###### 静态 HTTP Web 服务器
|
|
|
+
|
|
|
+```bash
|
|
|
+busybox httpd -p $PORT -h $HOME [-c httpd.conf]
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [mount](https://en.wikipedia.org/wiki/Mount_(Unix)) - 挂载
|
|
|
+
|
|
|
+###### 挂载临时内存分区
|
|
|
+
|
|
|
+```bash
|
|
|
+mount -t tmpfs tmpfs /mnt -o size=64M
|
|
|
+```
|
|
|
+
|
|
|
+ * `-t` - 文件系统类型
|
|
|
+ * `-o` - 挂载选项
|
|
|
+
|
|
|
+###### 将文件系统重新挂载为读写
|
|
|
+
|
|
|
+```bash
|
|
|
+mount -o remount,rw /
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [fuser](https://en.wikipedia.org/wiki/Fuser_(Unix))
|
|
|
+
|
|
|
+###### 显示哪些进程使用指定文件/目录
|
|
|
+
|
|
|
+```bash
|
|
|
+fuser /var/log/daemon.log
|
|
|
+fuser -v /home/supervisor
|
|
|
+```
|
|
|
+
|
|
|
+###### 杀死锁定文件的进程
|
|
|
+
|
|
|
+```bash
|
|
|
+fuser -ki filename
|
|
|
+```
|
|
|
+
|
|
|
+ * `-i` - 交互式选项
|
|
|
+
|
|
|
+###### 使用特定信号杀死锁定文件的进程
|
|
|
+
|
|
|
+```bash
|
|
|
+fuser -k -HUP filename
|
|
|
+```
|
|
|
+
|
|
|
+ * `--list-signals` - 列出可用信号名称
|
|
|
+
|
|
|
+###### 显示特定端口上监听的 PID
|
|
|
+
|
|
|
+```bash
|
|
|
+fuser -v 53/udp
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示所有使用指定文件系统或块设备的进程
|
|
|
+
|
|
|
+```bash
|
|
|
+fuser -mv /var/www
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [lsof](https://en.wikipedia.org/wiki/Lsof)
|
|
|
+
|
|
|
+###### 显示当前使用互联网连接的进程
|
|
|
+
|
|
|
+```bash
|
|
|
+lsof -P -i -n
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示使用特定端口号的进程
|
|
|
+
|
|
|
+```bash
|
|
|
+lsof -i tcp:443
|
|
|
+```
|
|
|
+
|
|
|
+###### 列出所有监听端口及关联进程的 PID
|
|
|
+
|
|
|
+```bash
|
|
|
+lsof -Pan -i tcp -i udp
|
|
|
+```
|
|
|
+
|
|
|
+###### 列出所有开放端口及其所属可执行文件
|
|
|
+
|
|
|
+```bash
|
|
|
+lsof -i -P | grep -i "listen"
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示所有开放端口
|
|
|
+
|
|
|
+```bash
|
|
|
+lsof -Pnl -i
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示开放端口 (LISTEN)
|
|
|
+
|
|
|
+```bash
|
|
|
+lsof -Pni4 | grep LISTEN | column -t
|
|
|
+```
|
|
|
+
|
|
|
+###### 列出特定命令打开的所有文件
|
|
|
+
|
|
|
+```bash
|
|
|
+lsof -c "process"
|
|
|
+```
|
|
|
+
|
|
|
+###### 查看每个目录的用户活动
|
|
|
+
|
|
|
+```bash
|
|
|
+lsof -u username -a +D /etc
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示 10 个最大的打开文件
|
|
|
+
|
|
|
+```bash
|
|
|
+lsof / | \
|
|
|
+awk '{ if($7 > 1048576) print $7/1048576 "MB" " " $9 " " $1 }' | \
|
|
|
+sort -n -u | tail | column -t
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示进程的当前工作目录
|
|
|
+
|
|
|
+```bash
|
|
|
+lsof -p <PID> | grep cwd
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [ps](https://en.wikipedia.org/wiki/Ps_(Unix))
|
|
|
+
|
|
|
+###### 显示可四向滚动的进程树及完整详情
|
|
|
+
|
|
|
+```bash
|
|
|
+ps awwfux | less -S
|
|
|
+```
|
|
|
+
|
|
|
+###### 每个用户的进程数统计
|
|
|
+
|
|
|
+```bash
|
|
|
+ps hax -o user | sort | uniq -c | sort -r
|
|
|
+```
|
|
|
+
|
|
|
+###### 按名称显示所有进程及主头部
|
|
|
+
|
|
|
+```bash
|
|
|
+ps -lfC nginx
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [find](https://en.wikipedia.org/wiki/Find_(Unix)) - 查找
|
|
|
+
|
|
|
+###### 查找系统中过去 60 分钟内修改过的文件
|
|
|
+
|
|
|
+```bash
|
|
|
+find / -mmin 60 -type f
|
|
|
+```
|
|
|
+
|
|
|
+###### 查找所有大于 20M 的文件
|
|
|
+
|
|
|
+```bash
|
|
|
+find / -type f -size +20M
|
|
|
+```
|
|
|
+
|
|
|
+###### 查找重复文件(基于 MD5 哈希)
|
|
|
+
|
|
|
+```bash
|
|
|
+find -type f -exec md5sum '{}' ';' | sort | uniq --all-repeated=separate -w 33
|
|
|
+```
|
|
|
+
|
|
|
+###### 仅更改文件权限
|
|
|
+
|
|
|
+```bash
|
|
|
+cd /var/www/site && find . -type f -exec chmod 766 {} \;
|
|
|
+cd /var/www/site && find . -type f -exec chmod 664 {} +
|
|
|
+```
|
|
|
+
|
|
|
+###### 仅更改目录权限
|
|
|
+
|
|
|
+```bash
|
|
|
+cd /var/www/site && find . -type d -exec chmod g+x {} \;
|
|
|
+cd /var/www/site && find . -type d -exec chmod g+rwx {} +
|
|
|
+```
|
|
|
+
|
|
|
+###### 查找特定用户/组的文件和目录
|
|
|
+
|
|
|
+```bash
|
|
|
+# 用户:
|
|
|
+find . -user <username> -print
|
|
|
+find /etc -type f -user <username> -name "*.conf"
|
|
|
+
|
|
|
+# 组:
|
|
|
+find /opt -group <group>
|
|
|
+find /etc -type f -group <group> -iname "*.conf"
|
|
|
+```
|
|
|
+
|
|
|
+###### 查找不属于特定用户/组的文件和目录
|
|
|
+
|
|
|
+```bash
|
|
|
+# 用户:
|
|
|
+find . \! -user <username> -print
|
|
|
+
|
|
|
+# 组:
|
|
|
+find . \! -group <group>
|
|
|
+```
|
|
|
+
|
|
|
+###### 查找仅具有特定权限的文件/目录
|
|
|
+
|
|
|
+```bash
|
|
|
+# 用户
|
|
|
+find . -user <username> -perm -u+rw # -rw-r--r--
|
|
|
+find /home -user $(whoami) -perm 777 # -rwxrwxrwx
|
|
|
+
|
|
|
+# 组:
|
|
|
+find /home -type d -group <group> -perm 755 # -rwxr-xr-x
|
|
|
+```
|
|
|
+
|
|
|
+###### 删除 60 天前的文件
|
|
|
+
|
|
|
+```bash
|
|
|
+find . -type f -mtime +60 -delete
|
|
|
+```
|
|
|
+
|
|
|
+###### 递归删除目录中所有空子目录
|
|
|
+
|
|
|
+```bash
|
|
|
+find . -depth -type d -empty -exec rmdir {} \;
|
|
|
+```
|
|
|
+
|
|
|
+###### 查找文件的所有硬链接
|
|
|
+
|
|
|
+```bash
|
|
|
+find </path/to/dir> -xdev -samefile filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 递归查找最近修改的文件
|
|
|
+
|
|
|
+```bash
|
|
|
+find . -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- | head
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用 sed 递归查找/替换字符串
|
|
|
+
|
|
|
+```bash
|
|
|
+find . -not -path '*/\.git*' -type f -print0 | xargs -0 sed -i 's/foo/bar/g'
|
|
|
+```
|
|
|
+
|
|
|
+###### 递归查找/替换目录和文件名中的字符串
|
|
|
+
|
|
|
+```bash
|
|
|
+find . -depth -name '*test*' -execdir bash -c 'mv -v "$1" "${1//foo/bar}"' _ {} \;
|
|
|
+```
|
|
|
+
|
|
|
+###### 递归查找 suid 可执行文件
|
|
|
+
|
|
|
+```bash
|
|
|
+find / \( -perm -4000 -o -perm -2000 \) -type f -exec ls -la {} \;
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [top](https://en.wikipedia.org/wiki/Top_(software))
|
|
|
+
|
|
|
+###### 使用 top 仅监控包含特定字符串的进程
|
|
|
+
|
|
|
+```bash
|
|
|
+top -p $(pgrep -d , <str>)
|
|
|
+```
|
|
|
+
|
|
|
+ * `<str>` - 包含特定字符串的进程(如 nginx, worker)
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [vmstat](https://en.wikipedia.org/wiki/Vmstat)
|
|
|
+
|
|
|
+###### 显示当前系统利用率(字段以千字节为单位)
|
|
|
+
|
|
|
+```bash
|
|
|
+vmstat 2 20 -t -w
|
|
|
+```
|
|
|
+
|
|
|
+ * `2` - 定义时间间隔的次数(延迟)
|
|
|
+ * `20` - 每次执行命令的次数(计数)
|
|
|
+ * `-t` - 显示时间戳
|
|
|
+ * `-w` - 宽输出
|
|
|
+ * `-S M` - 以兆字节为单位输出字段
|
|
|
+
|
|
|
+###### 每 5 秒刷新显示当前系统利用率
|
|
|
+
|
|
|
+```bash
|
|
|
+vmstat 5 -w
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示磁盘操作摘要报告
|
|
|
+
|
|
|
+```bash
|
|
|
+vmstat -D
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示事件计数器和内存统计报告
|
|
|
+
|
|
|
+```bash
|
|
|
+vmstat -s
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示关于 slab 层缓存中内核对象的报告
|
|
|
+
|
|
|
+```bash
|
|
|
+vmstat -m
|
|
|
+```
|
|
|
+
|
|
|
+##### 工具: [iostat](https://en.wikipedia.org/wiki/Iostat)
|
|
|
+
|
|
|
+###### 显示 CPU 使用信息和所有分区的 I/O 统计
|
|
|
+
|
|
|
+```bash
|
|
|
+iostat 2 10 -t -m
|
|
|
+```
|
|
|
+
|
|
|
+ * `2` - 时间间隔(延迟)
|
|
|
+ * `10` - 执行次数(计数)
|
|
|
+ * `-t` - 显示时间戳
|
|
|
+ * `-m` - 以兆字节为单位(`-k` 以千字节为单位,默认)
|
|
|
+
|
|
|
+###### 仅显示 CPU 利用率信息
|
|
|
+
|
|
|
+```bash
|
|
|
+iostat 2 10 -t -m -c
|
|
|
+```
|
|
|
+
|
|
|
+###### 仅显示磁盘利用率信息
|
|
|
+
|
|
|
+```bash
|
|
|
+iostat 2 10 -t -m -d
|
|
|
+```
|
|
|
+
|
|
|
+###### 仅显示 LVM 利用率信息
|
|
|
+
|
|
|
+```bash
|
|
|
+iostat -N
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [strace](https://en.wikipedia.org/wiki/Strace)
|
|
|
+
|
|
|
+###### 带子进程追踪
|
|
|
+
|
|
|
+```bash
|
|
|
+# 1)
|
|
|
+strace -f -p $(pidof glusterfsd)
|
|
|
+
|
|
|
+# 2)
|
|
|
+strace -f $(pidof php-fpm | sed 's/\([0-9]*\)/\-p \1/g')
|
|
|
+```
|
|
|
+
|
|
|
+###### 限制追踪进程 30 秒
|
|
|
+
|
|
|
+```bash
|
|
|
+timeout 30 strace $(< /var/run/zabbix/zabbix_agentd.pid)
|
|
|
+```
|
|
|
+
|
|
|
+###### 追踪进程并将输出重定向到文件
|
|
|
+
|
|
|
+```bash
|
|
|
+ps auxw | grep '[a]pache' | awk '{print " -p " $2}' | \
|
|
|
+xargs strace -o /tmp/strace-apache-proc.out
|
|
|
+```
|
|
|
+
|
|
|
+###### 追踪并打印每个系统调用的耗时,限制打印字符串长度
|
|
|
+
|
|
|
+```bash
|
|
|
+ps auxw | grep '[i]init_policy' | awk '{print " -p " $2}' | \
|
|
|
+xargs strace -f -e trace=network -T -s 10000
|
|
|
+```
|
|
|
+
|
|
|
+###### 追踪网络端口的打开请求
|
|
|
+
|
|
|
+```bash
|
|
|
+strace -f -e trace=bind nc -l 80
|
|
|
+```
|
|
|
+
|
|
|
+###### 追踪网络端口的打开请求(显示 TCP/UDP)
|
|
|
+
|
|
|
+```bash
|
|
|
+strace -f -e trace=network nc -lu 80
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [kill](https://en.wikipedia.org/wiki/Kill_(command))
|
|
|
+
|
|
|
+###### 杀死在端口上运行的进程
|
|
|
+
|
|
|
+```bash
|
|
|
+kill -9 $(lsof -i :<port> | awk '{l=$2} END {print l}')
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [diff](https://en.wikipedia.org/wiki/Diff)
|
|
|
+
|
|
|
+###### 比较两个目录树
|
|
|
+
|
|
|
+```bash
|
|
|
+diff <(cd directory1 && find | sort) <(cd directory2 && find | sort)
|
|
|
+```
|
|
|
+
|
|
|
+###### 比较两个命令的输出
|
|
|
+
|
|
|
+```bash
|
|
|
+diff <(cat /etc/passwd) <(cut -f2 /etc/passwd)
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [vimdiff](http://vimdoc.sourceforge.net/htmldoc/diff.html)
|
|
|
+
|
|
|
+###### 基于字符和单词高亮精确差异
|
|
|
+
|
|
|
+```bash
|
|
|
+vimdiff file1 file2
|
|
|
+```
|
|
|
+
|
|
|
+###### 比较两个 JSON 文件
|
|
|
+
|
|
|
+```bash
|
|
|
+vimdiff <(jq -S . A.json) <(jq -S . B.json)
|
|
|
+```
|
|
|
+
|
|
|
+###### 比较十六进制转储
|
|
|
+
|
|
|
+```bash
|
|
|
+d(){ vimdiff <(f $1) <(f $2);};f(){ hexdump -C $1 | cut -d' ' -f3- | tr -s ' ';}; d ~/bin1 ~/bin2
|
|
|
+```
|
|
|
+
|
|
|
+###### diffchar
|
|
|
+
|
|
|
+将 [diffchar](https://raw.githubusercontent.com/vim-scripts/diffchar.vim/master/plugin/diffchar.vim) 保存到 `~/.vim/plugins`
|
|
|
+
|
|
|
+按 `F7` 在差异模式之间切换
|
|
|
+
|
|
|
+有用的 `vimdiff` 命令:
|
|
|
+
|
|
|
+* `qa` 退出所有窗口
|
|
|
+* `:vertical resize 70` 调整窗口大小
|
|
|
+* 设置窗口宽度 `Ctrl+W [N columns]+(Shift+)<\>`
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [tail](https://en.wikipedia.org/wiki/Tail_(Unix))
|
|
|
+
|
|
|
+###### 为 tail -f 添加时间戳注释
|
|
|
+
|
|
|
+```bash
|
|
|
+tail -f file | while read ; do echo "$(date +%T.%N) $REPLY" ; done
|
|
|
+```
|
|
|
+
|
|
|
+###### 分析 Apache 访问日志中最常见的 IP 地址
|
|
|
+
|
|
|
+```bash
|
|
|
+tail -10000 access_log | awk '{print $1}' | sort | uniq -c | sort -n | tail
|
|
|
+```
|
|
|
+
|
|
|
+###### 分析 Web 服务器日志并仅显示 5xx HTTP 状态码
|
|
|
+
|
|
|
+```bash
|
|
|
+tail -n 100 -f /path/to/logfile | grep "HTTP/[1-2].[0-1]\" [5]"
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [tar](https://en.wikipedia.org/wiki/Tar_(computing))
|
|
|
+
|
|
|
+###### 系统备份并排除特定目录
|
|
|
+
|
|
|
+```bash
|
|
|
+cd /
|
|
|
+tar -czvpf /mnt/system$(date +%d%m%Y%s).tgz --directory=/ \
|
|
|
+--exclude=proc/* --exclude=sys/* --exclude=dev/* --exclude=mnt/* .
|
|
|
+```
|
|
|
+
|
|
|
+###### 系统备份并排除特定目录 (使用 pigz 并行压缩)
|
|
|
+
|
|
|
+```bash
|
|
|
+cd /
|
|
|
+tar cvpf /backup/snapshot-$(date +%d%m%Y%s).tgz --directory=/ \
|
|
|
+--exclude=proc/* --exclude=sys/* --exclude=dev/* \
|
|
|
+--exclude=mnt/* --exclude=tmp/* --use-compress-program=pigz .
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [dump](https://en.wikipedia.org/wiki/Dump_(program))
|
|
|
+
|
|
|
+###### 系统备份到文件
|
|
|
+
|
|
|
+```bash
|
|
|
+dump -y -u -f /backup/system$(date +%d%m%Y%s).lzo /
|
|
|
+```
|
|
|
+
|
|
|
+###### 从 lzo 文件还原系统
|
|
|
+
|
|
|
+```bash
|
|
|
+cd /
|
|
|
+restore -rf /backup/system$(date +%d%m%Y%s).lzo
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [cpulimit](http://cpulimit.sourceforge.net/)
|
|
|
+
|
|
|
+###### 限制进程的 CPU 使用率
|
|
|
+
|
|
|
+```bash
|
|
|
+cpulimit -p pid -l 50
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [pwdx](https://www.cyberciti.biz/faq/unix-linux-pwdx-command-examples-usage-syntax/)
|
|
|
+
|
|
|
+###### 显示进程的当前工作目录
|
|
|
+
|
|
|
+```bash
|
|
|
+pwdx <pid>
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [taskset](https://www.cyberciti.biz/faq/taskset-cpu-affinity-command/)
|
|
|
+
|
|
|
+###### 仅在单个 CPU 核心上启动命令
|
|
|
+
|
|
|
+```bash
|
|
|
+taskset -c 0 <command>
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [tr](https://en.wikipedia.org/wiki/Tr_(Unix))
|
|
|
+
|
|
|
+###### 显示 PATH 中的目录,每行一个
|
|
|
+
|
|
|
+```bash
|
|
|
+tr : '\n' <<<$PATH
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [chmod](https://en.wikipedia.org/wiki/Chmod)
|
|
|
+
|
|
|
+###### 从当前目录中的所有文件移除可执行位
|
|
|
+
|
|
|
+```bash
|
|
|
+chmod -R -x+X *
|
|
|
+```
|
|
|
+
|
|
|
+###### 恢复 /bin/chmod 的权限
|
|
|
+
|
|
|
+```bash
|
|
|
+# 1:
|
|
|
+cp /bin/ls chmod.01
|
|
|
+cp /bin/chmod chmod.01
|
|
|
+./chmod.01 700 file
|
|
|
+
|
|
|
+# 2:
|
|
|
+/bin/busybox chmod 0700 /bin/chmod
|
|
|
+
|
|
|
+# 3:
|
|
|
+setfacl --set u::rwx,g::---,o::--- /bin/chmod
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [who](https://en.wikipedia.org/wiki/Who_(Unix))
|
|
|
+
|
|
|
+###### 查找上次重启时间
|
|
|
+
|
|
|
+```bash
|
|
|
+who -b
|
|
|
+```
|
|
|
+
|
|
|
+###### 检测用户是否通过 sudo su 进入当前 Shell
|
|
|
+
|
|
|
+```bash
|
|
|
+[[ $(who -m | awk '{ print $1 }') == $(whoami) ]] || echo "You are su-ed to $(whoami)"
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [last](https://www.howtoforge.com/linux-last-command/)
|
|
|
+
|
|
|
+###### 上次重启是意外崩溃吗?
|
|
|
+
|
|
|
+```bash
|
|
|
+(last -x -f $(ls -1t /var/log/wtmp* | head -2 | tail -1); last -x -f /var/log/wtmp) | \
|
|
|
+grep -A1 reboot | head -2 | grep -q shutdown && echo "Expected reboot" || echo "Panic reboot"
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [screen](https://en.wikipedia.org/wiki/GNU_Screen)
|
|
|
+
|
|
|
+###### 在分离模式下启动 screen
|
|
|
+
|
|
|
+```bash
|
|
|
+screen -d -m <command>
|
|
|
+```
|
|
|
+
|
|
|
+###### 附加到现有的 screen 会话
|
|
|
+
|
|
|
+```bash
|
|
|
+screen -r -d <pid>
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [script](https://en.wikipedia.org/wiki/Script_(Unix))
|
|
|
+
|
|
|
+###### 录制和回放终端会话
|
|
|
+
|
|
|
+```bash
|
|
|
+### 录制会话
|
|
|
+# 1)
|
|
|
+script -t 2>~/session.time -a ~/session.log
|
|
|
+
|
|
|
+# 2)
|
|
|
+script --timing=session.time session.log
|
|
|
+
|
|
|
+### 回放会话
|
|
|
+scriptreplay --timing=session.time session.log
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [du](https://en.wikipedia.org/wiki/GNU_Screen)
|
|
|
+
|
|
|
+###### 显示 20 个最大的目录(以 K/M/G 标记)
|
|
|
+
|
|
|
+```bash
|
|
|
+du | \
|
|
|
+sort -r -n | \
|
|
|
+awk '{split("K M G",v); s=1; while($1>1024){$1/=1024; s++} print int($1)" "v[s]"\t"$2}' | \
|
|
|
+head -n 20
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [inotifywait](https://en.wikipedia.org/wiki/GNU_Screen)
|
|
|
+
|
|
|
+###### 每当目录中的文件被修改时触发操作
|
|
|
+
|
|
|
+```bash
|
|
|
+while true ; do inotifywait -r -e MODIFY dir/ && ls dir/ ; done;
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [openssl](https://www.openssl.org/)
|
|
|
+
|
|
|
+###### 测试到远程主机的连接
|
|
|
+
|
|
|
+```bash
|
|
|
+echo | openssl s_client -connect google.com:443 -showcerts
|
|
|
+```
|
|
|
+
|
|
|
+###### 测试到远程主机的连接(调试模式)
|
|
|
+
|
|
|
+```bash
|
|
|
+echo | openssl s_client -connect google.com:443 -showcerts -tlsextdebug -status
|
|
|
+```
|
|
|
+
|
|
|
+###### 测试到远程主机的连接(支持 SNI)
|
|
|
+
|
|
|
+```bash
|
|
|
+echo | openssl s_client -showcerts -servername google.com -connect google.com:443
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用特定 SSL 版本测试到远程主机的连接
|
|
|
+
|
|
|
+```bash
|
|
|
+openssl s_client -tls1_2 -connect google.com:443
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用特定 SSL 密码测试到远程主机的连接
|
|
|
+
|
|
|
+```bash
|
|
|
+openssl s_client -cipher 'AES128-SHA' -connect google.com:443
|
|
|
+```
|
|
|
+
|
|
|
+###### 验证 0-RTT
|
|
|
+
|
|
|
+```bash
|
|
|
+_host="example.com"
|
|
|
+
|
|
|
+cat > req.in << __EOF__
|
|
|
+HEAD / HTTP/1.1
|
|
|
+Host: $_host
|
|
|
+Connection: close
|
|
|
+__EOF__
|
|
|
+
|
|
|
+openssl s_client -connect ${_host}:443 -tls1_3 -sess_out session.pem -ign_eof < req.in
|
|
|
+openssl s_client -connect ${_host}:443 -tls1_3 -sess_in session.pem -early_data req.in
|
|
|
+```
|
|
|
+
|
|
|
+###### 生成无密码保护的私钥
|
|
|
+
|
|
|
+```bash
|
|
|
+# _len: 2048, 4096
|
|
|
+( _fd="private.key" ; _len="2048" ; \
|
|
|
+openssl genrsa -out ${_fd} ${_len} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 生成带密码保护的私钥
|
|
|
+
|
|
|
+```bash
|
|
|
+# _ciph: aes128, aes256
|
|
|
+# _len: 2048, 4096
|
|
|
+( _ciph="aes128" ; _fd="private.key" ; _len="2048" ; \
|
|
|
+openssl genrsa -${_ciph} -out ${_fd} ${_len} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 移除私钥的密码保护
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd="private.key" ; _fd_unp="private_unp.key" ; \
|
|
|
+openssl rsa -in ${_fd} -out ${_fd_unp} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 为现有私钥添加密码保护
|
|
|
+
|
|
|
+```bash
|
|
|
+# _ciph: aes128, aes256
|
|
|
+( _ciph="aes128" ; _fd="private.key" ; _fd_pass="private_pass.key" ; \
|
|
|
+openssl rsa -${_ciph} -in ${_fd} -out ${_fd_pass}
|
|
|
+```
|
|
|
+
|
|
|
+###### 检查私钥
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd="private.key" ; \
|
|
|
+openssl rsa -check -in ${_fd} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 从私钥获取公钥
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd="private.key" ; _fd_pub="public.key" ; \
|
|
|
+openssl rsa -pubout -in ${_fd} -out ${_fd_pub} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 生成私钥和 CSR
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd="private.key" ; _fd_csr="request.csr" ; _len="2048" ; \
|
|
|
+openssl req -out ${_fd_csr} -new -newkey rsa:${_len} -nodes -keyout ${_fd} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 生成 CSR
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd="private.key" ; _fd_csr="request.csr" ; \
|
|
|
+openssl req -out ${_fd_csr} -new -key ${_fd} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 生成 CSR(从现有证书获取元数据)
|
|
|
+
|
|
|
+ > 其中 `private.key` 是现有的私钥。如你所见,不是从证书(公钥)生成此 CSR。也不是生成"相同"的 CSR,而是一个新的用于请求新证书的 CSR。
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd="private.key" ; _fd_csr="request.csr" ; _fd_crt="cert.crt" ; \
|
|
|
+openssl x509 -x509toreq -in ${_fd_crt} -out ${_fd_csr} -signkey ${_fd} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用 -config 参数生成 CSR
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd="private.key" ; _fd_csr="request.csr" ; \
|
|
|
+openssl req -new -sha256 -key ${_fd} -out ${_fd_csr} \
|
|
|
+-config <(
|
|
|
+cat << __EOF__
|
|
|
+[req]
|
|
|
+default_bits = 2048
|
|
|
+default_md = sha256
|
|
|
+prompt = no
|
|
|
+distinguished_name = dn
|
|
|
+req_extensions = req_ext
|
|
|
+
|
|
|
+[ dn ]
|
|
|
+C = "<two-letter ISO abbreviation for your country>"
|
|
|
+ST = "<state or province where your organisation is legally located>"
|
|
|
+L = "<city where your organisation is legally located>"
|
|
|
+O = "<legal name of your organisation>"
|
|
|
+OU = "<section of the organisation>"
|
|
|
+CN = "<fully qualified domain name>"
|
|
|
+
|
|
|
+[ req_ext ]
|
|
|
+subjectAltName = @alt_names
|
|
|
+
|
|
|
+[ alt_names ]
|
|
|
+DNS.1 = <fully qualified domain name>
|
|
|
+DNS.2 = <next domain>
|
|
|
+DNS.3 = <next domain>
|
|
|
+__EOF__
|
|
|
+))
|
|
|
+```
|
|
|
+
|
|
|
+`[ dn ]` 中的其他值:
|
|
|
+
|
|
|
+```
|
|
|
+countryName = "DE" # C=
|
|
|
+stateOrProvinceName = "Hessen" # ST=
|
|
|
+localityName = "Keller" # L=
|
|
|
+postalCode = "424242" # L/postalcode=
|
|
|
+postalAddress = "Keller" # L/postaladdress=
|
|
|
+streetAddress = "Crater 1621" # L/street=
|
|
|
+organizationName = "apfelboymschule" # O=
|
|
|
+organizationalUnitName = "IT Department" # OU=
|
|
|
+commonName = "example.com" # CN=
|
|
|
+emailAddress = "webmaster@example.com" # CN/emailAddress=
|
|
|
+```
|
|
|
+
|
|
|
+`oids` 示例(你可能还需要通过在 `[new_oids]` 下添加以下内容来让 OpenSSL 知道 EV 所需的新字段):
|
|
|
+
|
|
|
+```
|
|
|
+[req]
|
|
|
+...
|
|
|
+oid_section = new_oids
|
|
|
+
|
|
|
+[ new_oids ]
|
|
|
+postalCode = 2.5.4.17
|
|
|
+streetAddress = 2.5.4.9
|
|
|
+```
|
|
|
+
|
|
|
+完整示例:
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd="private.key" ; _fd_csr="request.csr" ; \
|
|
|
+openssl req -new -sha256 -key ${_fd} -out ${_fd_csr} \
|
|
|
+-config <(
|
|
|
+cat << __EOF__
|
|
|
+[req]
|
|
|
+default_bits = 2048
|
|
|
+default_md = sha256
|
|
|
+prompt = no
|
|
|
+distinguished_name = dn
|
|
|
+req_extensions = req_ext
|
|
|
+oid_section = new_oids
|
|
|
+
|
|
|
+[ new_oids ]
|
|
|
+serialNumber = 2.5.4.5
|
|
|
+streetAddress = 2.5.4.9
|
|
|
+postalCode = 2.5.4.17
|
|
|
+businessCategory = 2.5.4.15
|
|
|
+
|
|
|
+[ dn ]
|
|
|
+serialNumber=00001111
|
|
|
+businessCategory=Private Organization
|
|
|
+jurisdictionC=DE
|
|
|
+C=DE
|
|
|
+ST=Hessen
|
|
|
+L=Keller
|
|
|
+postalCode=424242
|
|
|
+streetAddress=Crater 1621
|
|
|
+O=AV Company
|
|
|
+OU=IT
|
|
|
+CN=example.com
|
|
|
+
|
|
|
+[ req_ext ]
|
|
|
+subjectAltName = @alt_names
|
|
|
+
|
|
|
+[ alt_names ]
|
|
|
+DNS.1 = example.com
|
|
|
+__EOF__
|
|
|
+))
|
|
|
+```
|
|
|
+
|
|
|
+更多信息请参阅这些优秀的解释:
|
|
|
+
|
|
|
+- [RFC 5280](https://tools.ietf.org/html/rfc5280)
|
|
|
+- [How to create multidomain certificates using config files](https://apfelboymchen.net/gnu/notes/openssl%20multidomain%20with%20config%20files.html)
|
|
|
+- [Generate a multi domains certificate using config files](https://gist.github.com/romainnorberg/464758a6620228b977212a3cf20c3e08)
|
|
|
+- [Your OpenSSL CSR command is out of date](https://expeditedsecurity.com/blog/openssl-csr-command/)
|
|
|
+- [OpenSSL example configuration file](https://www.tbs-certificats.com/openssl-dem-server-cert.cnf)
|
|
|
+- [Object Identifiers (OIDs)](https://www.alvestrand.no/objectid/)
|
|
|
+- [openssl objects.txt](https://github.com/openssl/openssl/blob/master/crypto/objects/objects.txt)
|
|
|
+
|
|
|
+###### 列出可用的 EC 曲线
|
|
|
+
|
|
|
+```bash
|
|
|
+openssl ecparam -list_curves
|
|
|
+```
|
|
|
+
|
|
|
+###### 打印 ECDSA 私钥和公钥
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd="private.key" ; \
|
|
|
+openssl ec -in ${_fd} -noout -text )
|
|
|
+
|
|
|
+# 对于 x25519 仅提取公钥
|
|
|
+( _fd="private.key" ; _fd_pub="public.key" ; \
|
|
|
+openssl pkey -in ${_fd} -pubout -out ${_fd_pub} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 生成 ECDSA 私钥
|
|
|
+
|
|
|
+```bash
|
|
|
+# _curve: prime256v1, secp521r1, secp384r1
|
|
|
+( _fd="private.key" ; _curve="prime256v1" ; \
|
|
|
+openssl ecparam -out ${_fd} -name ${_curve} -genkey )
|
|
|
+
|
|
|
+# _curve: X25519
|
|
|
+( _fd="private.key" ; _curve="x25519" ; \
|
|
|
+openssl genpkey -algorithm ${_curve} -out ${_fd} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 生成私钥和 CSR (ECC)
|
|
|
+
|
|
|
+```bash
|
|
|
+# _curve: prime256v1, secp521r1, secp384r1
|
|
|
+( _fd="domain.com.key" ; _fd_csr="domain.com.csr" ; _curve="prime256v1" ; \
|
|
|
+openssl ecparam -out ${_fd} -name ${_curve} -genkey ; \
|
|
|
+openssl req -new -key ${_fd} -out ${_fd_csr} -sha256 )
|
|
|
+```
|
|
|
+
|
|
|
+###### 生成自签名证书
|
|
|
+
|
|
|
+```bash
|
|
|
+# _len: 2048, 4096
|
|
|
+( _fd="domain.key" ; _fd_out="domain.crt" ; _len="2048" ; _days="365" ; \
|
|
|
+openssl req -newkey rsa:${_len} -nodes \
|
|
|
+-keyout ${_fd} -x509 -days ${_days} -out ${_fd_out} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 从现有私钥生成自签名证书
|
|
|
+
|
|
|
+```bash
|
|
|
+# _len: 2048, 4096
|
|
|
+( _fd="domain.key" ; _fd_out="domain.crt" ; _days="365" ; \
|
|
|
+openssl req -key ${_fd} -nodes \
|
|
|
+-x509 -days ${_days} -out ${_fd_out} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 从现有私钥和 CSR 生成自签名证书
|
|
|
+
|
|
|
+```bash
|
|
|
+# _len: 2048, 4096
|
|
|
+( _fd="domain.key" ; _fd_csr="domain.csr" ; _fd_out="domain.crt" ; _days="365" ; \
|
|
|
+openssl x509 -signkey ${_fd} -nodes \
|
|
|
+-in ${_fd_csr} -req -days ${_days} -out ${_fd_out} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 生成 DH 公共参数
|
|
|
+
|
|
|
+```bash
|
|
|
+( _dh_size="2048" ; \
|
|
|
+openssl dhparam -out /etc/nginx/ssl/dhparam_${_dh_size}.pem "$_dh_size" )
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示 DH 公共参数
|
|
|
+
|
|
|
+```bash
|
|
|
+openssl pkeyparam -in dhparam.pem -text
|
|
|
+```
|
|
|
+
|
|
|
+###### 从 pfx 中提取私钥
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd_pfx="cert.pfx" ; _fd_key="key.pem" ; \
|
|
|
+openssl pkcs12 -in ${_fd_pfx} -nocerts -nodes -out ${_fd_key} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 从 pfx 中提取私钥和证书
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd_pfx="cert.pfx" ; _fd_pem="key_certs.pem" ; \
|
|
|
+openssl pkcs12 -in ${_fd_pfx} -nodes -out ${_fd_pem} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 从 p7b 中提取证书
|
|
|
+
|
|
|
+```bash
|
|
|
+# PKCS#7 文件不包含私钥。
|
|
|
+( _fd_p7b="cert.p7b" ; _fd_pem="cert.pem" ; \
|
|
|
+openssl pkcs7 -inform DER -outform PEM -in ${_fd_p7b} -print_certs > ${_fd_pem})
|
|
|
+# 或:
|
|
|
+openssl pkcs7 -print_certs -in -in ${_fd_p7b} -out ${_fd_pem})
|
|
|
+```
|
|
|
+
|
|
|
+###### 将 DER 转换为 PEM
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd_der="cert.crt" ; _fd_pem="cert.pem" ; \
|
|
|
+openssl x509 -in ${_fd_der} -inform der -outform pem -out ${_fd_pem} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 将 PEM 转换为 DER
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd_der="cert.crt" ; _fd_pem="cert.pem" ; \
|
|
|
+openssl x509 -in ${_fd_pem} -outform der -out ${_fd_der} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 验证私钥
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd="private.key" ; \
|
|
|
+openssl rsa -noout -text -in ${_fd} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 验证公钥
|
|
|
+
|
|
|
+```bash
|
|
|
+# 1)
|
|
|
+( _fd="public.key" ; \
|
|
|
+openssl pkey -noout -text -pubin -in ${_fd} )
|
|
|
+
|
|
|
+# 2)
|
|
|
+( _fd="private.key" ; \
|
|
|
+openssl rsa -inform PEM -noout -in ${_fd} &> /dev/null ; \
|
|
|
+if [ $? = 0 ] ; then echo -en "OK\n" ; fi )
|
|
|
+```
|
|
|
+
|
|
|
+###### 验证证书
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd="certificate.crt" ; # 格式: pem, cer, crt \
|
|
|
+openssl x509 -noout -text -in ${_fd} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 验证 CSR
|
|
|
+
|
|
|
+```bash
|
|
|
+( _fd_csr="request.csr" ; \
|
|
|
+openssl req -text -noout -in ${_fd_csr} )
|
|
|
+```
|
|
|
+
|
|
|
+###### 检查私钥和证书是否匹配
|
|
|
+
|
|
|
+```bash
|
|
|
+(openssl rsa -noout -modulus -in private.key | openssl md5 ; \
|
|
|
+openssl x509 -noout -modulus -in certificate.crt | openssl md5) | uniq
|
|
|
+```
|
|
|
+
|
|
|
+###### 检查私钥和 CSR 是否匹配
|
|
|
+
|
|
|
+```bash
|
|
|
+(openssl rsa -noout -modulus -in private.key | openssl md5 ; \
|
|
|
+openssl req -noout -modulus -in request.csr | openssl md5) | uniq
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [secure-delete](https://wiki.archlinux.org/index.php/Securely_wipe_disk) - 安全删除
|
|
|
+
|
|
|
+###### 使用 shred 安全删除
|
|
|
+
|
|
|
+```bash
|
|
|
+shred -vfuz -n 10 file
|
|
|
+shred --verbose --random-source=/dev/urandom -n 1 /dev/sda
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用 scrub 安全删除
|
|
|
+
|
|
|
+```bash
|
|
|
+scrub -p dod /dev/sda
|
|
|
+scrub -p dod -r file
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用 badblocks 安全删除
|
|
|
+
|
|
|
+```bash
|
|
|
+badblocks -s -w -t random -v /dev/sda
|
|
|
+badblocks -c 10240 -s -w -t random -v /dev/sda
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用 secure-delete 安全删除
|
|
|
+
|
|
|
+```bash
|
|
|
+srm -vz /tmp/file
|
|
|
+sfill -vz /local
|
|
|
+sdmem -v
|
|
|
+swapoff /dev/sda5 && sswap -vz /dev/sda5
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [dd](https://en.wikipedia.org/wiki/Dd_(Unix))
|
|
|
+
|
|
|
+###### 让 dd 显示进度状态
|
|
|
+
|
|
|
+```bash
|
|
|
+dd <dd_params> status=progress
|
|
|
+watch --interval 5 killall -USR1 dd
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用 dd 将输出重定向到文件
|
|
|
+
|
|
|
+```bash
|
|
|
+echo "string" | dd of=filename
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [gpg](https://www.gnupg.org/)
|
|
|
+
|
|
|
+###### 导出公钥
|
|
|
+
|
|
|
+```bash
|
|
|
+gpg --export --armor "<username>" > username.pkey
|
|
|
+```
|
|
|
+
|
|
|
+ * `--export` - 从所有密钥环导出所有密钥或特定密钥
|
|
|
+ * `-a|--armor` - 创建 ASCII armored 输出
|
|
|
+
|
|
|
+###### 加密文件
|
|
|
+
|
|
|
+```bash
|
|
|
+gpg -e -r "<username>" dump.sql
|
|
|
+```
|
|
|
+
|
|
|
+ * `-e|--encrypt` - 加密数据
|
|
|
+ * `-r|--recipient` - 为特定 <username> 加密
|
|
|
+
|
|
|
+###### 解密文件
|
|
|
+
|
|
|
+```bash
|
|
|
+gpg -o dump.sql -d dump.sql.gpg
|
|
|
+```
|
|
|
+
|
|
|
+ * `-o|--output` - 用作输出文件
|
|
|
+ * `-d|--decrypt` - 解密数据(默认)
|
|
|
+
|
|
|
+###### 搜索接收者
|
|
|
+
|
|
|
+```bash
|
|
|
+gpg --keyserver hkp://keyserver.ubuntu.com --search-keys "<username>"
|
|
|
+```
|
|
|
+
|
|
|
+ * `--keyserver` - 设置特定密钥服务器
|
|
|
+ * `--search-keys` - 在密钥服务器上搜索密钥
|
|
|
+
|
|
|
+###### 列出加密文件中的所有数据包
|
|
|
+
|
|
|
+```bash
|
|
|
+gpg --batch --list-packets archive.gpg
|
|
|
+gpg2 --batch --list-packets archive.gpg
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [system-other](https://github.com/trimstray/the-book-of-secret-knowledge#tool-system-other) - 系统其他
|
|
|
+
|
|
|
+###### 从 init 重启系统
|
|
|
+
|
|
|
+```bash
|
|
|
+exec /sbin/init 6
|
|
|
+```
|
|
|
+
|
|
|
+###### 从单用户模式初始化系统
|
|
|
+
|
|
|
+```bash
|
|
|
+exec /sbin/init
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示进程的当前工作目录
|
|
|
+
|
|
|
+```bash
|
|
|
+readlink -f /proc/<PID>/cwd
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示已执行命令的实际路径名
|
|
|
+
|
|
|
+```bash
|
|
|
+readlink -f /proc/<PID>/exe
|
|
|
+```
|
|
|
+
|
|
|
+##### 工具: [curl](https://curl.haxx.se)
|
|
|
+
|
|
|
+```bash
|
|
|
+curl -Iks https://www.google.com
|
|
|
+```
|
|
|
+
|
|
|
+ * `-I` - 仅显示响应头
|
|
|
+ * `-k` - 使用 SSL 时的不安全连接
|
|
|
+ * `-s` - 静默模式(不显示主体)
|
|
|
+
|
|
|
+```bash
|
|
|
+curl -Iks --location -X GET -A "x-agent" https://www.google.com
|
|
|
+```
|
|
|
+
|
|
|
+ * `--location` - 跟随重定向
|
|
|
+ * `-X` - 设置方法
|
|
|
+ * `-A` - 设置 user-agent
|
|
|
+
|
|
|
+```bash
|
|
|
+curl -Iks --location -X GET -A "x-agent" --proxy http://127.0.0.1:16379 https://www.google.com
|
|
|
+```
|
|
|
+
|
|
|
+ * `--proxy [socks5://|http://]` - 设置代理服务器
|
|
|
+
|
|
|
+```bash
|
|
|
+curl -o file.pdf -C - https://example.com/Aiju2goo0Ja2.pdf
|
|
|
+```
|
|
|
+
|
|
|
+ * `-o` - 将输出写入文件
|
|
|
+ * `-C` - 恢复传输
|
|
|
+
|
|
|
+###### 查找你的外部 IP 地址(外部服务)
|
|
|
+
|
|
|
+```bash
|
|
|
+curl ipinfo.io
|
|
|
+curl ipinfo.io/ip
|
|
|
+curl icanhazip.com
|
|
|
+curl ifconfig.me/ip ; echo
|
|
|
+```
|
|
|
+
|
|
|
+###### 重复 URL 请求
|
|
|
+
|
|
|
+```bash
|
|
|
+# 使用虚拟查询字符串进行 URL 序列替换:
|
|
|
+curl -ks https://example.com/?[1-20]
|
|
|
+
|
|
|
+# 使用 Shell 'for' 循环:
|
|
|
+for i in {1..20} ; do curl -ks https://example.com/ ; done
|
|
|
+```
|
|
|
+
|
|
|
+###### 检查特定域名的 DNS 和 HTTP 跟踪及头部
|
|
|
+
|
|
|
+```bash
|
|
|
+### 设置域名和外部 DNS 服务器。
|
|
|
+_domain_list=(google.com) ; _dns_list=("8.8.8.8" "1.1.1.1")
|
|
|
+
|
|
|
+for _domain in "${_domain_list[@]}" ; do
|
|
|
+
|
|
|
+ printf '=%.0s' {1..48}
|
|
|
+
|
|
|
+ echo
|
|
|
+
|
|
|
+ printf "[\\e[1;32m+\\e[m] resolve: %s\\n" "$_domain"
|
|
|
+
|
|
|
+ for _dns in "${_dns_list[@]}" ; do
|
|
|
+
|
|
|
+ # 解析域名。
|
|
|
+ host "${_domain}" "${_dns}"
|
|
|
+
|
|
|
+ echo
|
|
|
+
|
|
|
+ done
|
|
|
+
|
|
|
+ for _proto in http https ; do
|
|
|
+
|
|
|
+ printf "[\\e[1;32m+\\e[m] trace + headers: %s://%s\\n" "$_proto" "$_domain"
|
|
|
+
|
|
|
+ # 获取 trace 和 http 头部。
|
|
|
+ curl -Iks -A "x-agent" --location "${_proto}://${_domain}"
|
|
|
+
|
|
|
+ echo
|
|
|
+
|
|
|
+ done
|
|
|
+
|
|
|
+done
|
|
|
+
|
|
|
+unset _domain_list _dns_list
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [httpie](https://httpie.org/)
|
|
|
+
|
|
|
+```bash
|
|
|
+http -p Hh https://www.google.com
|
|
|
+```
|
|
|
+
|
|
|
+ * `-p` - 打印请求和响应头
|
|
|
+ * `H` - 请求头
|
|
|
+ * `B` - 请求体
|
|
|
+ * `h` - 响应头
|
|
|
+ * `b` - 响应体
|
|
|
+
|
|
|
+```bash
|
|
|
+http -p Hh https://www.google.com --follow --verify no
|
|
|
+```
|
|
|
+
|
|
|
+ * `-F, --follow` - 跟随重定向
|
|
|
+ * `--verify no` - 跳过 SSL 验证
|
|
|
+
|
|
|
+```bash
|
|
|
+http -p Hh https://www.google.com --follow --verify no \
|
|
|
+--proxy http:http://127.0.0.1:16379
|
|
|
+```
|
|
|
+
|
|
|
+ * `--proxy [http:]` - 设置代理服务器
|
|
|
+
|
|
|
+##### 工具: [ssh](https://www.openssh.com/)
|
|
|
+
|
|
|
+###### 转义序列
|
|
|
+
|
|
|
+```
|
|
|
+# 支持的转义序列:
|
|
|
+~. - 终止连接(以及任何多路复用会话)
|
|
|
+~B - 向远程系统发送 BREAK
|
|
|
+~C - 打开命令行
|
|
|
+~R - 请求重新生成密钥(仅 SSH 协议 2)
|
|
|
+~^Z - 挂起 ssh
|
|
|
+~# - 列出转发的连接
|
|
|
+~& - 后台 ssh(当等待连接终止时)
|
|
|
+~? - 此消息
|
|
|
+~~ - 通过输入两次来发送转义字符本身
|
|
|
+```
|
|
|
+
|
|
|
+###### 比较远程文件与本地文件
|
|
|
+
|
|
|
+```bash
|
|
|
+ssh user@host cat /path/to/remotefile | diff /path/to/localfile -
|
|
|
+```
|
|
|
+
|
|
|
+###### 通过中间主机进行 SSH 连接
|
|
|
+
|
|
|
+```bash
|
|
|
+ssh -t reachable_host ssh unreachable_host
|
|
|
+```
|
|
|
+
|
|
|
+###### 通过 SSH 在远程主机上运行命令
|
|
|
+
|
|
|
+```bash
|
|
|
+cat > cmd.txt << __EOF__
|
|
|
+cat /etc/hosts
|
|
|
+__EOF__
|
|
|
+
|
|
|
+ssh host -l user $(<cmd.txt)
|
|
|
+```
|
|
|
+
|
|
|
+###### 从私钥获取公钥
|
|
|
+
|
|
|
+```bash
|
|
|
+ssh-keygen -y -f ~/.ssh/id_rsa
|
|
|
+```
|
|
|
+
|
|
|
+###### 获取所有指纹
|
|
|
+
|
|
|
+```bash
|
|
|
+ssh-keygen -l -f .ssh/known_hosts
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用用户密码进行 SSH 认证
|
|
|
+
|
|
|
+```bash
|
|
|
+ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no user@remote_host
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用公钥进行 SSH 认证
|
|
|
+
|
|
|
+```bash
|
|
|
+ssh -o PreferredAuthentications=publickey -o PubkeyAuthentication=yes -i id_rsa user@remote_host
|
|
|
+```
|
|
|
+
|
|
|
+###### 简单录制 SSH 会话
|
|
|
+
|
|
|
+```bash
|
|
|
+function _ssh_sesslog() {
|
|
|
+
|
|
|
+ _sesdir="<path/to/session/logs>"
|
|
|
+
|
|
|
+ mkdir -p "${_sesdir}" && \
|
|
|
+ ssh $@ 2>&1 | tee -a "${_sesdir}/$(date +%Y%m%d).log"
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+# 别名:
|
|
|
+alias ssh='_ssh_sesslog'
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用 Keychain 进行 SSH 登录
|
|
|
+
|
|
|
+```bash
|
|
|
+### 删除 ssh-agent 的所有密钥。
|
|
|
+function _scl() {
|
|
|
+
|
|
|
+ /usr/bin/keychain --clear
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+### 添加密钥到 Keychain。
|
|
|
+function _scg() {
|
|
|
+
|
|
|
+ /usr/bin/keychain /path/to/private-key
|
|
|
+ source "$HOME/.keychain/$HOSTNAME-sh"
|
|
|
+
|
|
|
+}
|
|
|
+```
|
|
|
+
|
|
|
+###### SSH 登录不处理任何登录脚本
|
|
|
+
|
|
|
+```bash
|
|
|
+ssh -tt user@host bash
|
|
|
+```
|
|
|
+
|
|
|
+###### SSH 本地端口转发
|
|
|
+
|
|
|
+示例 1:
|
|
|
+
|
|
|
+```bash
|
|
|
+# 将本地 2250 端口通过 localhost 转发到 nmap.org:443
|
|
|
+host1> ssh -L 2250:nmap.org:443 localhost
|
|
|
+
|
|
|
+# 连接到服务:
|
|
|
+host1> curl -Iks --location -X GET https://localhost:2250
|
|
|
+```
|
|
|
+
|
|
|
+示例 2:
|
|
|
+
|
|
|
+```bash
|
|
|
+# 将本地 9051 端口通过 node.d.y 转发到 db.d.x:5432
|
|
|
+host1> ssh -nNT -L 9051:db.d.x:5432 node.d.y
|
|
|
+
|
|
|
+# 连接到服务:
|
|
|
+host1> psql -U db_user -d db_dev -p 9051 -h localhost
|
|
|
+```
|
|
|
+
|
|
|
+ * `-n` - 从 `/dev/null` 重定向 stdin
|
|
|
+ * `-N` - 不执行远程命令
|
|
|
+ * `-T` - 禁用伪终端分配
|
|
|
+
|
|
|
+###### SSH 远程端口转发
|
|
|
+
|
|
|
+```bash
|
|
|
+# 将本地 9051 端口通过 node.d.y 从 host2 转发到 db.d.x:5432
|
|
|
+host1> ssh -nNT -R 9051:db.d.x:5432 node.d.y
|
|
|
+
|
|
|
+# 连接到服务:
|
|
|
+host2> psql -U postgres -d postgres -p 8000 -h localhost
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [linux-dev](https://www.tldp.org/LDP/abs/html/devref1.html)
|
|
|
+
|
|
|
+###### 测试到端口的远程连接
|
|
|
+
|
|
|
+```bash
|
|
|
+timeout 1 bash -c "</dev/<proto>/<host>/<port>" >/dev/null 2>&1 ; echo $?
|
|
|
+```
|
|
|
+
|
|
|
+ * `<proto` - 设置协议 (tcp/udp)
|
|
|
+ * `<host>` - 设置远程主机
|
|
|
+ * `<port>` - 设置目标端口
|
|
|
+
|
|
|
+###### 使用常用 Bash 工具读写 TCP 或 UDP 套接字
|
|
|
+
|
|
|
+```bash
|
|
|
+exec 5<>/dev/tcp/<host>/<port>; cat <&5 & cat >&5; exec 5>&-
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [tcpdump](http://www.tcpdump.org/)
|
|
|
+
|
|
|
+###### 过滤(接口上的)传入流量(特定 <ip:port>)
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -ne -i eth0 -Q in host 192.168.252.1 and port 443
|
|
|
+```
|
|
|
+
|
|
|
+ * `-n` - 不转换地址(`-nn` 将不解析主机名或端口)
|
|
|
+ * `-e` - 打印链路层头部
|
|
|
+ * `-i [iface|any]` - 设置接口
|
|
|
+ * `-Q|-D [in|out|inout]` - 选择发送/接收方向(`-D` - 旧版 tcpdump 版本)
|
|
|
+ * `host [ip|hostname]` - 设置主机,也可 `[host not]`
|
|
|
+ * `[and|or]` - 设置逻辑
|
|
|
+ * `port [1-65535]` - 设置端口号,也可 `[port not]`
|
|
|
+
|
|
|
+###### 过滤(接口上的)传入流量(特定 <ip:port>)并写入文件
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -ne -i eth0 -Q in host 192.168.252.1 and port 443 -c 5 -w tcpdump.pcap
|
|
|
+```
|
|
|
+
|
|
|
+ * `-c [num]` - 仅捕获 num 数量的数据包
|
|
|
+ * `-w [filename]` - 将数据包写入文件,`-r [filename]` - 从文件读取
|
|
|
+
|
|
|
+###### 捕获所有 ICMP 数据包
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -nei eth0 icmp
|
|
|
+```
|
|
|
+
|
|
|
+###### 检查服务使用的协议(TCP 或 UDP)
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -nei eth0 tcp port 22 -vv -X | egrep "TCP|UDP"
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示 ASCII 文本(用于使用 grep 或其他工具解析输出)
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -i eth0 -A -s0 port 443
|
|
|
+```
|
|
|
+
|
|
|
+###### 抓取两个关键字之间的所有内容
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -i eth0 port 80 -X | sed -n -e '/username/,/=ldap/ p'
|
|
|
+```
|
|
|
+
|
|
|
+###### 抓取所有明文 HTTP 的用户名和密码
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -i eth0 port http -l -A | egrep -i \
|
|
|
+'pass=|pwd=|log=|login=|user=|username=|pw=|passw=|passwd=|password=|pass:|user:|username:|password:|login:|pass |user ' \
|
|
|
+--color=auto --line-buffered -B20
|
|
|
+```
|
|
|
+
|
|
|
+###### 从 HTTP 请求头中提取 HTTP User Agent
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -ei eth0 -nn -A -s1500 -l | grep "User-Agent:"
|
|
|
+```
|
|
|
+
|
|
|
+###### 仅捕获 HTTP GET 和 POST 数据包
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -ei eth0 -s 0 -A -vv \
|
|
|
+'tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420' or 'tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504f5354'
|
|
|
+```
|
|
|
+
|
|
|
+或简单地:
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -ei eth0 -s 0 -v -n -l | egrep -i "POST /|GET /|Host:"
|
|
|
+```
|
|
|
+
|
|
|
+###### 轮换捕获文件
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -ei eth0 -w /tmp/capture-%H.pcap -G 3600 -C 200
|
|
|
+```
|
|
|
+
|
|
|
+ * `-G <num>` - 每 `<num>` 秒创建一个新的 pcap
|
|
|
+ * `-C <size>` - 如果当前 pcap 大于 `<size>` 则关闭并打开新的
|
|
|
+
|
|
|
+###### 按数据包数排名的顶部主机
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -ei enp0s25 -nnn -t -c 200 | cut -f 1,2,3,4 -d '.' | sort | uniq -c | sort -nr | head -n 20
|
|
|
+```
|
|
|
+
|
|
|
+###### 排除任何 RFC 1918 私有地址
|
|
|
+
|
|
|
+```bash
|
|
|
+tcpdump -nei eth0 'not (src net (10 or 172.16/12 or 192.168/16) and dst net (10 or 172.16/12 or 192.168/16))'
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [tcpick](http://tcpick.sourceforge.net/)
|
|
|
+
|
|
|
+###### 实时分析数据包
|
|
|
+
|
|
|
+```bash
|
|
|
+while true ; do tcpick -a -C -r dump.pcap ; sleep 2 ; clear ; done
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [ngrep](http://ngrep.sourceforge.net/usage.html)
|
|
|
+
|
|
|
+```bash
|
|
|
+ngrep -d eth0 "www.domain.com" port 443
|
|
|
+```
|
|
|
+
|
|
|
+ * `-d [iface|any]` - 设置接口
|
|
|
+ * `[domain]` - 设置主机名
|
|
|
+ * `port [1-65535]` - 设置端口号
|
|
|
+
|
|
|
+```bash
|
|
|
+ngrep -d eth0 "www.domain.com" src host 10.240.20.2 and port 443
|
|
|
+```
|
|
|
+
|
|
|
+ * `(host [ip|hostname])` - 按 IP 或主机名过滤
|
|
|
+ * `(port [1-65535])` - 按端口号过滤
|
|
|
+
|
|
|
+```bash
|
|
|
+ngrep -d eth0 -qt -O ngrep.pcap "www.domain.com" port 443
|
|
|
+```
|
|
|
+
|
|
|
+ * `-q` - 安静模式(仅有效载荷)
|
|
|
+ * `-t` - 添加时间戳
|
|
|
+ * `-O [filename]` - 将输出保存到文件,`-I [filename]` - 从文件读取
|
|
|
+
|
|
|
+```bash
|
|
|
+ngrep -d eth0 -qt 'HTTP' 'tcp'
|
|
|
+```
|
|
|
+
|
|
|
+ * `HTTP` - 显示 HTTP 头部
|
|
|
+ * `tcp|udp` - 设置协议
|
|
|
+ * `[src|dst] host [ip|hostname]` - 设置特定节点的方向
|
|
|
+
|
|
|
+```bash
|
|
|
+ngrep -l -q -d eth0 -i "User-Agent: curl*"
|
|
|
+```
|
|
|
+
|
|
|
+ * `-l` - stdout 行缓冲
|
|
|
+ * `-i` - 不区分大小写搜索
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [hping3](http://www.hping.org/)
|
|
|
+
|
|
|
+```bash
|
|
|
+hping3 -V -p 80 -s 5050 <scan_type> www.google.com
|
|
|
+```
|
|
|
+
|
|
|
+ * `-V|--verbose` - 详细模式
|
|
|
+ * `-p|--destport` - 设置目标端口
|
|
|
+ * `-s|--baseport` - 设置源端口
|
|
|
+ * `<scan_type>` - 设置扫描类型
|
|
|
+ * `-F|--fin` - 设置 FIN 标志,端口开放则无回复
|
|
|
+ * `-S|--syn` - 设置 SYN 标志
|
|
|
+ * `-P|--push` - 设置 PUSH 标志
|
|
|
+ * `-A|--ack` - 设置 ACK 标志(当 ping 被阻止时使用,端口开放则返回 RST 响应)
|
|
|
+ * `-U|--urg` - 设置 URG 标志
|
|
|
+ * `-Y|--ymas` - 设置 Y 未使用标志(0x80 - nullscan),端口开放则无回复
|
|
|
+ * `-M 0 -UPF` - 设置 TCP 序列号和扫描类型(URG+PUSH+FIN),端口开放则无回复
|
|
|
+
|
|
|
+```bash
|
|
|
+hping3 -V -c 1 -1 -C 8 www.google.com
|
|
|
+```
|
|
|
+
|
|
|
+ * `-c [num]` - 数据包计数
|
|
|
+ * `-1` - 设置 ICMP 模式
|
|
|
+ * `-C|--icmptype [icmp-num]` - 设置 icmp 类型(默认 icmp-echo = 8)
|
|
|
+
|
|
|
+```bash
|
|
|
+hping3 -V -c 1000000 -d 120 -S -w 64 -p 80 --flood --rand-source <remote_host>
|
|
|
+```
|
|
|
+
|
|
|
+ * `--flood` - 尽可能快地发送数据包(不显示回复)
|
|
|
+ * `--rand-source` - 随机源地址模式
|
|
|
+ * `-d --data` - 数据大小
|
|
|
+ * `-w|--win` - winsize(默认 64)
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [nmap](https://nmap.org/)
|
|
|
+
|
|
|
+###### Ping 扫描网络
|
|
|
+
|
|
|
+```bash
|
|
|
+nmap -sP 192.168.0.0/24
|
|
|
+```
|
|
|
+
|
|
|
+###### 仅显示开放端口
|
|
|
+
|
|
|
+```bash
|
|
|
+nmap -F --open 192.168.0.0/24
|
|
|
+```
|
|
|
+
|
|
|
+###### 全 TCP 端口扫描及服务版本检测
|
|
|
+
|
|
|
+```bash
|
|
|
+nmap -p 1-65535 -sV -sS -T4 192.168.0.0/24
|
|
|
+```
|
|
|
+
|
|
|
+###### Nmap 扫描并将输出传递给 Nikto
|
|
|
+
|
|
|
+```bash
|
|
|
+nmap -p80,443 192.168.0.0/24 -oG - | nikto.pl -h -
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用 Nmap NSE 脚本堆栈侦察特定 ip:service
|
|
|
+
|
|
|
+```bash
|
|
|
+# 设置变量:
|
|
|
+_hosts="192.168.250.10"
|
|
|
+_ports="80,443"
|
|
|
+
|
|
|
+# 设置 Nmap NSE 脚本堆栈:
|
|
|
+_nmap_nse_scripts="+dns-brute,\
|
|
|
+ +http-auth-finder,\
|
|
|
+ +http-chrono,\
|
|
|
+ +http-cookie-flags,\
|
|
|
+ +http-cors,\
|
|
|
+ +http-cross-domain-policy,\
|
|
|
+ +http-csrf,\
|
|
|
+ +http-dombased-xss,\
|
|
|
+ +http-enum,\
|
|
|
+ +http-errors,\
|
|
|
+ +http-git,\
|
|
|
+ +http-grep,\
|
|
|
+ +http-internal-ip-disclosure,\
|
|
|
+ +http-jsonp-detection,\
|
|
|
+ +http-malware-host,\
|
|
|
+ +http-methods,\
|
|
|
+ +http-passwd,\
|
|
|
+ +http-phpself-xss,\
|
|
|
+ +http-php-version,\
|
|
|
+ +http-robots.txt,\
|
|
|
+ +http-sitemap-generator,\
|
|
|
+ +http-shellshock,\
|
|
|
+ +http-stored-xss,\
|
|
|
+ +http-title,\
|
|
|
+ +http-unsafe-output-escaping,\
|
|
|
+ +http-useragent-tester,\
|
|
|
+ +http-vhosts,\
|
|
|
+ +http-waf-detect,\
|
|
|
+ +http-waf-fingerprint,\
|
|
|
+ +http-xssed,\
|
|
|
+ +traceroute-geolocation.nse,\
|
|
|
+ +ssl-enum-ciphers,\
|
|
|
+ +whois-domain,\
|
|
|
+ +whois-ip"
|
|
|
+
|
|
|
+# 设置 Nmap NSE 脚本参数:
|
|
|
+_nmap_nse_scripts_args="dns-brute.domain=${_hosts},http-cross-domain-policy.domain-lookup=true,"
|
|
|
+_nmap_nse_scripts_args+="http-waf-detect.aggro,http-waf-detect.detectBodyChanges,"
|
|
|
+_nmap_nse_scripts_args+="http-waf-fingerprint.intensive=1"
|
|
|
+
|
|
|
+# 执行扫描:
|
|
|
+nmap --script="$_nmap_nse_scripts" --script-args="$_nmap_nse_scripts_args" -p "$_ports" "$_hosts"
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [netcat](http://netcat.sourceforge.net/)
|
|
|
+
|
|
|
+```bash
|
|
|
+nc -kl 5000
|
|
|
+```
|
|
|
+
|
|
|
+ * `-l` - 监听传入连接
|
|
|
+ * `-k` - 客户端断开后继续监听
|
|
|
+ * `>filename.out` - 将接收到的数据保存到文件(可选)
|
|
|
+
|
|
|
+```bash
|
|
|
+nc 192.168.0.1 5051 < filename.in
|
|
|
+```
|
|
|
+
|
|
|
+ * `< filename.in` - 发送数据到远程主机
|
|
|
+
|
|
|
+```bash
|
|
|
+nc -vz 10.240.30.3 5000
|
|
|
+```
|
|
|
+
|
|
|
+ * `-v` - 详细输出
|
|
|
+ * `-z` - 扫描监听守护进程
|
|
|
+
|
|
|
+```bash
|
|
|
+nc -vzu 10.240.30.3 1-65535
|
|
|
+```
|
|
|
+
|
|
|
+ * `-u` - 仅扫描 udp 端口
|
|
|
+
|
|
|
+###### 传输数据文件(归档)
|
|
|
+
|
|
|
+```bash
|
|
|
+server> nc -l 5000 | tar xzvfp -
|
|
|
+client> tar czvfp - /path/to/dir | nc 10.240.30.3 5000
|
|
|
+```
|
|
|
+
|
|
|
+###### 启动远程 Shell
|
|
|
+
|
|
|
+```bash
|
|
|
+# 1)
|
|
|
+server> nc -l 5000 -e /bin/bash
|
|
|
+client> nc 10.240.30.3 5000
|
|
|
+
|
|
|
+# 2)
|
|
|
+server> rm -f /tmp/f; mkfifo /tmp/f
|
|
|
+server> cat /tmp/f | /bin/bash -i 2>&1 | nc -l 127.0.0.1 5000 > /tmp/f
|
|
|
+client> nc 10.240.30.3 5000
|
|
|
+```
|
|
|
+
|
|
|
+###### 简单文件服务器
|
|
|
+
|
|
|
+```bash
|
|
|
+while true ; do nc -l 5000 | tar -xvf - ; done
|
|
|
+```
|
|
|
+
|
|
|
+###### 简单的极简 HTTP 服务器
|
|
|
+
|
|
|
+```bash
|
|
|
+while true ; do nc -l -p 1500 -c 'echo -e "HTTP/1.1 200 OK\n\n $(date)"' ; done
|
|
|
+```
|
|
|
+
|
|
|
+###### 简单 HTTP 服务器
|
|
|
+
|
|
|
+ > 每次请求后重启 Web 服务器 - 移除 `while` 条件则仅允许单次连接。
|
|
|
+
|
|
|
+```bash
|
|
|
+cat > index.html << __EOF__
|
|
|
+<!doctype html>
|
|
|
+ <head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
+ <title></title>
|
|
|
+ <meta name="description" content="">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+
|
|
|
+ <p>
|
|
|
+
|
|
|
+ Hello! It's a site.
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ </body>
|
|
|
+</html>
|
|
|
+__EOF__
|
|
|
+```
|
|
|
+
|
|
|
+```bash
|
|
|
+server> while : ; do \
|
|
|
+(echo -ne "HTTP/1.1 200 OK\r\nContent-Length: $(wc -c <index.html)\r\n\r\n" ; cat index.html;) | \
|
|
|
+nc -l -p 5000 \
|
|
|
+; done
|
|
|
+```
|
|
|
+
|
|
|
+ * `-p` - 端口号
|
|
|
+
|
|
|
+###### 简单 HTTP 代理(单连接)
|
|
|
+
|
|
|
+```bash
|
|
|
+#!/usr/bin/env bash
|
|
|
+
|
|
|
+if [[ $# != 2 ]] ; then
|
|
|
+ printf "%s\\n" \
|
|
|
+ "usage: ./nc-proxy listen-port bk_host:bk_port"
|
|
|
+fi
|
|
|
+
|
|
|
+_listen_port="$1"
|
|
|
+_bk_host=$(echo "$2" | cut -d ":" -f1)
|
|
|
+_bk_port=$(echo "$2" | cut -d ":" -f2)
|
|
|
+
|
|
|
+printf " lport: %s\\nbk_host: %s\\nbk_port: %s\\n\\n" \
|
|
|
+ "$_listen_port" "$_bk_host" "$_bk_port"
|
|
|
+
|
|
|
+_tmp=$(mktemp -d)
|
|
|
+_back="$_tmp/pipe.back"
|
|
|
+_sent="$_tmp/pipe.sent"
|
|
|
+_recv="$_tmp/pipe.recv"
|
|
|
+
|
|
|
+trap 'rm -rf "$_tmp"' EXIT
|
|
|
+
|
|
|
+mkfifo -m 0600 "$_back" "$_sent" "$_recv"
|
|
|
+
|
|
|
+sed "s/^/=> /" <"$_sent" &
|
|
|
+sed "s/^/<= /" <"$_recv" &
|
|
|
+
|
|
|
+nc -l -p "$_listen_port" <"$_back" | \
|
|
|
+tee "$_sent" | \
|
|
|
+nc "$_bk_host" "$_bk_port" | \
|
|
|
+tee "$_recv" >"$_back"
|
|
|
+```
|
|
|
+
|
|
|
+```bash
|
|
|
+server> chmod +x nc-proxy && ./nc-proxy 8080 192.168.252.10:8000
|
|
|
+ lport: 8080
|
|
|
+bk_host: 192.168.252.10
|
|
|
+bk_port: 8000
|
|
|
+
|
|
|
+client> http -p h 10.240.30.3:8080
|
|
|
+HTTP/1.1 200 OK
|
|
|
+Accept-Ranges: bytes
|
|
|
+Cache-Control: max-age=31536000
|
|
|
+Content-Length: 2748
|
|
|
+Content-Type: text/html; charset=utf-8
|
|
|
+Date: Sun, 01 Jul 2018 20:12:08 GMT
|
|
|
+Last-Modified: Sun, 01 Apr 2018 21:53:37 GMT
|
|
|
+```
|
|
|
+
|
|
|
+###### 创建一次性 TCP 或 UDP 代理
|
|
|
+
|
|
|
+```bash
|
|
|
+### TCP -> TCP
|
|
|
+nc -l -p 2000 -c "nc [ip|hostname] 3000"
|
|
|
+
|
|
|
+### TCP -> UDP
|
|
|
+nc -l -p 2000 -c "nc -u [ip|hostname] 3000"
|
|
|
+
|
|
|
+### UDP -> UDP
|
|
|
+nc -l -u -p 2000 -c "nc -u [ip|hostname] 3000"
|
|
|
+
|
|
|
+### UDP -> TCP
|
|
|
+nc -l -u -p 2000 -c "nc [ip|hostname] 3000"
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [gnutls-cli](https://gnutls.org/manual/html_node/gnutls_002dcli-Invocation.html)
|
|
|
+
|
|
|
+###### 测试到远程主机的连接(支持 SNI)
|
|
|
+
|
|
|
+```bash
|
|
|
+gnutls-cli -p 443 google.com
|
|
|
+```
|
|
|
+
|
|
|
+###### 测试到远程主机的连接(不支持 SNI)
|
|
|
+
|
|
|
+```bash
|
|
|
+gnutls-cli --disable-sni -p 443 google.com
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [socat](http://www.dest-unreach.org/socat/doc/socat.html)
|
|
|
+
|
|
|
+###### 测试到端口的远程连接
|
|
|
+
|
|
|
+```bash
|
|
|
+socat - TCP4:10.240.30.3:22
|
|
|
+```
|
|
|
+
|
|
|
+ * `-` - 标准输入 (STDIO)
|
|
|
+ * `TCP4:<params>` - 设置具有特定参数的 tcp4 连接
|
|
|
+ * `[hostname|ip]` - 设置主机名/ip
|
|
|
+ * `[1-65535]` - 设置端口号
|
|
|
+
|
|
|
+###### 在 Linux 下将 TCP 流量重定向到 UNIX 域套接字
|
|
|
+
|
|
|
+```bash
|
|
|
+socat TCP-LISTEN:1234,bind=127.0.0.1,reuseaddr,fork,su=nobody,range=127.0.0.0/8 UNIX-CLIENT:/tmp/foo
|
|
|
+```
|
|
|
+
|
|
|
+ * `TCP-LISTEN:<params>` - 设置具有特定参数的 tcp 监听
|
|
|
+ * `[1-65535]` - 设置端口号
|
|
|
+ * `bind=[hostname|ip]` - 设置绑定的主机名/ip
|
|
|
+ * `reuseaddr` - 允许其他套接字绑定到某个地址
|
|
|
+ * `fork` - 保持父进程尝试产生更多连接
|
|
|
+ * `su=nobody` - 设置用户
|
|
|
+ * `range=[ip-range]` - IP 范围
|
|
|
+ * `UNIX-CLIENT:<params>` - 与指定的对等套接字通信
|
|
|
+ * `filename` - 定义套接字
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [p0f](http://lcamtuf.coredump.cx/p0f3/)
|
|
|
+
|
|
|
+###### 将接口设置为混杂模式并将流量转储到日志文件
|
|
|
+
|
|
|
+```bash
|
|
|
+p0f -i enp0s25 -p -d -o /dump/enp0s25.log
|
|
|
+```
|
|
|
+
|
|
|
+ * `-i` - 监听指定接口
|
|
|
+ * `-p` - 将接口设置为混杂模式
|
|
|
+ * `-d` - fork 到后台
|
|
|
+ * `-o` - 输出文件
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [netstat](https://en.wikipedia.org/wiki/Netstat)
|
|
|
+
|
|
|
+###### 为每个主机的连接数绘制图形
|
|
|
+
|
|
|
+```bash
|
|
|
+netstat -an | awk '/ESTABLISHED/ { split($5,ip,":"); if (ip[1] !~ /^$/) print ip[1] }' | \
|
|
|
+sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }'
|
|
|
+```
|
|
|
+
|
|
|
+###### 监控特定端口的开放连接,包括监听、计数并按 IP 排序
|
|
|
+
|
|
|
+```bash
|
|
|
+watch "netstat -plan | grep :443 | awk {'print \$5'} | cut -d: -f 1 | sort | uniq -c | sort -nk 1"
|
|
|
+```
|
|
|
+
|
|
|
+###### 从本地 IPv4 监听端口抓取横幅
|
|
|
+
|
|
|
+```bash
|
|
|
+netstat -nlt | grep 'tcp ' | grep -Eo "[1-9][0-9]*" | xargs -I {} sh -c "echo "" | nc -v -n -w1 127.0.0.1 {}"
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [rsync](https://en.wikipedia.org/wiki/Rsync)
|
|
|
+
|
|
|
+###### 使用 sudo 作为 root 远程同步数据
|
|
|
+
|
|
|
+```bash
|
|
|
+rsync --rsync-path 'sudo rsync' username@hostname:/path/to/dir/ /local/
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [host](https://en.wikipedia.org/wiki/Host_(Unix))
|
|
|
+
|
|
|
+###### 解析域名(使用外部 DNS 服务器)
|
|
|
+
|
|
|
+```bash
|
|
|
+host google.com 9.9.9.9
|
|
|
+```
|
|
|
+
|
|
|
+###### 检查域管理员(SOA 记录)
|
|
|
+
|
|
|
+```bash
|
|
|
+host -t soa google.com 9.9.9.9
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [dig](https://en.wikipedia.org/wiki/Dig_(command))
|
|
|
+
|
|
|
+###### 解析域名(简短输出)
|
|
|
+
|
|
|
+```bash
|
|
|
+dig google.com +short
|
|
|
+```
|
|
|
+
|
|
|
+###### 查询特定域的 NS 记录
|
|
|
+
|
|
|
+```bash
|
|
|
+dig @9.9.9.9 google.com NS
|
|
|
+```
|
|
|
+
|
|
|
+###### 仅查询答案部分
|
|
|
+
|
|
|
+```bash
|
|
|
+dig google.com +nocomments +noquestion +noauthority +noadditional +nostats
|
|
|
+```
|
|
|
+
|
|
|
+###### 查询所有 DNS 记录
|
|
|
+
|
|
|
+```bash
|
|
|
+dig google.com ANY +noall +answer
|
|
|
+```
|
|
|
+
|
|
|
+###### DNS 反向查询
|
|
|
+
|
|
|
+```bash
|
|
|
+dig -x 172.217.16.14 +short
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [certbot](https://certbot.eff.org/)
|
|
|
+
|
|
|
+###### 生成多域名证书
|
|
|
+
|
|
|
+```bash
|
|
|
+certbot certonly -d example.com -d www.example.com
|
|
|
+```
|
|
|
+
|
|
|
+###### 生成通配符证书
|
|
|
+
|
|
|
+```bash
|
|
|
+certbot certonly --manual --preferred-challenges=dns -d example.com -d *.example.com
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用 4096 位私钥生成证书
|
|
|
+
|
|
|
+```bash
|
|
|
+certbot certonly -d example.com -d www.example.com --rsa-key-size 4096
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [network-other](https://github.com/trimstray/the-book-of-secret-knowledge#tool-network-other) - 网络其他
|
|
|
+
|
|
|
+###### 获取特定 AS(自治系统)的所有子网
|
|
|
+
|
|
|
+```bash
|
|
|
+AS="AS32934"
|
|
|
+whois -h whois.radb.net -- "-i origin ${AS}" | \
|
|
|
+grep "^route:" | \
|
|
|
+cut -d ":" -f2 | \
|
|
|
+sed -e 's/^[ \t]//' | \
|
|
|
+sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4 | \
|
|
|
+cut -d ":" -f2 | \
|
|
|
+sed -e 's/^[ \t]/allow /' | \
|
|
|
+sed 's/$/;/' | \
|
|
|
+sed 's/allow */subnet -> /g'
|
|
|
+```
|
|
|
+
|
|
|
+###### 使用 curl 和 jq 从 dns.google.com 解析域名
|
|
|
+
|
|
|
+```bash
|
|
|
+_dname="google.com" ; curl -s "https://dns.google.com/resolve?name=${_dname}&type=A" | jq .
|
|
|
+```
|
|
|
+
|
|
|
+##### 工具: [git](https://git-scm.com/)
|
|
|
+
|
|
|
+###### 用于体面查看仓库的日志别名
|
|
|
+
|
|
|
+```bash
|
|
|
+# 1)
|
|
|
+git log --oneline --decorate --graph --all
|
|
|
+
|
|
|
+# 2)
|
|
|
+git log --graph \
|
|
|
+--pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' \
|
|
|
+--abbrev-commit
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [python](https://www.python.org/)
|
|
|
+
|
|
|
+###### 静态 HTTP Web 服务器
|
|
|
+
|
|
|
+```bash
|
|
|
+# Python 3.x
|
|
|
+python3 -m http.server 8000 --bind 127.0.0.1
|
|
|
+
|
|
|
+# Python 2.x
|
|
|
+python -m SimpleHTTPServer 8000
|
|
|
+```
|
|
|
+
|
|
|
+###### 带 SSL 支持的静态 HTTP Web 服务器
|
|
|
+
|
|
|
+```bash
|
|
|
+# Python 3.x
|
|
|
+from http.server import HTTPServer, BaseHTTPRequestHandler
|
|
|
+import ssl
|
|
|
+
|
|
|
+httpd = HTTPServer(('localhost', 4443), BaseHTTPRequestHandler)
|
|
|
+
|
|
|
+httpd.socket = ssl.wrap_socket (httpd.socket,
|
|
|
+ keyfile="path/to/key.pem",
|
|
|
+ certfile='path/to/cert.pem', server_side=True)
|
|
|
+
|
|
|
+httpd.serve_forever()
|
|
|
+
|
|
|
+# Python 2.x
|
|
|
+import BaseHTTPServer, SimpleHTTPServer
|
|
|
+import ssl
|
|
|
+
|
|
|
+httpd = BaseHTTPServer.HTTPServer(('localhost', 4443),
|
|
|
+ SimpleHTTPServer.SimpleHTTPRequestHandler)
|
|
|
+
|
|
|
+httpd.socket = ssl.wrap_socket (httpd.socket,
|
|
|
+ keyfile="path/tp/key.pem",
|
|
|
+ certfile='path/to/cert.pem', server_side=True)
|
|
|
+
|
|
|
+httpd.serve_forever()
|
|
|
+```
|
|
|
+
|
|
|
+###### 编码 Base64
|
|
|
+
|
|
|
+```bash
|
|
|
+python -m base64 -e <<< "sample string"
|
|
|
+```
|
|
|
+
|
|
|
+###### 解码 Base64
|
|
|
+
|
|
|
+```bash
|
|
|
+python -m base64 -d <<< "dGhpcyBpcyBlbmNvZGVkCg=="
|
|
|
+```
|
|
|
+
|
|
|
+##### 工具: [awk](http://www.grymoire.com/Unix/Awk.html)
|
|
|
+
|
|
|
+###### 搜索匹配的行
|
|
|
+
|
|
|
+```bash
|
|
|
+# egrep foo
|
|
|
+awk '/foo/' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 搜索不匹配的行
|
|
|
+
|
|
|
+```bash
|
|
|
+# egrep -v foo
|
|
|
+awk '!/foo/' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 打印带行号的匹配行
|
|
|
+
|
|
|
+```bash
|
|
|
+# egrep -n foo
|
|
|
+awk '/foo/{print FNR,$0}' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 打印最后一列
|
|
|
+
|
|
|
+```bash
|
|
|
+awk '{print $NF}' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 查找所有超过 80 个字符的行
|
|
|
+
|
|
|
+```bash
|
|
|
+awk 'length($0)>80{print FNR,$0}' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 仅打印少于 80 个字符的行
|
|
|
+
|
|
|
+```bash
|
|
|
+awk 'length < 80' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 在文件中打印双倍空行
|
|
|
+
|
|
|
+```bash
|
|
|
+awk '1; { print "" }' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 打印行号
|
|
|
+
|
|
|
+```bash
|
|
|
+awk '{ print FNR "\t" $0 }' filename
|
|
|
+awk '{ printf("%5d : %s\n", NR, $0) }' filename # 以更漂亮的方式
|
|
|
+```
|
|
|
+
|
|
|
+###### 仅为非空行打印行号
|
|
|
+
|
|
|
+```bash
|
|
|
+awk 'NF { $0=++a " :" $0 }; { print }' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 打印匹配正则表达式的行及其后两行(i=5)
|
|
|
+
|
|
|
+```bash
|
|
|
+awk '/foo/{i=5+1;}{if(i){i--; print;}}' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 打印从匹配 'server {' 开始到匹配 '}' 结束的行
|
|
|
+
|
|
|
+```bash
|
|
|
+awk '/server {/,/}/' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 打印带分隔符的多列
|
|
|
+
|
|
|
+```bash
|
|
|
+awk -F' ' '{print "ip:\t" $2 "\n port:\t" $3' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 移除空行
|
|
|
+
|
|
|
+```bash
|
|
|
+awk 'NF > 0' filename
|
|
|
+
|
|
|
+# 替代方案:
|
|
|
+awk NF filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 删除尾部空白(空格、制表符)
|
|
|
+
|
|
|
+```bash
|
|
|
+awk '{sub(/[ \t]*$/, "");print}' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 删除前导空白
|
|
|
+
|
|
|
+```bash
|
|
|
+awk '{sub(/^[ \t]+/, ""); print}' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 移除连续重复行
|
|
|
+
|
|
|
+```bash
|
|
|
+# uniq
|
|
|
+awk 'a !~ $0{print}; {a=$0}' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 在不排序的情况下移除文件中的重复条目
|
|
|
+
|
|
|
+```bash
|
|
|
+awk '!x[$0]++' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 排除多列
|
|
|
+
|
|
|
+```bash
|
|
|
+awk '{$1=$3=""}1' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 对于匹配正则表达式的行,将 foo 替换为 bar
|
|
|
+
|
|
|
+```bash
|
|
|
+awk '/regexp/{gsub(/foo/, "bar")};{print}' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 在匹配行的开头添加一些字符
|
|
|
+
|
|
|
+```bash
|
|
|
+awk '/regexp/{sub(/^/, "++++"); print;next;}{print}' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 获取 Apache 日志的最后一小时
|
|
|
+
|
|
|
+```bash
|
|
|
+awk '/'$(date -d "1 hours ago" "+%d\\/%b\\/%Y:%H:%M")'/,/'$(date "+%d\\/%b\\/%Y:%H:%M")'/ { print $0 }' \
|
|
|
+/var/log/httpd/access_log
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [sed](http://www.grymoire.com/Unix/Sed.html)
|
|
|
+
|
|
|
+###### 打印文件中的特定行
|
|
|
+
|
|
|
+```bash
|
|
|
+sed -n 10p /path/to/file
|
|
|
+```
|
|
|
+
|
|
|
+###### 从文件中删除特定行
|
|
|
+
|
|
|
+```bash
|
|
|
+sed -i 10d /path/to/file
|
|
|
+# 替代方案 (BSD): sed -i'' 10d /path/to/file
|
|
|
+```
|
|
|
+
|
|
|
+###### 从文件中删除连续范围的行
|
|
|
+
|
|
|
+```bash
|
|
|
+sed -i <file> -re '<start>,<end>d'
|
|
|
+```
|
|
|
+
|
|
|
+###### 将换行符替换为空格
|
|
|
+
|
|
|
+```bash
|
|
|
+sed ':a;N;$!ba;s/\n/ /g' /path/to/file
|
|
|
+
|
|
|
+# 跨平台兼容语法:
|
|
|
+sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' /path/to/file
|
|
|
+```
|
|
|
+
|
|
|
+- `:a` 创建标签 `a`
|
|
|
+- `N` 将下一行追加到模式空间
|
|
|
+- `$!` 如果不是最后一行,ba 分支(跳转到)标签 `a`
|
|
|
+- `s` 替换,`/\n/` 换行符的正则表达式,`/ /` 替换为空格,`/g` 全局匹配(尽可能多次)
|
|
|
+
|
|
|
+替代方案:
|
|
|
+
|
|
|
+```bash
|
|
|
+# perl 版本(类似 sed 的速度):
|
|
|
+perl -p -e 's/\n/ /' /path/to/file
|
|
|
+
|
|
|
+# bash 版本(较慢):
|
|
|
+while read line ; do printf "%s" "$line " ; done < file
|
|
|
+```
|
|
|
+
|
|
|
+###### 删除字符串及其后 +N 行
|
|
|
+
|
|
|
+```bash
|
|
|
+sed '/start/,+4d' /path/to/file
|
|
|
+```
|
|
|
+
|
|
|
+___
|
|
|
+
|
|
|
+##### 工具: [grep](http://www.grymoire.com/Unix/Grep.html)
|
|
|
+
|
|
|
+###### 在当前目录所有文件中搜索 "pattern"
|
|
|
+
|
|
|
+```bash
|
|
|
+grep -rn "pattern"
|
|
|
+grep -RnisI "pattern" *
|
|
|
+fgrep "pattern" * -R
|
|
|
+```
|
|
|
+
|
|
|
+###### 仅显示匹配多个模式的结果
|
|
|
+
|
|
|
+```bash
|
|
|
+grep 'INFO*'\''WARN' filename
|
|
|
+grep 'INFO\|WARN' filename
|
|
|
+grep -e INFO -e WARN filename
|
|
|
+grep -E '(INFO|WARN)' filename
|
|
|
+egrep "INFO|WARN" filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 排除多个模式
|
|
|
+
|
|
|
+```bash
|
|
|
+grep -vE '(error|critical|warning)' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示文件中没有注释的数据
|
|
|
+
|
|
|
+```bash
|
|
|
+grep -v ^[[:space:]]*# filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示文件中没有注释和空行的数据
|
|
|
+
|
|
|
+```bash
|
|
|
+egrep -v '#|^$' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 显示包含连字符/短划线的字符串
|
|
|
+
|
|
|
+```bash
|
|
|
+grep -e -- filename
|
|
|
+grep -- -- filename
|
|
|
+grep "\-\-" filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 从文件中删除空行并将输出保存到新文件
|
|
|
+
|
|
|
+```bash
|
|
|
+grep . filename > newfilename
|
|
|
+```
|
|
|
+
|
|
|
+##### 工具: [perl](https://www.perl.org/)
|
|
|
+
|
|
|
+###### 搜索和替换(原地编辑)
|
|
|
+
|
|
|
+```bash
|
|
|
+perl -i -pe's/SEARCH/REPLACE/' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 编辑 `*.conf` 文件将所有 foo 改为 bar(并备份原始文件)
|
|
|
+
|
|
|
+```bash
|
|
|
+perl -p -i.orig -e 's/\bfoo\b/bar/g' *.conf
|
|
|
+```
|
|
|
+
|
|
|
+###### 打印 `*.conf` 文件的前 20 行
|
|
|
+
|
|
|
+```bash
|
|
|
+perl -pe 'exit if $. > 20' *.conf
|
|
|
+```
|
|
|
+
|
|
|
+###### 搜索第 10 到 20 行
|
|
|
+
|
|
|
+```bash
|
|
|
+perl -ne 'print if 10 .. 20' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 删除前 10 行(并备份原始文件)
|
|
|
+
|
|
|
+```bash
|
|
|
+perl -i.orig -ne 'print unless 1 .. 10' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 删除 foo 和 bar 之间行之外的所有内容(并备份原始文件)
|
|
|
+
|
|
|
+```bash
|
|
|
+perl -i.orig -ne 'print unless /^foo$/ .. /^bar$/' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 将多个连续空行缩减为单行
|
|
|
+
|
|
|
+```bash
|
|
|
+perl -p -i -00pe0 filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 将制表符转换为空格(1t = 2sp)
|
|
|
+
|
|
|
+```bash
|
|
|
+perl -p -i -e 's/\t/ /g' filename
|
|
|
+```
|
|
|
+
|
|
|
+###### 从文件读取输入并报告行数和字符数
|
|
|
+
|
|
|
+```bash
|
|
|
+perl -lne '$i++; $in += length($_); END { print "$i lines, $in characters"; }' filename
|
|
|
+```
|
|
|
+
|
|
|
+#### Shell 技巧 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+当你获得一个 Shell 时,它通常不太干净,但按照以下步骤操作后,你将拥有一个相当干净且舒适的 Shell 工作环境。
|
|
|
+
|
|
|
+1) `script /dev/null -c bash`
|
|
|
+2) Ctrl-Z(将其发送到后台)
|
|
|
+3) `stty raw -echo; fg`(将 shell 返回到前台)
|
|
|
+4) `reset`(重置终端)
|
|
|
+5) `xterm`(当被询问终端类型时)
|
|
|
+6) `export TERM=xterm; export SHELL=bash`
|
|
|
+
|
|
|
+#### Shell 函数 [<sup>[目录]</sup>](#anger-table-of-contents)
|
|
|
+
|
|
|
+##### 目录
|
|
|
+
|
|
|
+- [Domain resolve](#domain-resolve) - 域名解析
|
|
|
+- [Get ASN](#get-asn) - 获取 ASN
|
|
|
+
|
|
|
+###### 域名解析 (Domain resolve)
|
|
|
+
|
|
|
+```bash
|
|
|
+# 依赖:
|
|
|
+# - curl
|
|
|
+# - jq
|
|
|
+
|
|
|
+function DomainResolve() {
|
|
|
+
|
|
|
+ local _host="$1"
|
|
|
+
|
|
|
+ local _curl_base="curl --request GET"
|
|
|
+ local _timeout="15"
|
|
|
+
|
|
|
+ _host_ip=$($_curl_base -ks -m "$_timeout" "https://dns.google.com/resolve?name=${_host}&type=A" | \
|
|
|
+ jq '.Answer[0].data' | tr -d "\"" 2>/dev/null)
|
|
|
+
|
|
|
+ if [[ -z "$_host_ip" ]] || [[ "$_host_ip" == "null" ]] ; then
|
|
|
+
|
|
|
+ echo -en "域名解析失败。\\n"
|
|
|
+
|
|
|
+ else
|
|
|
+
|
|
|
+ echo -en "$_host > $_host_ip\\n"
|
|
|
+
|
|
|
+ fi
|
|
|
+
|
|
|
+}
|
|
|
+```
|
|
|
+
|
|
|
+示例:
|
|
|
+
|
|
|
+```bash
|
|
|
+shell> DomainResolve nmap.org
|
|
|
+nmap.org > 45.33.49.119
|
|
|
+
|
|
|
+shell> DomainResolve nmap.org
|
|
|
+域名解析失败。
|
|
|
+```
|
|
|
+
|
|
|
+###### 获取 ASN (Get ASN)
|
|
|
+
|
|
|
+```bash
|
|
|
+# 依赖:
|
|
|
+# - curl
|
|
|
+
|
|
|
+function GetASN() {
|
|
|
+
|
|
|
+ local _ip="$1"
|
|
|
+
|
|
|
+ local _curl_base="curl --request GET"
|
|
|
+ local _timeout="15"
|
|
|
+
|
|
|
+ _asn=$($_curl_base -ks -m "$_timeout" "http://ip-api.com/line/${_ip}?fields=as")
|
|
|
+
|
|
|
+ _state=$(echo $?)
|
|
|
+
|
|
|
+ if [[ -z "$_ip" ]] || [[ "$_ip" == "null" ]] || [[ "$_state" -ne 0 ]]; then
|
|
|
+
|
|
|
+ echo -en "ASN 获取失败。\\n"
|
|
|
+
|
|
|
+ else
|
|
|
+
|
|
|
+ echo -en "$_ip > $_asn\\n"
|
|
|
+
|
|
|
+ fi
|
|
|
+
|
|
|
+}
|
|
|
+```
|
|
|
+
|
|
|
+示例:
|
|
|
+
|
|
|
+```bash
|
|
|
+shell> GetASN 1.1.1.1
|
|
|
+1.1.1.1 > AS13335 Cloudflare, Inc.
|
|
|
+
|
|
|
+shell> GetASN 0.0.0.0
|
|
|
+ASN 获取失败。
|
|
|
+```
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+> **原项目:** [https://github.com/trimstray/the-book-of-secret-knowledge](https://github.com/trimstray/the-book-of-secret-knowledge)
|
|
|
+>
|
|
|
+> 本中文翻译力求完整保留原文的所有工具链接、代码块与结构。标记为 **\*** 的 URL 暂时不可用。
|