Gain a linux meterpreter shell on a x86/x64 bit linux box.
How'd you do it?
Should have executed the post module without error and dump gnome keys.
Throwing an error.
meterpreter > sysinfo
Computer : 192.168.1.108
OS : Kali kali-rolling (Linux 4.9.0-kali3-amd64)
Architecture : x64
Meterpreter : x64/linux
meterpreter > run post/linux/gather/gnome_keyring_dump
[-] Post failed: Rex::Post::Meterpreter::RequestError stdapi_railgun_api: Operation failed: 1
[-] Call stack:
[-] /usr/local/share/metasploit-framework-master/lib/rex/post/meterpreter/extensions/stdapi/railgun/dll.rb:266:in process_function_call'
[-] /usr/local/share/metasploit-framework-master/lib/rex/post/meterpreter/extensions/stdapi/railgun/dll.rb:84:incall_function'
[-] /usr/local/share/metasploit-framework-master/lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_wrapper.rb:24:in method_missing'
[-] /usr/local/share/metasploit-framework-master/modules/post/linux/gather/gnome_keyring_dump.rb:195:inrun'
metasploit v4.14.22-dev
MacOS Sierra
Looks like I was trying with wrong meterpreter, this works with python meterpreter only.
Re-opening since this is an issue with the native meterpreter. IIRC the railgun API is only available on the python meterpreter at the moment so the platform of the module should be changed from linux to python. /cc @zeroSteiner
hi there i am an undergrad in computer science , i am looking forward to contribute for metasploit
what is there to contribute in for this bug ,can i help ?
Absolutely! While Rapid7 owns the project and has a bunch of developers that do much of the main work, LOTS of the code is from volunteers (like myself). Check out the awesome docs on how to get started here: https://github.com/rapid7/metasploit-framework/wiki/Contributing-to-Metasploit
If you need further help, check the IRC channel.
everything I am finding about railgun says it is a windows only post feature... that would make sense since it is trying to use DLLs and as far as I know linux systems don't use Windows DLLs. Also in the railgun.rb file it references windows and the railgun.rb file itself is in the core/post/windows folder.