halpomeranz / lmg Goto Github PK
View Code? Open in Web Editor NEWScript for automating Linux memory capture and analysis
Script for automating Linux memory capture and analysis
I followed your instructions for installing everything to a thumb drive, and everything seems to work fine up until the profile creation. I get the following error in /tools/linux/module.c:150:8: error: redefinition of 'struct radix_tree_node'.
It says this is originally defined in include/linux/radix-tree.h:87:8.
I am going to comment this line out and see what happens. Any advice?
I tried to run LMG on my SUSE SLES 15 test VM for grabbing its memory.
Memory dumping via AVML seems to run smoothly but when I requested LMG to create a profile for this system's memory I got the following error:
linux-6ujy:/run/media/sles/8da3c33c-73a1-4bab-a911-5220e6f972f2 # ./lmg
AVML is /run/media/sles/8da3c33c-73a1-4bab-a911-5220e6f972f2/avml/avml-x86_64
Dumping memory in "lime" format to /run/media/sles/8da3c33c-73a1-4bab-a911-5220e6f972f2/capture/linux-6ujy-2023-07-19_02.54.31
This could take a while...Done!
Grabbing a copy of /bin/bash...Done!
Writing volatilityrc to /run/media/sles/8da3c33c-73a1-4bab-a911-5220e6f972f2/capture/linux-6ujy-2023-07-19_02.54.31...Done!
Compile profile for this system? [N|y] y
make -C //lib/modules/4.12.14-577.gcac0110-default/build M="/run/media/sles/8da3c33c-73a1-4bab-a911-5220e6f972f2/volatility/tools/linux" clean
make[1]: *** //lib/modules/4.12.14-577.gcac0110-default/build: No such file or directory. Stop.
Makefile:15: recipe for target 'clean' failed
make: *** [clean] Error 2
adding: module.dwarf (deflated 91%)
adding: boot/System.map-4.12.14-577.gcac0110-default (deflated 79%)
linux-6ujy:/run/media/sles/8da3c33c-73a1-4bab-a911-5220e6f972f2 #
The system's OS specs are as follows:
linux-6ujy:/run/media/sles/8da3c33c-73a1-4bab-a911-5220e6f972f2 # hostnamectl
Static hostname: linux-6ujy.suse
Transient hostname: linux-6ujy
Icon name: computer-vm
Chassis: vm
Machine ID: 0ba95a9f792ad691ef914bbf63c2a52a
Boot ID: eabd56a0048442909ce0ce6f8ea2f349
Virtualization: vmware
Operating System: SUSE Linux Enterprise Server 12 SP5
CPE OS Name: cpe:/o:suse:sles:12:sp5
Kernel: Linux 4.12.14-577.gcac0110-default
Architecture: x86-64
linux-6ujy:/run/media/sles/8da3c33c-73a1-4bab-a911-5220e6f972f2 #
Not sure if this is an issue of your script. :-)
All the best,
Michael
https://github.com/504ensicsLabs/LiME/blob/master/src/Makefile (which I think is the latest? ) doesn't match the patch from lmg so it fails.
I'll fork and attach a pull request
I receive the following error on a Fedora 21 system.
# usb/lmg -d capture/
Try to build LiME kernel module? [N|y] y
make -C /lib/modules/4.1.13-100.fc21.x86_64/build M="/home/user/capture/lime" modules
make[1]: Entering directory '/usr/src/kernels/4.1.13-100.fc21.x86_64'
CC [M] /home/user/capture/lime/tcp.o
CC [M] /home/user/capture/lime/disk.o
CC [M] /home/user/capture/lime/main.o
LD [M] /home/user/capture/lime/lime.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/user/capture/lime/lime.mod.o
LD [M] /home/user/capture/lime/lime.ko
make[1]: Leaving directory '/usr/src/kernels/4.1.13-100.fc21.x86_64'
strip --strip-unneeded lime.ko
mv lime.ko lime-4.1.13-100.fc21.x86_64-x86_64.ko
Still no matching kernel module found... exiting!
Yet, when I manually compile LiME, it is successful...
# usb/LiME/src/make
make -C /lib/modules/4.1.13-100.fc21.x86_64/build M="/home/user/LiME/src" modules
make[1]: Entering directory '/usr/src/kernels/4.1.13-100.fc21.x86_64'
CC [M] /home/user/LiME/src/tcp.o
CC [M] /home/user/LiME/src/disk.o
CC [M] /home/user/LiME/src/main.o
LD [M] /home/user/LiME/src/lime.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/user/LiME/src/lime.mod.o
LD [M] /home/user/LiME/src/lime.ko
make[1]: Leaving directory '/usr/src/kernels/4.1.13-100.fc21.x86_64'
strip --strip-unneeded lime.ko
mv lime.ko lime-4.1.13-100.fc21.x86_64-x86_64.ko
Any idears what's going on?
I checked with the previous issue submitted regarding a similar issue on Fedora. Giving the full path on -d didn't solve it. I am running on the latest Kali Linux Rolling.
root@kali:~# /media/root/RDT/lmg
Try to build LiME kernel module? [N|y] y
make -C /lib/modules/4.11.0-kali1-amd64/build M="/media/root/RDT/lime/src" modules
make[1]: *** /lib/modules/4.11.0-kali1-amd64/build: No such file or directory. Stop.
Makefile:36: recipe for target 'default' failed
make: *** [default] Error 2
Still no matching kernel module found... exiting!
In the quick test, I did, the generated profile does not work. I got
Volatility Foundation Volatility Framework 2.3.1
ERROR : volatility.commands : Invalid profile host-2014-06-13_18.37.34-profile selected
I asked myself it was because System.map is in boot subdir but doesn't seem so.
Zip file contains two non-empty files module.dwarf and boot/System.map-3.13.0-24-generic.
Captured system is lubuntu 14.04.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.