#include "elf.h"
#include
int main(int argc, char *argv[])
{
FILE *fp;
int i = 0;
int fd = 0;
Elf64_Ehdr ehdr;
if ((fp=fopen(argv[1],"r"))==NULL)
{
...
分类:
其他好文 时间:
2014-09-12 08:55:03
阅读次数:
259
#include "elf.h"
#include
int main(int argc, char *argv[])
{
FILE *fp;
int i = 0;
int fd = 0;
Elf64_Ehdr ehdr;
if ((fp=fopen(argv[1],"r"))==NULL)
{
...
分类:
其他好文 时间:
2014-09-12 08:54:53
阅读次数:
183
//检查打开的文件是不是ELF格式的文件
//检验ELF头
//获得节头表的地址
//遍历节头表,依次查看一个节的属性,从节头字符串表中找到其名称,如果名称和“特别”的section名匹配,则找到此节的地址
//提取“特别”的节中的信息
//显示上面提取的信息
#include
#include
#include
#include
int main(int argc,char...
分类:
其他好文 时间:
2014-09-12 08:54:43
阅读次数:
220
Bad Day Bad Day (坏天气) 来自Daniel Powter -- 2005年MTV欧洲音乐奖提名最佳新人,出自专辑 DANIEL POWTER-- 2005 年荣获英国金榜第五名,这首歌被可口可乐选为广告宣传曲。Where is the moment when needed the....
分类:
其他好文 时间:
2014-09-11 23:41:22
阅读次数:
323
在windows7系统使用sublime text 2编写python上传到centos,执行./xx.py报错 /usr/bin/python^M: bad interpreter: No such file or directory 解决方法 命令下: sed -i ‘s/^M//g‘??filename (注意^M 在linux...
分类:
编程语言 时间:
2014-09-11 13:59:22
阅读次数:
208
一、发现问题:启动 tomcat 控制台报该错误。二、原因:tomcat 的 jdk 版本和编译.class的 jdk 版本不一致。三、解决办法:步骤一:查看 MyEclipse 的 jdk 版本和位置:Window—>Preferences—>Java—>Installed JRES。设置如下图所...
分类:
Web程序 时间:
2014-09-10 20:59:31
阅读次数:
192
Behavioral Patterns可以分为两类设计模式:Behavioral Class Patterns(行为类模式)和Behavioral Object Patterns(行为对象模式)。
Behavioral Class Patterns通过类继承的方式将任务在类之间分配,这类模式包括:Template Method Pattern(模版方法模式)和Interpreter Pattern(解释器模式)。
Behavioral Object Patterns通过对象之间的组合而不是类的继承实现对象之...
分类:
其他好文 时间:
2014-09-10 17:48:50
阅读次数:
241
Some operating systems include the command interpreter in the kernel. Others,such as Windows and UNIX, treat the command interpreter as a special prog...
分类:
其他好文 时间:
2014-09-10 17:17:10
阅读次数:
210
农民约翰的某N(1<=N<=80000)头奶牛正在过乱头发节!由于每头牛都意识到自己凌乱不堪的发型,约翰希望统计出能够看到其他牛的头发的牛的数量。
每一头牛i有一个高度hi(1<=hi<=`10^9`)...
分类:
其他好文 时间:
2014-09-10 14:01:40
阅读次数:
233
常见HTTP状态码200 OK301 Moved Permanently302 Found304 Not Modified307 Temporary Redirect400 Bad Request401 Unauthorized403 Forbidden404 Not Found410 Gone50...
分类:
其他好文 时间:
2014-09-10 09:27:30
阅读次数:
248