File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -539,6 +539,7 @@ def self.dump_sessions(framework, opts={})
539
539
540
540
columns = [ ]
541
541
columns << 'Id'
542
+ columns << 'Name'
542
543
columns << 'Type'
543
544
columns << 'Checkin?' if show_extended
544
545
columns << 'Local URI' if show_extended
@@ -561,6 +562,7 @@ def self.dump_sessions(framework, opts={})
561
562
562
563
row = [ ]
563
564
row << session . sid . to_s
565
+ row << session . sname . to_s
564
566
row << session . type . to_s
565
567
if session . respond_to? ( :session_type )
566
568
row [ -1 ] << ( " " + session . session_type )
@@ -610,6 +612,7 @@ def self.dump_sessions_verbose(framework, opts={})
610
612
611
613
sess_info = session . info . to_s
612
614
sess_id = session . sid . to_s
615
+ sess_name = session . sname . to_s
613
616
sess_tunnel = session . tunnel_to_s + " (#{ session . session_host } )"
614
617
sess_via = session . via_exploit . to_s
615
618
sess_type = session . type . to_s
@@ -636,6 +639,7 @@ def self.dump_sessions_verbose(framework, opts={})
636
639
end
637
640
638
641
out << " Session ID: #{ sess_id } \n "
642
+ out << " Name: #{ sess_name } \n "
639
643
out << " Type: #{ sess_type } \n "
640
644
out << " Info: #{ sess_info } \n "
641
645
out << " Tunnel: #{ sess_tunnel } \n "
You can’t perform that action at this time.
0 commit comments