tools/utility
文章平均质量分 90
Xalloc
create and share values.
展开
-
python解析elf文件
#!/usr/bin/pythonimport struct import syselfhdr = {}def verify_elf(filename): f = open(filename,'rb') elfident = f.read(16) magic = [ord(i) for i in elfident] if( magic[0] != 127 or magic[1]!=原创 2011-09-28 01:01:11 · 8824 阅读 · 0 评论 -
screen lock 无密码登录
screen 是一款多窗口模拟软件,可以设置lock功能将session锁住,但是这个可以绕过密码检查机制,直接实现无密码登录, 具体过程记录如下:1. 首先根据screen lock过程中的提示,找到这个提示的地址, 提示如下,要求输入密码。Screen used by root <root>.Password:这个字符在rodata端可以通过如下命令,把所有的字符都...原创 2017-12-03 17:36:24 · 779 阅读 · 0 评论 -
vim tips
vim highlight extrawhitespace::highlight ExtraWhitespace ctermbg=red guibg=red:match ExtraWhitespace /\s\+$/http://vim.wikia.com/wiki/Highlight_unwanted_spaces转载 2018-03-05 11:31:38 · 197 阅读 · 0 评论 -
rpm builder
源地址: http://ftp.rpm.org/max-rpm/index.html转载 2017-12-13 09:02:06 · 338 阅读 · 0 评论 -
avahi-daemon service
From wiki:avahi is a free zero-configuration networking (zeroconf) implementation, including a system formulticast DNS/DNS-SDservice discovery.Avahi is a system which enables programs原创 2015-09-30 16:22:55 · 2361 阅读 · 0 评论 -
Persistent block device naming
https://wiki.archlinux.org/index.php/Persistent_block_device_naming转载 2015-09-12 20:38:17 · 705 阅读 · 0 评论 -
git rev tips
1. git checkout to previous branchgit checkout -like cd -, - is an abbreviation of @{-1}, @{-n} denotes the nth previous branch.2. @{n}, ref@{n} the nth rev of ref/current branch git show @{1原创 2015-08-04 13:37:32 · 356 阅读 · 0 评论 -
telnet
telnet has default open port 23, which will remote login. But it has much more functions and can almost any network service.it'll help you learn network protocols and debug new developed ones.1.原创 2015-05-31 09:25:42 · 622 阅读 · 0 评论 -
xterm config
xterm config转载 2015-07-03 15:04:40 · 1093 阅读 · 0 评论 -
screen
Please ref to this page: http://www.ibm.com/developerworks/cn/linux/l-cn-screen/screen basic usage:1. screen can exit if even you log out or ssh session terminated. That feature is very usefull原创 2015-06-02 22:34:53 · 521 阅读 · 0 评论 -
xterm run command
create a new xterm window and run some command, after the command executed, keep the window.xterm -hold -e "cmd"原创 2015-06-26 16:30:08 · 482 阅读 · 0 评论 -
ser2net,socat,netcat
http://techtinkering.com/2013/04/02/connecting-to-a-remote-serial-port-over-tcpip/原创 2015-06-05 10:04:34 · 1449 阅读 · 0 评论 -
emacs lisp
http://ergoemacs.org/emacs/elisp.html原创 2015-05-21 14:19:17 · 556 阅读 · 0 评论 -
gcc pragma
#pragma GCC dependency#pragma GCC dependency allows you to check the relative dates of the current file and another file. If the other file is more recent than the current file, a warning is issued. T原创 2013-06-09 12:51:02 · 2411 阅读 · 0 评论 -
使用qemu调试android代码
使用remote-gdb调试android代码:在一个终端上:./emulator -show-kernel -kernel zImage -qemu -cpu cortex-a8 -d in_asm -gdb tcp::1234 -S另一个终端:alloc@linux-q1tz:~/skyeye/armv7/armv7_goldfish_testcase> ~/CodeSo原创 2013-01-14 19:31:02 · 2214 阅读 · 0 评论 -
玩转qemu之内核编译
通过之前的步骤,一个基本的虚机环境就建立起来了,接下来就可以编译linux内核:一种方式是直接从kernel.org上面拿最新的代码来编译,基本步骤如下:1. 获取配置,使用本机的配置文件 cp /boot/config-`uname -r` .config && make olddefconfig2. 编译 make -j $(nproc)3.安装mo...原创 2019-04-05 10:24:22 · 831 阅读 · 0 评论