{"id":13692318,"url":"https://github.com/yukselberkay/asnap","last_synced_at":"2026-01-12T03:11:22.608Z","repository":{"id":57546805,"uuid":"297466697","full_name":"yukselberkay/asnap","owner":"yukselberkay","description":"asnap aims to render recon phase easier by providing updated data about which companies owns which ipv4 or ipv6 addresses and allows the user to automate initial port and service scanning.","archived":false,"fork":false,"pushed_at":"2021-01-06T17:00:34.000Z","size":25,"stargazers_count":26,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-02T19:42:37.749Z","etag":null,"topics":["asn","automation","information-gathering","nmap","recon"],"latest_commit_sha":null,"homepage":"","language":"Go","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/yukselberkay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-21T21:36:14.000Z","updated_at":"2024-10-17T09:46:52.000Z","dependencies_parsed_at":"2022-09-05T12:31:12.156Z","dependency_job_id":null,"html_url":"https://github.com/yukselberkay/asnap","commit_stats":null,"previous_names":["paradoxxer/asnap"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yukselberkay/asnap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukselberkay%2Fasnap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukselberkay%2Fasnap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukselberkay%2Fasnap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukselberkay%2Fasnap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yukselberkay","download_url":"https://codeload.github.com/yukselberkay/asnap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukselberkay%2Fasnap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28333052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["asn","automation","information-gathering","nmap","recon"],"created_at":"2024-08-02T17:00:56.409Z","updated_at":"2026-01-12T03:11:22.593Z","avatar_url":"https://github.com/yukselberkay.png","language":"Go","funding_links":[],"categories":["Lookup and Conversion Tools"],"sub_categories":[],"readme":"# Asnap\n\n## Description\nAsnap aims to render recon phase easier by providing regularly updated data about which companies owns which ipv4 or ipv6 addresses and allows the user to automate initial port and service scanning.\n```\n        █████╗ ███████╗███╗   ██╗ █████╗ ██████╗ \n\t██╔══██╗██╔════╝████╗  ██║██╔══██╗██╔══██╗\n\t███████║███████╗██╔██╗ ██║███████║██████╔╝\n\t██╔══██║╚════██║██║╚██╗██║██╔══██║██╔═══╝ \n\t██║  ██║███████║██║ ╚████║██║  ██║██║     \n\t╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝╚═╝  ╚═╝╚═╝     \t\t\t\t\t\t\t\t\t\n\tAuthor : Mehmet Berkay Yuksel | twitter -\u003e @paradoxxer\n```\n\n\n[![asciicast](https://asciinema.org/a/361001.svg)](https://asciinema.org/a/361001)\n\n\n## Installation \n### Precompiled Binary\n\nIf you have Go installed and configured in your $PATH enviroment variable, simply run:\n```\ngo get -u github.com/yukselberkay/asnap\n```\nIf you want to use precompiled binary, you also need to download \"move.sh\" and \"nmap.sh\" files and place them in the same directory with asnap.\n\nTo download the database that asnap searches from, you need to provide a key. To get your free key, sign up here -\u003e https://www.maxmind.com/en/geolite2/signup\nafter signing up navigate -\u003e services -\u003e My license key and create new key. Then create \"asnap_conf.txt\" inside the same directory with asnap, and paste your key to first line of \"asnap_conf.txt\":\n\n```\necho 'insert key' \u003e asnap_conf.txt \n```\n\nTo be able to use port scanning functionality, you need to install nmap to your machine:\n```\n* Debian Based Distros:\n    sudo apt install nmap\n* MacOS\n    brew install nmap \n* Arch Based Distros\n    sudo pacman -S nmap\n```\n\n### Build Yourself (Recommended)\n\nDownload the source code:\n```\ngit clone git@github.com:yukselberkay/asnap.git\n```\n\nInstall golang here -\u003e https://golang.org/doc/install\nor you can install go if it is available in your package manager:\n```\nsudo apt install golang\n```\nAfter downloading the source code, navigate through the project directory and run:\n```\ngo build\n```\n\nThis will produce asnap binary. After you build it, create asnap_conf.txt inside the same directory with the asnap, insert your key to first line and you are good to go.\n\n```\necho 'insert key' \u003e asnap_conf.txt \n```\n\nUsage and Examples\n\n```\nUsage of ./asnap:\n-download               Download database for the first usage.\n-update                 Update downloaded database. (Geolite databases updates once a week.).\n-search                 Specify search.\n-ipv4                   Specify ipv4 database to search.\n-ipv6                   Specify ipv6 database to search.\n-company                Search by company name.\n-asn                    Search by as number.\n-outfile                Specifies a name for the output text. By default, output file is named: MM-DD-YYYY_out.txt\n-infile                 Use specified .txt file as input. Asnap will iterate every line, and treats them as company names and searches specified database with given inputs.\n-nmap                   Passes found ip addresses to nmap.\n\nExamples:\n\"$asnap -download\" -\u003e Downloads database with given key, for the first time.\n\"$asnap -update\" -\u003e Updates database.\n\"$asnap -search -ipv4 -company=\"example\" \" -\u003e Search ipv4 database by company name \"example\"\n\"$asnap -search -ipv6 -asn 13337\" -\u003e Search ipv6 database by as number \"13337\"\n\"$asnap -search -ipv4 -company=\"github\" -outfile /path/to/output/file\" -\u003e Search ipv4 database by company name \"test\" and save output to specified path.\n\"$asnap -search -ipv4 -infile /path/to/input/file.txt -nmap\" -\u003e Give a list of company names as input, search it inside ipv4 database and pass found ip addresses to nmap for port scanning.\n```\n\n### Use Cases:\nWhile you can use asnap manually, you can automate this whole process with cron jobs(see -\u003e https://en.wikipedia.org/wiki/Cron). For example after you supplied an input file with -infile argument, All you have to do is check the output file and regularly modify input file to your needs. By default output file named: \"MM-DD-YYYY_out.txt\".\n\n\n\n### Follow Me:\nIf you have a question or a feature that you want me to add feel free to contact me.\ntwitter -\u003e https://twitter.com/paradoxxer\nlinkedin -\u003e https://www.linkedin.com/in/mehmet-berkay-y%C3%BCksel-ab78aa153/ \nWeb Site -\u003e https://yukselberkay.me \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukselberkay%2Fasnap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyukselberkay%2Fasnap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukselberkay%2Fasnap/lists"}