hRun / SA-haveibeenpwned

Splunk add-on providing a custom search command to query Troy Hunt's haveibeenpwned API (https://haveibeenpwned.com/api/v3/) for known breaches of your domains or mail addresses.
https://splunkbase.splunk.com/app/5050/
Apache License 2.0
6 stars 4 forks source link

Updated Python Proxy Connection #10

Closed skydandrear closed 1 year ago

skydandrear commented 1 year ago
150    if proxy_type == "http":
151              try:
152                        connection = http_client.HTTPSConnection('{0}'.format(proxy_url.split('//')[-1].rstrip('/')), port=proxy_port)
153                        connection.set_tunnel('haveibeenpwned.com', port=443, headers=auth_headers)
154                        connection.request('HEAD', '/api/v3', headers=headers)
155                        r = connection.getresponse()
156                        r.read()

Attached python file but in .txt haveibeenpwned.txt

hRun commented 1 year ago

i've noticed that you try to merge your changes from branch v1 into master, which would break things. v1 is reserved for the legacy version of the app, whereas main is for the current one. (no develop branch as i work alone sloppily). i'll change this PR to merge to v1 and do according changes on master.