Changeset 5453

Show
Ignore:
Timestamp:
03/22/08 01:47:05 (2 months ago)
Author:
hdm
Message:

Allow logins and print unhandled commands.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/trunk/modules/auxiliary/server/capture/pop3.rb

    r5424 r5453  
    5454 
    5555        def run 
     56                @myhost = datastore['SRVHOST'] 
     57                @myport = datastore['SRVPORT'] 
    5658                exploit() 
    5759        end 
     
    8082                                :host      => @state[c][:ip], 
    8183                                :proto     => 'pop3', 
    82                                 :targ_host => datastore['SRVHOST']
    83                                 :targ_port => datastore['SRVPORT']
     84                                :targ_host => @myhost
     85                                :targ_port => @myport
    8486                                :user      => @state[c][:user], 
    8587                                :pass      => @state[c][:pass] 
    8688                        ) 
    8789                        print_status("POP3 LOGIN #{@state[c][:name]} #{@state[c][:user]} / #{@state[c][:pass]}") 
     90                        @state[c][:pass] = data.strip 
     91                        c.put "+OK\r\n" 
     92                        return                   
    8893                end 
    8994 
    90                 @state[c][:pass] = data.strip 
    91                 c.put "-ERR\r\n" 
    92                 return 
    93                                                          
     95                print_status("POP3 COMMAND #{@state[c][:name]} \"#{data.strip}\"") 
     96                c.put "+OK\r\n" 
    9497        end 
    9598