Class: FakeSSL
- Inherits:
-
Object
- Object
- FakeSSL
- Defined in:
- lib/fakessl/fakessl.rb
Instance Method Summary collapse
-
#initialize(hostname, lport) ⇒ FakeSSL
constructor
A new instance of FakeSSL.
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 |