/images/zsm.jpg

Study nodejs 「4」

Redis

docker部署

本地是mac,加上初学不想污染环境,就用docker试试

1
2
3
4
5
docker pull redis
docker run -p 6379:6379 -d - redis-server --appendonly yes
docker rename funny_buck redis
docker exec -it redis redis-cli
//vsc中Database Client可以可视化

字符串命令

1
SET key value [NX|XX] [EX seconds] [PX milliseconds] [GET]

key:要设置的键名。 value:要设置的值。 NX:可选参数,表示只在键不存在时才设置值。 XX:可选参数,表示只在键已经存在时才设置值。 EX seconds:可选参数,将键的过期时间设置为指定的秒数。 PX milliseconds:可选参数,将键的过期时间设置为指定的毫秒数。 GET:可选参数,返回键的旧值。

Study nodejs「3」

MVC

这真的很java吧()

安装依赖

npm install inversify reflect-metadata express inversify-express-util prisma class-validator class-transformer

(数据库的东西用的还是上次的,懒得搞了,然后有个版本问题,npm install inversify-express-utils要求inversify@6.0.3express@4.21.1 )

Study nodejs「2」

nodejs&mysql

现在学mysql和sqlserver(学校老师强制要求的)比较多,就先拿这些举例子了

mysql2

一个把nodejs&mysql&express连接的包,顺便使用js-yaml去写配置

Tamuctf2025

前言

这是一个国外学校的比赛,密码质量很高

题目

ECC

Can you get the secret key from the following two signed messages?

1st Message: “The secp256r1 curve was used.”

2nd Message: “k value may have been re-used.”

1st Signature r value: 91684750294663587590699225454580710947373104789074350179443937301009206290695

1st Signature s value: 8734396013686485452502025686012376394264288962663555711176194873788392352477

2nd Signature r value: 91684750294663587590699225454580710947373104789074350179443937301009206290695

2nd Signature s value: 96254287552668750588265978919231985627964457792323178870952715849103024292631

The flag is the secret key used to sign the messages. It will be in the flag format. task

Study Nodejs「1」

为什么学nodejs

可能是后面要接手一些项目,或者是些javaspring烦了,学学nodejs玩,目前感觉nodejs的生态还是不错的

npm的生命周期

第一开始也没想到这个还有生命周期的,就记录一下

HTB Alert&LinkVortex&code

靶场链接

https://app.hackthebox.com/machines/Alert https://app.hackthebox.com/machines/LinkVortex code是本周靶机哎

笔记

HTB的靶场质量都很高,不想像其他的一样写很多没用的东西,主要写学到的东西和靶机概况

whatweb

可以自动分析网站的响应并识别出使用的Web框架、CMS、服务器、JavaScript库等技术组件, 一般情况下whatweb -v输出的比较详细,而且好看, WhatWeb 有 4 种扫描级别,通过数字 1~4 选择,默认为1: