Class: FakeSSL

Inherits:
Object
  • Object
show all
Defined in:
lib/fakessl/fakessl.rb

Instance Method Summary collapse

Constructor Details

#initialize(hostname, lport) ⇒ FakeSSL

Returns a new instance of FakeSSL.



6
7
8
9
10
11
12
13
14
# File 'lib/fakessl/fakessl.rb', line 6

def initialize(hostname,lport)
  @hostname = hostname
  @lport = lport.to_i
  $stdout.puts "[+] Generating fake SSL certificate for #{@hostname}"
  generate_certificate
  sslServer = server_setup
  $stdout.puts "[+] Fake #{@hostname} is listening on port #{@lport}"
  get_request(sslServer)
end