Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing the ability to accept/ignore self-signed SSL Certificates #106

Open
R3dy opened this issue Nov 16, 2017 · 0 comments
Open

Missing the ability to accept/ignore self-signed SSL Certificates #106

R3dy opened this issue Nov 16, 2017 · 0 comments

Comments

@R3dy
Copy link

R3dy commented Nov 16, 2017

Forgive me if this is not the appropriate channel to request this feature. I have a tool which uses IMGkit to take screenshots of a bunch of web severs taking in a .xml file generated from Nmap as its input. This is used mostly for internal network penetration testing where you have literally thousands of webservers and you just want a quick peak at whats all out there.

The problem is lots of times servers are using SSL with a sel-signed certificate. To the best of my abilities I have not been able to figure out how to tell IMGKit to ignore the self-signed cert so it simply fails to request the page and render the html.

Here is an example of what my call to IMGKit look slike.

def get_screenshot(url)
    begin
       puts "Taking screenshot: #{url}" if @options[:verbose]
       screenshot = IMGKit.new(url, quality: 25, height: 600, width: 800)
     rescue => error
       puts error
       return nil
     end
     return screenshot
  end

Where 'url' looks like this for example:

https://192.168.1.100:8443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant