Changeset 5453
- Timestamp:
- 03/22/08 01:47:05 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
framework3/trunk/modules/auxiliary/server/capture/pop3.rb
r5424 r5453 54 54 55 55 def run 56 @myhost = datastore['SRVHOST'] 57 @myport = datastore['SRVPORT'] 56 58 exploit() 57 59 end … … 80 82 :host => @state[c][:ip], 81 83 :proto => 'pop3', 82 :targ_host => datastore['SRVHOST'],83 :targ_port => datastore['SRVPORT'],84 :targ_host => @myhost, 85 :targ_port => @myport, 84 86 :user => @state[c][:user], 85 87 :pass => @state[c][:pass] 86 88 ) 87 89 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 88 93 end 89 94 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" 94 97 end 95 98
