safe-browsing

Google Safe Browsing API v4 - Empty response

筅森魡賤 提交于 2020-07-22 06:27:44
问题 Despite that I check a malicious URL (http://fileserver03.com), empty response returns from Google Safe Browsing API v4 . Here is the code I have tried: String postURL = https://safebrowsing.googleapis.com/v4/threatMatches:find?key=API_KEY String requestBody = "{" + " \"client\": {" + " \"clientId\": \"twittersentidetector\"," + " \"clientVersion\": \"1.0\"" + " }," + " \"threatInfo\": {" + " \"threatTypes\": [\"MALWARE\", \"SOCIAL_ENGINEERING\"]," + " \"platformTypes\": [\"ANY_PLATFORM\"],"

How can I query multiple URL's with Google Safe Browsing API using Powershell?

╄→尐↘猪︶ㄣ 提交于 2020-06-17 04:21:39
问题 The script below works fine to check a single URL, but what is the simplest way to check a list of URL's in one query? Turning $URL into an array doesn't work (only the first entry is checked). $HEADERS = @{ 'Content-Type' = "application/json" } $GOOGLE_API_KEY='[API Key]' $Uri = 'https://safebrowsing.googleapis.com/v4/threatMatches:find?key='+ $GOOGLE_API_KEY $URL = 'http://www.sitetocheck.com' $BODY = @() $BODY +=[pscustomobject]@{"client" = @{"clientId" = "company"; "clientVersion" = "1.0"

How can I query multiple URL's with Google Safe Browsing API using Powershell?

流过昼夜 提交于 2020-06-17 04:19:47
问题 The script below works fine to check a single URL, but what is the simplest way to check a list of URL's in one query? Turning $URL into an array doesn't work (only the first entry is checked). $HEADERS = @{ 'Content-Type' = "application/json" } $GOOGLE_API_KEY='[API Key]' $Uri = 'https://safebrowsing.googleapis.com/v4/threatMatches:find?key='+ $GOOGLE_API_KEY $URL = 'http://www.sitetocheck.com' $BODY = @() $BODY +=[pscustomobject]@{"client" = @{"clientId" = "company"; "clientVersion" = "1.0"

How to use Google Safe Browsing (v4) with .NET

半世苍凉 提交于 2020-02-04 04:05:25
问题 I am trying to use Googles Safe Browsing Lookup API (v4, https://developers.google.com/safe-browsing/v4/lookup-api ) with a .NET application and had trouble finding example code. I installed Google's nuget package but could find no examples on their github repo at https://github.com/google/google-api-dotnet-client The best example I could find was at https://developers.google.com/api-client-library/dotnet/get_started but even that does not show me exactly what I am looking for. I just want to

Google Safe Browsing HTTP POST - 403 response

我的未来我决定 提交于 2020-01-03 02:58:13
问题 I'm working on a program that queries Google Safe Browsing for certain urls, but I'm getting an error that I don't think I should be getting. I'm sending the following request: 2 http://google.com http://facebook.com via POST to: https://sb-ssl.google.com/safebrowsing/api/lookup?client=api&apikey=[KEY]&appver=1.5.2&pver=3.1 However, I'm getting a 403 response. This is what the documentation says for HTTP POST lookup errors: The server generates the following HTTP error codes for the POST

how to check a list of URLs against google safe browsing database?

此生再无相见时 提交于 2019-12-13 04:38:58
问题 I have a list of URLs in a file (one URL per line) that I want to check their health against Google safe browsing database. I am following google's documentation on GitHub. I prefer to load the database locally as it is a huge list that will exhaust the rate limit of 10000 queries per day. I followed the instructions until this step: Once the Go environment is setup, run the following command with your API key: go get github.com/google/safebrowsing/cmd/sbserver sbserver -apikey $APIKEY After

Google SafeBrowsing API: always getting an error

你。 提交于 2019-12-12 13:47:32
问题 I use google safe browsing API. So I tested this simple code: from safebrowsinglookup import SafebrowsinglookupClient class TestMe: def testMe(self): self.key='my_Valid_Key_Here' self.client=SafebrowsinglookupClient(self.key) self.response=self.client.lookup('http://www.google.com') print(self.response) if __name__=="__main__": TM=TestMe() TM.testMe() I always get this whatever the website I test: {'website_I_tried','error'} Note that I had to change some lines in the source code after I