{"id":18894118,"url":"https://github.com/trailofbits/censys-ruby","last_synced_at":"2025-04-15T00:31:55.087Z","repository":{"id":66004957,"uuid":"52060950","full_name":"trailofbits/censys-ruby","owner":"trailofbits","description":"Ruby API client for the Censys internet-wide network-scan search engine","archived":false,"fork":false,"pushed_at":"2024-09-12T16:50:40.000Z","size":23,"stargazers_count":9,"open_issues_count":6,"forks_count":3,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-03-28T12:51:14.498Z","etag":null,"topics":["network-scanning","search-engine","security-scanner"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trailofbits.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-19T04:18:44.000Z","updated_at":"2024-09-12T16:50:40.000Z","dependencies_parsed_at":"2023-06-26T01:54:05.525Z","dependency_job_id":null,"html_url":"https://github.com/trailofbits/censys-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fcensys-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fcensys-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fcensys-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fcensys-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trailofbits","download_url":"https://codeload.github.com/trailofbits/censys-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248984394,"owners_count":21193741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["network-scanning","search-engine","security-scanner"],"created_at":"2024-11-08T08:18:07.264Z","updated_at":"2025-04-15T00:31:54.729Z","avatar_url":"https://github.com/trailofbits.png","language":"Ruby","funding_links":[],"categories":["Ruby Search Automation Tools"],"sub_categories":[],"readme":"# CenSys\n\n* [Homepage](https://github.com/trailofbits/censys-ruby#readme)\n* [Issues](https://github.com/trailofbits/censys-ruby/issues)\n* [Documentation](http://rubydoc.info/gems/censys/frames)\n\n## Description\n\nRuby API client to the [CenSys] internet search engine.\n\n## Features\n\n## Examples\n\nInitialize the API:\n\n    require 'censys'\n    api = CenSys::API.new(uid,secret)\n\nInitialize the API using `$CENSYS_ID` and `$CENSYS_SECRET` environment\nvariables:\n\n    api = CenSys::API.new\n\nSearch for IPv4 addresses:\n\n    response = api.ipv4.search(query: 'dropbox.com')\n\nSearch for Websites:\n\n    response = api.websites.search(query: 'dropbox.com')\n\nSearch for Certificates:\n\n    response = api.certificates.search(query: 'dropbox.com')\n\nEnumerate through search results:\n\n    response.each_page do |page|\n      puts \"\u003e\u003e\u003e Page ##{page.metadata.page} / #{page.metadata.pages} ...\"\n\n      page.each do |result|\n        puts result\n      end\n    end\n\nGenerate aggregate reports:\n\n    response = api.websites.report(\n      query: '80.http.get.headers.server: Apache',\n      field: 'location.country_code',\n      buckets: 100\n    )\n\n    response.each do |country,count|\n      puts \"#{country}: #{count}\"\n    end\n\n## Requirements\n\n* [ruby] \u003e= 2.0\n\n## Install\n\n    $ gem install censys\n\n## Copyright\n\nCopyright (c) 2016 Hal Brodigan\n\nSee {file:LICENSE.txt} for details.\n\n[ruby]: http://www.ruby-lang.org/\n[CenSys]: https://censys.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailofbits%2Fcensys-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrailofbits%2Fcensys-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailofbits%2Fcensys-ruby/lists"}