M
Mathspeedy
Hi all,
I wanted to embed the Net::Telnet into a method, just look my code ...
#CODE start here
#!/usr/bin/ruby
require "net/telnet"
class VictimInfo
attr_accessor :ip, ort
#ask for Victim infos
def initialize( )
puts "Victim infos:."
puts "Ip Address: "
puts "Ip Address: #{@ip = gets.to_s}"
puts "Remote Port: "
puts "Remote Port: #{@port = gets.to_i}"
end
#connect to the Victim computer
def connect( ) # I want to use the Net::Telnet library in this
method
#CODE finish here
someone know the way to do it; I know complex method but if there's a
simple way to do it ...
I wanted to embed the Net::Telnet into a method, just look my code ...
#CODE start here
#!/usr/bin/ruby
require "net/telnet"
class VictimInfo
attr_accessor :ip, ort
#ask for Victim infos
def initialize( )
puts "Victim infos:."
puts "Ip Address: "
puts "Ip Address: #{@ip = gets.to_s}"
puts "Remote Port: "
puts "Remote Port: #{@port = gets.to_i}"
end
#connect to the Victim computer
def connect( ) # I want to use the Net::Telnet library in this
method
#CODE finish here
someone know the way to do it; I know complex method but if there's a
simple way to do it ...