自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(274)
  • 收藏
  • 关注

原创 使用GCC/GNU-ld删除dead code

[url]https://gcc.gnu.org/ml/gcc-help/2003-08/msg00128.htmlhttps://embeddedfreak.wordpress.com/2009/02/10/removing-unused-functionsdead-codes-with-gccgnu-ld/[/url][quote]Hi Dr. Rupp,I...

2016-05-09 17:18:39 406

Invalid or corrupt jarfile

使用最新的burpsuite免费版,出现了[quote]Error: Invalid or corrupt jarfile burpsuite_free_v1.6.32.jar[/quote]错误解决方案:[code="java"]mv burpsuite_free_v1.6.32.jar burpsuit.jarunzip -d burpsuit.jar ./tm...

2016-04-11 23:20:27 703

原创 python 修饰器

[code="python"]def wrapper1(function): print("In wrapper1 pre") @functools.wraps(function) def wrapper(*args, **kwargs): print("In wrapper1 wrapper") args = [float(a...

2016-02-05 15:11:13 212

原创 ubuntu 14.04 install e431 wifi driver

[quote] sudo apt-get install linux-headers-generic build-essential dkms sudo apt-get install linux-source sudo apt-get install --reinstall bcmwl-kernel-source sudo modpro...

2016-01-25 20:59:48 165

原创 git

[url]http://finalshares.cn/attachment/1509/thread/95_80_cbcb426e1ba4faf.jpg[/url]

2016-01-07 12:01:12 112

原创 嵌入式中使用gdb

[b]编译[/b][color=darkblue]For gdb:[/color][code="java"]/path/to/gdb-src/configure --target=arm-linux-gnueabimake[/code][color=darkblue]For GDBserver[/color][quote]/path/to/gdb-src/gdb/gdb...

2016-01-06 17:38:33 182

原创 linux change boot image

1. change grub2[quote]vim /etc/default/grubGRUB_CMDLINE_LINUX_DEFAULT="quiet splash"GRUB_GFXMODE=1366x768[/quote]2. convert jpg image to png image[quote]mogrify -format png OnePiece.jpg[/q...

2016-01-02 00:55:09 241

原创 binwalk --dd

[url]http://www.devttys0.com/2012/12/binwalk-0-5-release/[/url][quote][color=darkblue][b]binwalk --dd='gzip:gz:gunzip %e' firmware.bin[/b][/color][/quote]The above command instructs Binwalk ...

2015-12-28 21:51:22 1022

原创 embeded LD_PRELOAD

[quote][color=blue][b]eve@eve:~/squashfs-root$ sudo chroot . ./qemu-arm -E LD_PRELOAD="/nvram.so" usr/sbin/httpd [/b][/color]usr/sbin/httpd: relocation error: /nvram.so: symbol __register_frame_in...

2015-12-28 00:17:14 137

原创 hardware hacking

For video stuff: [url]https://www.youtube.com/watch?v=FYPhEgbiWrk[/url]command:[url]http://pastebin.com/k4mwgS6T[/url][quote]#http://alexkaskasoli.com/wansview.pdf system.img#note th...

2015-12-27 01:32:22 211

原创 ubuntu support kindle

[quote]apt-get install mtpfs[/quote]

2015-12-20 23:13:47 304

原创 kali 2.0 broadcom wifi connection

[quote]apt-get install -y linux-headers-$(uname -r)apt-get install broadcom-sta-dkms firmware-brcm80211 firmware-b43-installer[/quote]

2015-12-12 16:28:14 149

原创 linux 备份系统

[quote]备份dd if=/dev/sda > myimage.img[/quote][quote]还原cat myimage.img | dd of=/dev/sda[/quote][quote]压缩dd if=/dev/sda | gzip -c > myimage.img[/quote][quote]还原gunzip -c myima...

2015-12-05 22:22:31 81

原创 [译]root权限运行vlc

原文地址:[url]http://www.blackmoreops.com/2015/11/02/fixing-vlc-is-not-supposed-to-be-run-as-root-sorry-error/[/url][quote]apt-get install vlccp /usr/bin/vlc /usr/bin/vlc-backup[/quote]使用hexeditor...

2015-11-30 22:19:03 584

原创 【转】关闭TCP Timestamps来节省一点带宽

http://highscalability.com/blog/2015/10/14/save-some-bandwidth-by-turning-off-tcp-timestamps.html

2015-10-15 23:29:30 762

原创 kali2.0中国源

#中科大kali源deb http://mirrors.ustc.edu.cn/kali sana main non-free contribdeb http://mirrors.ustc.edu.cn/kali-security/ sana/updates main contrib non-freedeb-src http://mirrors.ustc.edu.cn/kali-sec...

2015-09-27 01:42:13 268

原创 [转]Terminal escape sequences – the new XSS for Linux sysadmins

[url]https://ma.ttias.be/terminal-escape-sequences-the-new-xss-for-linux-sysadmins/[/url]

2015-09-25 23:58:04 158

原创 ipython basic

[b]Introspection[/b][quote]Using a question mark ( ? ) before or after a variable will display some general information about the object[/quote][quote]Using ?? will also show the function’s source...

2015-09-25 11:31:30 112

原创 static in C

[code="c"]jason@ubuntu:~/test$ cat a.c#include void(* fpp)(void);static void fp(void){ printf("fp is called\n"); return;}void set_f(void){ fpp =fp; printf("set_f is called\n");...

2015-09-22 11:35:31 94

原创 如何找书

[quote]intitle:"index.of" (pdf|epub|mob) "how to be a 1337 h4ck3r" -html -htm -php -asp -jsp[/quote][quote]intitle:"index.of" (mp4|avi|mkv) "DeepCopy's sex tape" -html -htm -php -asp -jsp[/quote][...

2015-09-20 19:21:02 202

原创 lxc重命名容器名

lxc-ls 使用文件夹名作为容器名。所以可以更改文件夹名称来达到改变容器名。但是改变文件夹名称后,同时需要改变容器文件夹中的config文件所对应的相应文件夹。[quote]# Template used to create this container: /usr/share/lxc/templates/lxc-ubuntu# Parameters passed to the ...

2015-09-20 00:25:36 624

原创 lxc更新apt源

最近一直在使用lxc创建容器,每次创建一个容器都需要把apt源替换成国内的源,然后再运行apt-get update; apt-get upgrade。记得以前研究lxc代码的时候,发现lxc-create使用debootstrap来下载linux文件,然后放在/var/cache/lxc/distribute文件夹下。于是可以:[quote]1. cd /var/cache/lx...

2015-09-18 11:49:12 443

原创 python decorators

[url]http://simeonfranklin.com/blog/2012/jul/1/python-decorators-in-12-steps/[/url]

2015-09-16 14:12:13 88

原创 wireshark:Couldn't run /usr/bin/dumpcap in child process: Permission denied

When start wireshark, I met an error like:[quote]Couldn't run /usr/bin/dumpcap in child process: Permission denied[/quote]Solution:[quote][color=blue]sudo apt-get install libcap2-bin wireshark...

2015-09-11 10:26:59 739

原创 爬虫crawler

抓取标签一些tips:[color=blue][quote]1. 查找“打印本页”的link,或手机版网页(或者把你的爬虫伪装成移动设备),他们可能会有更好的html格式2. 从Javascrpt中查找信息。你应该检查导入的Javascript文件。3. 关键信息可能就是url本身,这对页面标题更常见4. 可以通过css文件来获得关联标签[/quote][/color]字符...

2015-09-09 12:18:40 170

原创 [转]调试python内存泄漏

[url]http://chase-seibert.github.io/blog/2013/08/03/diagnosing-memory-leaks-python.html[/url][url]https://news.ycombinator.com/item?id=10181612[/url]

2015-09-09 00:48:33 123

原创 lxc 安装ubuntu vivid

1. lxc-create --template download --name u1 选择linux distribute版本,ubunut版本,arch2. 进入/var/lib/lxc/u1文件夹,编辑config文件,添加如下两行: lxc.network.ipv4 = 10.0.3.10/24 lxc.network.ipv4.gateway = 10.0...

2015-09-07 23:24:15 308

原创 [转]Python @classmethod and @staticmethod for beginner?

[url]http://stackoverflow.com/questions/12179271/python-classmethod-and-staticmethod-for-beginner/12179325#12179325[/url]

2015-09-07 16:59:13 71

原创 linux 安装scrapy

由于scrapy对python3支持不是很好,所以使用python2.7[color=blue][quote]apt-get install pythonlscd /tmplswget https://bootstrap.pypa.io/get-pip.pyapt-get install wgetwget https://bootstrap.pypa.io/get-...

2015-09-07 13:06:48 108

原创 /usr/bin/ld: cannot find -lz

编译scrapy时出现如下错误:[color=red][quote]/usr/bin/ld: cannot find -lz[/quote][/color]错误原因是因为没有相应的lib于是[color=blue][quote]apt-get install libz-dev[/quote][/color]解决问题...

2015-09-07 12:12:00 642

原创 [转]sysyemd

[url]http://0pointer.de/blog/projects/why.html[/url][url]http://0pointer.de/blog/projects/systemd.html[/url][url]http://www.freedesktop.org/wiki/Software/systemd/[/url]

2015-08-29 23:16:38 58

原创 [转]linux-workstation-security

[url]https://github.com/lfit/itpol/blob/master/linux-workstation-security.md[/url][url]https://news.ycombinator.com/item?id=10134009[/url]

2015-08-29 21:56:17 83

原创 virutalization

[url]https://blog.jtlebi.fr/2014/01/19/introduction-to-linux-namespaces-part-5-net/[/url][url]http://crosbymichael.com/creating-containers-part-1.html[/url]

2015-08-28 17:32:07 72

原创 nginx reverse proxy cofinguration

based on our case, we need to handle two different url request: example/0.5/xxx ==> 192.168.1.100:8080/xxx example/0.7/xxx ==> 192.168.1.101:8080/xxxHere is the configuration:[quote][c...

2015-08-28 15:18:32 100

原创 linux remove blank line in file

[quote]1. sed commandsed '/^$/d' a.txt > output.txt2. vim command:g/^$/d3. cat commandcat -s a.txt4. vim command:%!cat -s[/quote]

2015-08-27 15:48:19 114

原创 [转]w3m cheat sheet

[url]http://wiki.titan2x.com/index.php?title=W3m_cheat_sheet[/url]

2015-08-26 14:45:45 83

原创 gdb load local shared object

[url]http://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_118.html[/url][url]http://visualgdb.com/gdbreference/commands/set_solib-search-path[/url][quote][color=blue]root@jason:/opt/lxc/...

2015-08-26 13:59:27 167

原创 linux daemonize child process

[code="c"]#include #include #include #include #include int main(int argc, char* argv[]){ int status; pid_t pid = fork(); if(-1 == pid){ perror("Fork Error"); }else if (0 ==...

2015-08-25 17:37:00 118

原创 qemu linux

[quote]1. create disk spaceqemu-img create -f qcow2 vdisk.img 10G[/quote][quote]2. install OSqemu-system-x86_64 -hda vdisk.img -cdrom CentOS-6.6-x86_64-minimal.iso -boot d -m 1024[/quote][...

2015-08-24 10:35:24 93

原创 lxc-execute error

[quote][color=red]lxc-execute -n vm1 -f vm1/lxc.conf -- /bin/bash[/color]lxc-execute: cgfs.c: cgroup_read_from_file: 2121 No such file or directory - failed to read /sys/fs/cgroup/lxc/cpuset.cpus...

2015-08-19 18:16:58 231

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除