Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'route add' fails on java meterpreter #622

Closed
jcran opened this issue Jul 19, 2012 · 1 comment
Closed

'route add' fails on java meterpreter #622

jcran opened this issue Jul 19, 2012 · 1 comment

Comments

@jcran
Copy link
Contributor

jcran commented Jul 19, 2012

running on ARM host, used a simple command to route a single host:

meterpreter > route add 192.168.10.1 255.255.255.0 1
Creating route 192.168.10.1/255.255.255.0 -> 1
[-] stdapi_net_config_add_route: Operation failed: 1

Getting this in the logs:

[07/19/2012 10:51:48] [e(0)] meterpreter: stdapi_net_config_add_route: Operation failed: 1
[07/19/2012 10:51:48] [d(0)] meterpreter: Call stack:
metasploit-framework/lib/rex/post/meterpreter/extensions/stdapi/net/config.rb:152:in `add_route'
metasploit-framework/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/net.rb:212:in `cmd_route'
metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:420:in `run_command'
metasploit-framework/lib/rex/post/meterpreter/ui/console.rb:104:in `run_command'
metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:382:in `block in run_single'
metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:376:in `each'
metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:376:in `run_single'
metasploit-framework/lib/rex/post/meterpreter/ui/console.rb:68:in `block in interact'
metasploit-framework/lib/rex/ui/text/shell.rb:190:in `call'
metasploit-framework/lib/rex/ui/text/shell.rb:190:in `run'
metasploit-framework/lib/rex/post/meterpreter/ui/console.rb:66:in `interact'
metasploit-framework/lib/msf/base/sessions/meterpreter.rb:431:in `_interact'
metasploit-framework/lib/rex/ui/interactive.rb:49:in `interact'
metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:1595:in `cmd_sessions'
metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:420:in `run_command'
metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:382:in `block in run_single'
metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:376:in `each'
metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:376:in `run_single'
metasploit-framework/lib/rex/ui/text/shell.rb:200:in `run'
./msfconsole:143:in `<main>'
@jlee-r7
Copy link
Contributor

jlee-r7 commented Oct 3, 2012

route in meterpreter is not the same as route at the msfconsole prompt.

meterpreter > route list

IPv4 network routes
===================

    Subnet        Netmask        Gateway  Metric  Interface
    ------        -------        -------  ------  ---------
    192.168.99.3  255.255.252.0  0.0.0.0  
    127.0.0.1     0.0.0.0        0.0.0.0  


IPv6 network routes
===================

    Subnet                     Netmask                                  Gateway  Metric  Interface
    ------                     -------                                  -------  ------  ---------
    ::1                        ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff  ::       
    fe80::a2b3:ccff:fec5:8648  ffff:ffff:ffff:ffff::                    ::       

meterpreter > background 
[*] Backgrounding session 1...
14:52:28 1 10> route add 192.168.99.0 255.255.255.0 1 
[*] Route added
14:52:51 1 10> 

Works as expected.

@jlee-r7 jlee-r7 closed this as completed Oct 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants