linux kernel uaf---babydrive
初学linux 内核pwn,如有不正确的地方还请指教,本文会以一个题目(2017-ciscn-babydrive)跟一个实际的linux内核uaf漏洞讲解。 前置知识 M4x大佬的博客这里已经写的很清楚了,我就不在写这些东西了,毕竟自己也水平有限,担心有说错的地方。但是还是要写一下这个题里面所涉及到的一些问题。...
View ArticleWhy am I getting mojibake when I try to create a shell link?
A customer couldn't get the IShellLink interface to work. They tried to set the shortcut target to a path, but it came out asChinese mojibake. Here's areduction of their code to its simplest form....
View ArticleHow Docker uses cgroups to set resource limits?
Today, I was interested to know how does Docker uses cgroups to set resource limits. In this short post, I will share with you what I learnt. I will assume that you have a machine on which Docker is...
View Articlegrep: Analyze Git Logs with the Command Line
When you have a bunch of text to sift through, standard Unix command line utilities like grep , sed , awk , cut , sort , and uniq can help extract the information you want. For example, with a git log...
View ArticleAfter pasting the way to go to the other end of the inserted text
vim - move the cursor after the inserted text Is there way how to move cursor after inserted (by pasting) multiline text? When doing inline insertion (paste), p and P works just fine. But if I paste...
View Article使用certbot命令和定时任务(crontab)自动更新 let’s encrypt证书
let’s encrypt提供免费的 https 证书,使用非常方便。可以在线自动更新,目前一个证书的有效期只有90天,所以90天内,至少要更新一次证书。所以可以通过定时任务 crontab 和 let’s encrypt 提供的证书管理工 certbot ,可以实现对证书的自动管理,可以对证书进行管理(增加,删除)等操作。 使用crontab 对证书进行自动管理 crontab -e...
View Articlefileboy v1.5 发布,文件变更监听通知系统
fileboy,文件变更监听通知系统,使用 Go 编写。 适用于 Hot Reload (典型的如开发go项目,无需每次手动执行 go build;又比如前端 node 打包) 或者 系统监控的场景。 v1.5 版本更新日志: 增加 http 通知 增加 callUrl 参数 优化 command 稳定性 增加 command -> delayMillSecond 参数 优化 文案 增加...
View ArticleMake a command to open * .h files with vim with separate ...
How can I write a command that will open multiple files, given by argument, in Vim, giving each Vim instance (and corresponding file) its own tab in the terminal? I tried doing this, but xfce4-terminal...
View Article修复 Ubuntu 下拼音输入法崩溃问题
最近在使用 Ubuntu 18.04 的过程中,遇到了一个拼音输入法总是在选字的时候崩溃的问题。 崩溃表现 crashed with SIGABRT in __assert_fail_base() 具体表现为:在打字时,无法使用数字键选择字词,鼠标点选也无效,只能按空格打出第一个字词。当按数字键选择字词时,输入法会崩溃,并输出字母和数字,例如我想打出“谷歌”,“谷歌”在候选列表第二个位置,按下 2...
View ArticleRancherOS 1.5.0 发布,基于容器的简化 Linux 发行版
RancherOS 1.5.0 发布了,RancherOS 是一个基于容器的简化 linux 发行版,系统中的所有东西都是由 Docker 管理的容器,它仅包含运行 Docker 所需的最少量软件,其它所有东西都可以通过 Docker 动态提取。 此版本Docker 版本为 18.06.1-ce,Linux 内核版本为 4.14.85。主要更新内容包括: 支持 LUKS [ #2551 ] 支持...
View ArticleBooting Encrypted Mirror ZFS on Ubuntu 18.10
As I was setting up my new linux machine with two disks, I decided to forgo my favorite Linux Mint and give Ubuntu another try. Main reason? ZFS of course. Ubuntu already has a quite decent guide for...
View ArticleCalculate 18.12发布,基于Gentoo的Linux发行版
Calculate linux 18.12发布了,Calculate 是一个基于 Gentoo 的 Linux 发行版,其提供了许多预配置的功能,专为在企业环境中快速部署而设计。 此版本主要更新内容包括: Linux kernel 升级到 v4.19.9。 KDE Applications 更新到v18.08.3。 KDE Plasma 更新到 v5.14.3。 Cinnamon 更新到...
View ArticleMagisk on T1
Smartisan T1是一款老机型了,时至今日,运行的仍然是Android 4.4的系统。以前研究过它的Bootloader解锁,如今打算回头再看看怎么把最新的root方案Magisk移植进来实现持久。 不同于supersu需要twrp的支持,Magisk提供了一种十分便捷的修改镜像的方法。只要把目标设备的boot.img拖出来,放到任何一台安装有Magisk...
View Article5 Ways to Check CPU Info in Linux
Here are multiple ways you can get CPU information in linux command line. You can get processor information like the number of real cores, logical cores, hyperthreading, CPU frequency etc. There are a...
View ArticleLinux dream machine under 900 euro
04 Jan 2019 - by 'Maurits van der Schee' I write this on my current PC: a passive cooled (Akasa Plato-X case) Intel NUC i7 16gb RAM 512 GB NVMe in my living room. It hangs behind a 27' philips WQHD...
View ArticleIoT中的Linux选择
在物联网的设备设计中,从低成本和低功耗的角度看,Android肯定比不过嵌入式linux。但在选择用于部署Linux的发行版本时,却一直饱受困扰。 什么是 Linux 发行版? Linux 是一个操作系统,它是控制计算机的核心程序。 它决定如何在所有竞争使用的其他程序之间分配可用资源(CPU、内存、磁盘、网络)。 尽管操作系统非常重要,但它本身并不有用。 它的目的是为其他程序管理计算资源。...
View ArticleTake to the virtual skies with FlightGear
If you've ever dreamed of piloting a plane, you'll love FlightGear . It's a full-featured, open source flight simulator that runs on linux, MacOS, and windows. The FlightGear project began in 1996 due...
View ArticleMoving home - updates to vcsh usage
A while back I switched tovcsh. I’ve written afew articles on using it but since then I’ve migrated machines a number of times. The big issue I’ve found is having to manually install software on each...
View ArticleThe sed command does not work correctly in Solaris but works in linux
I have following string which is used further in sed command. Its working properly in linux but NOT working in Solaris -bash-3.00$...
View ArticleLightning Fast Terminal File Manager
nnn Noice is Not Noice, a noicer fork... nnn in action! (Thanks Luke Smith for the video!) nnn is probably thefastest and most resource-sensitivefile manager you have ever used. It integrates...
View Article