织梦CMS - 轻松建站从此开始!

罗索

How to make a core dump?

罗索客 发布于 2007-08-30 10:54 点击:次 
Question: Hello everyone, recently my friend have found a malcious program running on his web-server. After some actions i thought it would be helpful to make its core dump, but i couldn\'t figure out how to do this. The only thing that came to mind
TAG:

Question:

Hello everyone,
recently my friend have found a malcious program running on his
web-server. After some actions i thought it would be helpful to make
its core dump, but i couldn't figure out how to do this. The only
thing that came to mind was attaching to it with gdb, stopping
it and dumping regions of memory manually (using memory map in
/proc/pid/mem). It went fine, i copied all segments but it would be much
better to have standart core dump, to be able to use usual programms on
it later. I remember, that several years ago default behaviour of a
program running under linux was dumping itself on SIGSEGV.
And I wonder, how was this fullfilled, was it feature of glibc to catch
SIGV and write a dump? Or was it made by the kernel?

Alexander Morozov


The following is for sun solaris. For other OS, such
as Linux or other Unix, there must be similar
commands.

# dumpadm
to define the dump device and savecore directory. Make
sure the save core directory has enough space to save
the image of the memory.

# savecore –L
to save a crash dump of the OS into savecore directory (iwgh)
本站文章除注明转载外,均为本站原创或编译欢迎任何形式的转载,但请务必注明出处,尊重他人劳动,同学习共成长。转载请注明:文章转载自:罗索实验室 [http://www.rosoo.net/a/200708/6789.html]
本文出处: 作者:iwgh
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:点击我更换图片
栏目列表
将本文分享到微信
织梦二维码生成器
推荐内容