sheepray / volatility

Automatically exported from code.google.com/p/volatility
GNU General Public License v2.0
1 stars 0 forks source link

Error adding new plugin in 2.3.1 #525

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add new plugin file myplugin.py
2. copy the content of the tutorial :Plugin example 
https://code.google.com/p/volatility/wiki/PluginInterface22
3. run command 
vol.py --profile=Win7SP0x64 myplugin -f /root/Desktop/memdump.mem 

What is the expected output? What do you see instead?
=========================================
Expecting : something similar to the tutorial in 
https://code.google.com/p/volatility/wiki/PluginInterface22
=========================================
Process: System, Pid: 4
Process: smss.exe, Pid: 368
Process: csrss.exe, Pid: 584
Process: winlogon.exe, Pid: 608
Process: services.exe, Pid: 652
Process: lsass.exe, Pid: 664
Process: svchost.exe, Pid: 824
==============================================
Getting 
==============================================
*** Failed to import volatility.plugins.myPlugin (SyntaxError: invalid syntax 
(myPlugin.py, line 14))
ERROR   : __main__            : You must specify something to do (try -h)

What version of the product are you using? On what operating system?
2.3.1 on Kali GNU/Linux 1.0.9

Please provide any additional information below.
Plugin class gets created, but when I try to copy the rest of the tutorial and 
run the command it gives a syntax error.

Original issue reported on code.google.com by milindaw...@gmail.com on 5 Apr 2015 at 4:08