{"id":20268984,"url":"https://github.com/patatetom/usbinfo","last_synced_at":"2026-05-15T21:40:13.337Z","repository":{"id":256781116,"uuid":"236020486","full_name":"patatetom/usbinfo","owner":"patatetom","description":"search and display of USB device connection marks left in the Windows SYSTEM registry","archived":false,"fork":false,"pushed_at":"2022-06-29T14:25:25.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T22:26:53.094Z","etag":null,"topics":["bash","registry","usb-devices"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patatetom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-01-24T14:45:40.000Z","updated_at":"2022-06-29T14:25:27.000Z","dependencies_parsed_at":"2024-09-13T02:51:47.126Z","dependency_job_id":"c0b01a77-addc-4fea-9d8e-545874b49e9f","html_url":"https://github.com/patatetom/usbinfo","commit_stats":null,"previous_names":["patatetom/usbinfo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patatetom/usbinfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patatetom%2Fusbinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patatetom%2Fusbinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patatetom%2Fusbinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patatetom%2Fusbinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patatetom","download_url":"https://codeload.github.com/patatetom/usbinfo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patatetom%2Fusbinfo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33080779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","registry","usb-devices"],"created_at":"2024-11-14T12:22:21.491Z","updated_at":"2026-05-15T21:40:13.323Z","avatar_url":"https://github.com/patatetom.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# usbinfo\n\nsearch and display of USB device connection marks left in the Windows SYSTEM registry\n\n\n### regdump\n\n\u003e from https://github.com/adoxa/regdump\n\ndownload raw [regdump.c](https://raw.githubusercontent.com/patatetom/usbinfo/master/regdump.c), check it and compile it with `gcc` :\n\n```bash\n$ gcc regdump.c -o ~/.local/bin/regdump\n```\n\ndump a SYSTEM registry :\n\n```bash\n$ # -t switch is important !\n$ regdump -t /mnt/sda2/Windows/System32/config/SYSTEM \u003e /tmp/SYSTEM.dump\n```\n\n\n### usbinfo\n\ndownload raw [usbinfo](https://raw.githubusercontent.com/patatetom/usbinfo/master/usbinfo) bash script, check it and make it executable :\n\n```bash\n$ curl https://raw.githubusercontent.com/patatetom/usbinfo/master/usbinfo \u003e ~/.local/bin/usbinfo\n$ chmod +x ~/.local/bin/usbinfo\n```\n\nedit his `ids` variable :\n\n```bash\n$ # Ctrl-O to save changes and Ctrl-X to quit nano editor\n$ nano ~/.local/bin/usbinfo\n…\n#ids=/var/lib/usbutils/usb.ids\t# on Debian, provided by package \"usb.ids\"\n#ids=/usr/share/hwdata/usb.ids\t# on Arch, provided by package \"hwids\"\n…\n```\n\nparse the dump :\n\n```bash\n$ # fields are last time, title, serial number, first time, device description and friendly name\n$ # fields are separated by one tab \\t character\n$ usbinfo /tmp/SYSTEM.dump | sort -r | grep ^2020-\n2020-01-21 16:19:47\t---- End -----\n2020-01-21 16:19:27\tVendorId 46F4 - ProductId 0001\t1-0000:00:03.0-2\t2020-01-21 16:07:12\tUSB Mass Storage Device\n2020-01-21 16:07:12\tDisk QEMU QEMU_HARDDISK\t1-0000:00:03.0-2\u00260\t2020-01-21 16:07:12\tDisk drive\tQEMU QEMU HARDDISK USB Device\n2020-01-21 16:04:55\tAdomax Technology Co., Ltd - ProductId 0001\t28754-0000:00:03.0-1\t2020-01-21 15:02:00\tUSB Input Device\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatatetom%2Fusbinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatatetom%2Fusbinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatatetom%2Fusbinfo/lists"}