2013年6月5日

C++函数签名解析

摘要: 2013-11-29实际上不同这么烦锁,直接用objdump -C 或者c++file sourcefile就行了orgmangle首选 1 #! /bin/sh 2 3 elfname=$1 4 objname=$2 5 targetname="" 6 7 thispid=$$ 8 9 filename=/tmp/jerry.${thispid}10 11 rm -f $file... 阅读全文

posted @ 2013-06-05 22:55 阿加 阅读(3223) 评论(0) 推荐(0) 编辑

自动登录服务器 expect

摘要: ssh179 1 #! /usr/bin/expect 2 set timeout 60 3 set host 172.20.106.179 4 set name [lindex $argv 0] 5 set password abc123 6 spawn ssh $name@$host 7 expect { 8 "(yes/no)?" { 9 send "yes\n" 10 ... 阅读全文

posted @ 2013-06-05 22:42 阿加 阅读(190) 评论(0) 推荐(0) 编辑

本地上传服务器

摘要: 1 #! /bin/bash 2 scp -r $1 liuchangcheng@172.20.106.179:~/temp 阅读全文

posted @ 2013-06-05 22:40 阿加 阅读(103) 评论(0) 推荐(0) 编辑

brasb 密码自动应答

摘要: 1 #!/bin/sh 2 #mypasswd时密码 3 mypasswd=..... 4 echo ${mypasswd} | sudo -S brasb > /dev/null 2>&1 5 if [ $? = 0 ] 6 then 7 echo "OK" 8 else 9 echo "Failed"10 fi 阅读全文

posted @ 2013-06-05 22:38 阿加 阅读(152) 评论(0) 推荐(0) 编辑

分析出动态库

摘要: 1 #! /bin/bash 2 LIB_CUR_REL= 3 LIB_CUR_ABS= 4 5 get_binary_dependency() 6 { 7 readelf -d $1 | grep NEEDED | sed -n 's,.*\[\(.*\)\],\1,p' 8 } 9 10 expand_path()11 {12 LIB_CUR_ABS=13 f... 阅读全文

posted @ 2013-06-05 22:34 阿加 阅读(145) 评论(0) 推荐(0) 编辑

toryoma服务器到本地传输

摘要: 1 #! /bin/bash 2 3 name=liuchangcheng 4 5 loginme() 6 { 7 last | grep `w -u $1 | awk 'NR == 3{print $1}'` | grep 'still logged in' | awk '{print $1 ,$3}' | sort -k 2 -d | uniq > /tmp/login${... 阅读全文

posted @ 2013-06-05 22:32 阿加 阅读(178) 评论(0) 推荐(0) 编辑

dostolinux and linuxtodos

摘要: dostolinux1 #! /bin/sh 2 sed -e 's/.$//' $1>$2linuxtodos1 #! /bin/sh 2 sed -e 's/$/\r/' $1>$... 阅读全文

posted @ 2013-06-05 22:30 阿加 阅读(322) 评论(0) 推荐(0) 编辑

观察者模式

摘要: 引述自CSDN 刘伟技术博客http://blog.csdn.net/LoveLion 1 #include 2 #include 3 using namespace std; 4 5 class AllyControlCenter; 6 //抽象观察类 7 class Observ... 阅读全文

posted @ 2013-06-05 21:45 阿加 阅读(167) 评论(0) 推荐(0) 编辑

导航