File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed
lib/msf/ui/console/command_dispatcher
modules/post/multi/manage Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -1443,14 +1443,9 @@ def cmd_sessions(*args)
1443
1443
session . response_timeout = response_timeout
1444
1444
end
1445
1445
begin
1446
- if [ 'shell' , 'powershell' ] . include? ( session . type )
1447
- session . init_ui ( driver . input , driver . output )
1448
- session . execute_script ( 'post/multi/manage/shell_to_meterpreter' )
1449
- session . reset_ui
1450
- else
1451
- print_error ( "Session #{ sess_id } is not a command shell session, it is #{ session . type } , skipping..." )
1452
- next
1453
- end
1446
+ session . init_ui ( driver . input , driver . output )
1447
+ session . execute_script ( 'post/multi/manage/shell_to_meterpreter' )
1448
+ session . reset_ui
1454
1449
ensure
1455
1450
if session . respond_to? ( :response_timeout ) && last_known_timeout
1456
1451
session . response_timeout = last_known_timeout
Original file line number Diff line number Diff line change @@ -52,11 +52,6 @@ def initialize(info = {})
52
52
def run
53
53
print_status ( "Upgrading session ID: #{ datastore [ 'SESSION' ] } " )
54
54
55
- if session . type =~ /meterpreter/
56
- print_error ( "Shell is already Meterpreter." )
57
- return nil
58
- end
59
-
60
55
# Try hard to find a valid LHOST value in order to
61
56
# make running 'sessions -u' as robust as possible.
62
57
if datastore [ 'LHOST' ]
You can’t perform that action at this time.
0 commit comments