Code: Select all
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('security',document.security);" "JScript"
AlertBox "" "[security]"
Moderator: Neosoft Support
Code: Select all
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('security',document.security);" "JScript"
AlertBox "" "[security]"
It is not supported but I find it interesting that it still returns a message pertaining to a security certificate.... Is there a Vbasic script that can display the security certificate of a website?Neosoft Support wrote:I'm not sure that you can do this with JavaScript.
I couldn't find any documentation for document.security. Are you sure "security" is a supported property of document?
Code: Select all
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('title',document.title);" "JScript"
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('referrer',document.referrer);" "JScript"
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('domain',document.domain);" "JScript"
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('protocol',location.protocol);" "JScript"
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('URL',document.URL);" "JScript"
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('doctype',document.doctype.name);" "JScript"
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('encoding',document.inputEncoding);" "JScript"
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('links',document.links.length);" "JScript"
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('images',document.images.length);" "JScript"
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('embeds',document.embeds.length);" "JScript"
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('scripts',document.scripts.length);" "JScript"
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('cookie',document.cookie);" "JScript"
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('lastModified',document.lastModified);" "JScript"
AlertBox "" "title: [title] [#13][#13]referrer: [referrer] [#13][#13]domain: [domain] [#13][#13]protocol: [protocol] [#13][#13]URL: [URL] [#13][#13]doctype: [doctype] [#13][#13]encoding: [encoding] [#13][#13]links: [links] [#13][#13]images: [images] [#13][#13]embeds: [embeds][#13][#13]scripts: [scripts][#13][#13]cookies: [cookie][#13][#13]Last Modified: [lastModified]"
Code: Select all
openssl s_client -connect twitter.com:443 > twitterCert
But this would require that the user has OpenSSL installed on Windows. Most users would not bother....Danito wrote:Trata con OpenSSL
Te devuelveCode: Select all
openssl s_client -connect twitter.com:443 > twitterCert
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
66:44:2f:71:e397:0b:fd:54:b9:23:94:e9:da:5f
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=US, O=VeriSign, Inc., OU=VeriSign Trust Network, OU=Terms of use at https://www.verisign.com/rpa (c)06, CN=VeriSign Class 3 Extended Validation SSL CA
Validity
Not Before: Jul 27 00:00:00 2010 GMT
Not After : Jul 27 23:59:59 2011 GMT
Subject: 1.3.6.1.4.1.311.60.2.1.3=US/1.3.6.1.4.1.311.60.2.1.2=Delaware/2.5.4.15=Private Organization/serialNumber=4337446, C=US/postalCode=94107, ST=California, L=San Francisco/streetAddress=795 Folsom St, Suite 600, O=Twitter, Inc., OU=Twitter Operations, CN=twitter.com
etc...
etc...