ZLSF的博客
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于

学习rust_day06

Vectors 在单一数据结构存储多个值 在内存中连续存储(相邻) 元素必须是同类型 Vec来自标准库 例: 12345678910111213141516171819202122232425262728293031323334353637fn main() { let v: Vec<i32> = Vec::new(); //需要手动标注类型 let w =
2026-03-15

学习rust_day05

切片 例: 123456fn main() { let s = String::from("Hello World"); let hello: &str = &s[0..5]; //存储"Hello" let world: &str = &s[6..11]; //存储"World"
2026-03-14

学习rust_day04

所有权 1234567891011fn main() { let a = String::new(); let b = a; //在此之后无法再使用a除非重新对其定义 let c = fun1(b); //在此之后无法再使用b}fn fun1(mut name: String) -> String { name.push_str(&quo
2026-03-13

学习rust_day03

函数 基本形式: 12345678fn main() { game(5, 'h');}fn game(a: i32, b: char) -> i32 { //必须标注类型, “->” 后表示返回值类型。 println!("{}, {}", a, b); re
2026-03-13

学习rust_day02

静态类型语言:在构建代码时就已经知道所有数据的类型。 动态类型语言:只有在运行程序时才知道数据的类型。且某个变量在运行时可以持有不同类型的数据。 强类型语言:对赋值给变量的类型有较强约束。 弱类型语言:存在隐式类型转换语法的语言。 声明一个常量 使用const声明 不能使用mut 必须标注类型 可以在任意作用域声明 仅可以使用常量表达式赋值 例如:const ABC: i32 =
2026-03-12

学习rust_day01

Rust官网:https://www.rust-lang.org 更新Rust: 1rustup update 卸载Rust: 1rustup self uninstall 验证是否安装Rust成功: 1rustc --version Rust本地文档: 1rustup doc Rust源代码文件名为:.rs Hello World测试代码: 1234fn main() //定义main函
2026-02-27

将虚拟机网络完全接入代理-远离timeout

当你使用虚拟机中的 linux 系统时你能很轻易发现其 terminal 终端相当难以走代理,所以你可能会遇到以下情况: pip3 install 出现 timeout 安装 pwndbg 时总是被莫名奇妙打断和乱七八糟的报错 docker 出现 Error response from daemon: Get https://registry-1.docker.io/v2/: net/
2025-10-23

Pwn解题模版集合

house of apple 2 优化通用模板测试Glibc: Ubuntu GLIBC 2.40-1ubuntu3 模板: 123456789io_wfile_jumps = libc_base + libc.sym['_IO_wfile_jumps']sys_addr = libc_base + libc.sym['system']payload = p
2025-10-15

watctf_f25_PWN_WP

intro2pwncheck: 123456789[*] '/home/zlsf/com/watctf/001/pwn' Arch: amd64-64-little RELRO: No RELRO Stack: Canary found NX: NX unknown - GNU_STACK missing
2025-09-12

NSSCTF4th_Pwn_WP

附件下载:https://z-l-s-f.lanzouq.com/icIXh34gwoxi how_to_fmt?check: 123456789[*] '/home/zlsf/LS/pwn' Arch: amd64-64-little RELRO: Full RELRO Stack: Canary found NX:
2025-08-25
12

搜索

by ZLSF
总访问量 次 总访客数 人