hexo博客快速上传指南
基本命令: 1hexo cl 清理 1hexo g 生成配置文件 1hexo s 生成本地静态页面 在上传图片时,要修改md本地格式和博客格式相对应,例如: 本地md: 1 博客兼容的: 1{% asset_img image-20260716151546187.png image-20260716151546187 %} 这时候怎么偷懒,一劳永逸呢 在vscode里,ctrl+H全部替换: 筛选栏里: 1!\[(.*?)\]\(D:\\typora -image\\(.*?)\) 顺便点一下那个‘*’那玩意是正则表达式匹配。 替换栏里: 1{% asset_img $2 $1 %} 全部替换即可。 最后 1hexo d 上传到你的博客上面去。
hack the box tier2 Vaccine
HTB WP -Vaccinetask1:12Besides SSH and HTTP, what other service is hosted on this box?除了 SSH 和 HTTP 之外,这台机器上还托管了什么其他服务? 快速用nmap扫一下: 1nmap -F 10.129.124.138 可以看到还有个ftp服务,答案是: 1ftp (新开了一个靶机做补充知识)这是全面扫描的一个指令: 1sudo nmap -sS -sVC -Pn -T4 --open -vv (your ip) -oA fulltcpscan 参数意思: 12345678-sS:隐蔽扫描或者SIN扫描。-sVC:就是-sV和-sC的结合,用于版本扫描和用部分脚本去扫。-Pn:跳过主机发现阶段,人话就是跳过ping,不需要去确定它在网络上是否存活。-T4:就是tier 4,描述的是扫描的强度,激进模式,扫描速度也很快。--open:只报告开放端口。-vv:获得更详细的输出。-oA:给出输出模版,A就是all的意思,给出完整信息。fulltcpscan:只是给输出的东西命名罢了不...
hack the box tier2 Oopsie
HTB WP -Oopsietask1:12With what kind of tool can intercept web traffic?拦截网络流量通常使用什么类型的工具? 回答: 12proxy(代理)你可以通过网络代理,将你的流量重定向到代理服务器。 task2:12What is the path to the directory on the webserver that returns a login page?返回登录页面的网页服务器目录路径是什么? 先对容器进行初步探测,nmap扫一下: 1nmap -F 10.129.137.140 开了个http端口,浏览器访问一下: 找一下登录页面。这里要用到bp抓包(task1就提示了代理,代理对应着抓包),因为我的bp在kali上是社区版(最新版还没有破解版),所以这次我用了win环境来做(仅限抓包)。(win环境下我有bp专业版),先bp抓一下包: 然后我们在目标的配置文件里找到了Login的路径(login的js脚本): 1/cdn-cgi/login task3:12What can...
hack the box tier2 Archetype
HTB WP -Archetypetask1:12Which TCP port is hosting a database server?哪一个 TCP 端口正在托管数据库服务器? nmap 扫一下: SQL server 明显的数据库服务,答案是: 11433 task2:12What is the name of the non-Administrative share available over SMB?通过 SMB 可以访问的非默认共享叫什么名字? (靶机似了换了个靶机)我们知道SMB服务开在445端口(tier 0 dancing 提到过),使用smbclient连接(-N 匿名登录): 123smbclient -L //10.129.147.3/ -N-L 列出共享机器列表-N 匿名登录,不需要密码 1ADMIN$,C$,IPC$都是比较常见的默认共享,而backups是非默认共享的 1smbclient //10.129.147.3/backups -N 答案是: 1backups task3:12What is the passwor...
hack the box tier1 Appointment
HTB WP -Appointmenttask1:12What does the acronym SQL stand for?SQL 这个缩写代表什么意思? 回答: 1Structured Query Language task2:12What is one of the most common type of SQL vulnerabilities?最常见的 SQL 漏洞类型之一是什么? 回答: 1SQL Injection,就是SQL注入,攻击者通过在输入框中恶意输入 SQL 代码,来骗过数据库服务器,从而窃取、篡改数据,甚至直接控制整个系统。 task3:12What is the 2021 OWASP Top 10 classification for this vulnerability?这种漏洞在 2021 版 OWASP Top 10 中的分类是什么? 回答: 1A03:2021-Injection task4:12What does Nmap report as the service and version that are running on p...
hack the box tier1 Crocodile
HTB WP -Crocodiletask1:12What Nmap scanning switch employs the use of default scripts during a scan?哪一个 Nmap 扫描参数(开关)在扫描期间会使用默认脚本? 回答: 1-sC 之前说过,它等同于 --script=default。在实际使用中,大家也经常把 -sC 和用于探测版本的 -sV 组合在一起,写作 -sCV task2:12What service version is found to be running on port 21?在 21 端口上发现了哪个正在运行的服务版本? 探测版本用-sV参数 1nmap -sV 10.129.98.248 -p 21 没有-p也是可以的,答案是: 1vsftpd 3.0.3 task3:12What FTP code is returned to us for the "Anonymous FTP login allowed" message?提示 “允许匿名 FTP 登录”(Anonymo...
hack the box tier1 Responder
HTB WP -Respondertask1:12When visiting the web service using the IP address, what is the domain that we are being redirected to?当使用 IP 地址访问该 Web 服务时,我们被重定向到了哪个域名? 回答: 我们访问一下这个网站: 110.129.118.189 1unika.htb 就是被重定向到的域名。 task2:12Which scripting language is being used on the server to generate webpages?服务器上正在使用哪种脚本语言来生成网页? nmap扫一下: 12nmap -sV 10.129.118.189或者nmap -p- --min-rate 1000 -sV 10.129.118.189 12345675985 端口(WinRM 服务)Windows 远程管理(WinRM) 是 Windows 的原生远程管理协议,它基于简单对象访问协议(SOAP)与远程计算机...
hack the box tier1 Sequel
HTB WP -Sequeltask1:12During our scan, which port do we find serving MySQL?在我们的扫描中,我们发现哪个端口正在运行 MySQL 服务? 回答: 那就nmap扫一下端口: 只有这一个,看它的service:tcpwrapped。 12服务:tcpwrapped(通常这个端口默认对应的服务是 MySQL,虽然在 Nmap 扫描中它的服务标识显示为 tcpwrapped,说明连接在建立后被立即关闭或受到了某种保护/限制,但 3306 确实是经典的 MySQL 默认服务端口)所以答案是3306 task2:12What community-developed MySQL version is the target running?目标运行的是哪个社区开发的 MySQL 版本? 回答: 1你需要直接尝试连接该数据库。由于这是一个新手关卡(Starting Point),它默认允许空密码无密登录。这个版本用nmap探测不到 用 mysql连接: 123mysql -h IP -P 端口 -u 用户名 -p...
hack the box tier1 Three
HTB WP -Threetask 112How many TCP ports are open?有多少个TCP端口是开放的? 这个需要用nmap扫一下端口: 12nmap -sV 10.129.121.197nmap -F 10.129.121.197(或者你想快一点,用fast参数) 但是两者对于端口的详细程度是不一样的。 回答: 12 task 212What is the domain of the email address provided in the "Contact" section of the website?该网站“联系我们”(或“联系方式”)部分提供的电子邮箱地址的域名是什么? 因为这个IP开了http端口,所以我们直接访问一下IP: 我们点contact(联系我们),email给了个域名: 1thetoppers.htb task 312In the absence of a DNS server, which Linux file can we use to resolve hostnames to IP...
hack the box tier0 Redeemer
HTB WP -Redeemertask1:12Which TCP port is open on the machine?机器上哪个 TCP 端口是开放的? 开扫: 1nmap -sV 10.129.91.201 可惜这1000个端口没扫到(这里不是网络问题,既然能扫1000个端口说明已经连上了) 那就只能扩大端口范围了: 1nmap -p- 10.129.91.201 其中: -p-:表示扫描全部 TCP 端口,也就是 1-65535,等价于 -p1-65535。 但是效果很慢。 可以尝试等,或者换种更快的。 决定换一个: 1nmap -Pn -sS -T4 --min-rate 100 -p- 10.129.91.207 12345其中:-Pn(可选):跳过主机发现(不先 ping),直接假设目标在线。-sS(可选):SYN 半开放扫描,只发起握手不完成,速度快。-T4:扫描速度模板,T0~T5:T3 默认,T4 较快,T5 很激进。--min-rate 100:最低发包速率,每秒至少发送 100 个探测包。 发包频率尽量小点,不然给容器扫炸了。...
