Berkeley-Sysadmin_DeCal - Lab2b
作者学习的版本为spring 2021,但近年的作业内容基本一致 Pipes and Redirection grep -i -v '[aeiouy]' words.txt | head -10 grep -i '\b.*cal.*\b' your_wordlist_file.txt | awk 'length($0) >= 7' > cal.txt Vim ...
作者学习的版本为spring 2021,但近年的作业内容基本一致 Pipes and Redirection grep -i -v '[aeiouy]' words.txt | head -10 grep -i '\b.*cal.*\b' your_wordlist_file.txt | awk 'length($0) >= 7' > cal.txt Vim ...
作者学习的版本为spring 2021,但近年的作业内容基本一致 Exercise 2: Troubleshooting Intro Got the error message when try to install ocfspy package: dpkg: dependency problems prevent configuration of ocfspy: ocfspy ...
作者学习的版本为spring 2021,但近年的作业内容基本一致 Shell spelunking ls -a ls | xargs cat rm * grep -B 2 'http' big_data.txt chmod +x a_script Use vim, nan...
课程来源:b站我是龙套小果丁 见答案 #include <cstddef> #include <new> template <typename T, std::size_t N> class InplaceVector { public: InplaceVector() = default; ~...
作者学习的版本为spring 2021,但近年的作业内容基本一致 Question 1 curl -s https://raw.githubusercontent.com/0xcf/decal-labs/master/a1/albums.txt | \ grep ', Future' | \ cut -d',' -f1 | \ while read album;...
课程来源:b站我是龙套小果丁 template <typename Range> void Function(Range &range) { for (auto &elem : range) { elem *= 2; } } #include <iostream> #include <...
课程来源:b站我是龙套小果丁 前半部分 加上-ftrapv后,溢出会被捕获,程序会abort #include <cstdint> #include <print> int main() { std::uint8_t a = 123; std::println("0x{:x}", reinterpret_cast&...
课后练习 作业1 见练习答案 作业2 扩展内核,实现新系统调用get_taskinfo,能显示当前task的id和task name;实现一个裸机应用程序B,能访问get_taskinfo系统调用 先实现sys_get_taskinfo函数: pub fn sys_get_taskinfo() -> isize { println!("[kernel] get_...
本文档不会详细写出和解释每一个步骤、每一个指令、每一条汇编,如有疑问请自行查阅CSAPP课本、attack lab官方handout以及Google Phase 1 这一关的目标是通过输入的字符串进行注入攻击,使getbuf函数执行完之后跳转到touch1函数,这就需要我们去想办法得到touch1函数的地址以及getbuf函数执行完后返回到的地址。可以使用readelf和objdump...
课后练习 实现一个linux应用程序A,显示当前目录下的文件名。 use std::fs; use std::io; fn main() -> io::Result<()> { let current_dir = std::env::current_dir()?; let entries = fs::read_dir(current_dir)?; ...