Changeset 6150
- Timestamp:
- 01/13/09 21:46:10 (6 months ago)
- Location:
- framework3/trunk
- Files:
-
- 3 modified
-
lib/msf/core/handler/find_tty.rb (modified) (2 diffs)
-
lib/msf/core/payload/generic.rb (modified) (1 diff)
-
modules/exploits/test/dialup.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
framework3/trunk/lib/msf/core/handler/find_tty.rb
r6139 r6150 15 15 # 16 16 # Returns the string representation of the handler type, in this case 17 # 'find_tag'. 17 # 'none', which is kind of a lie, but we don't have a better way to 18 # handle this yet 18 19 # 19 20 def self.handler_type 20 return " find_shell"21 return "none" 21 22 end 22 23 23 24 # 24 25 # Returns the connection oriented general handler type, in this case 25 # ' find'.26 # 'none' 26 27 # 27 28 def self.general_handler_type 28 " find"29 "none" 29 30 end 30 31 … … 40 41 41 42 def _check_shell(sock) 43 # Verify that the modem is online 42 44 if(sock.respond_to?('commandstate')) 43 45 return (sock.commandstate ? false : true) -
framework3/trunk/lib/msf/core/payload/generic.rb
r5773 r6150 19 19 def initialize(info = {}) 20 20 super(merge_info(info, 21 'Arch' => ARCH_ALL ,21 'Arch' => ARCH_ALL - [ARCH_TTY], 22 22 'Platform' => '')) 23 23 -
framework3/trunk/modules/exploits/test/dialup.rb
r6120 r6150 26 26 'I)ruid', 27 27 ], 28 'Arch' => ARCH_ CMD,28 'Arch' => ARCH_TTY, 29 29 'Platform' => ['unix'], 30 30 'License' => MSF_LICENSE, … … 33 33 'Space' => 1000, 34 34 'BadChars' => '', 35 'DisableNops' => true,35 'DisableNops' => true, 36 36 }, 37 'PayloadCompat' =>38 {39 'PayloadType' => 'cmd_tty',40 },41 37 'Targets' => 42 38 [ … … 49 45 50 46 def exploit 51 # Connect to the system via dialup 52 modem = connect_dialup 53 if ! modem 54 print_error("Unable to connect.") 55 return 56 end 57 58 # Log in 59 60 # Handoff to the shell handler 61 modem.display = false 62 handler(modem.sock) 63 64 disconnect_dialup(modem) 47 connect_dialup 48 handler 49 disconnect_dialup 65 50 end 66 51
