{"id":24761188,"url":"https://github.com/myseq/utils","last_synced_at":"2026-05-14T20:32:08.591Z","repository":{"id":159394111,"uuid":"436937958","full_name":"myseq/utils","owner":"myseq","description":"MySeq utils","archived":false,"fork":false,"pushed_at":"2025-05-28T10:03:14.000Z","size":62720,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T16:39:31.574Z","etag":null,"topics":["python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/myseq.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-10T10:25:56.000Z","updated_at":"2025-05-28T10:03:17.000Z","dependencies_parsed_at":"2024-11-28T05:18:52.035Z","dependency_job_id":"5f62fb3b-b47b-4c98-a4ff-ab3c12ad8df0","html_url":"https://github.com/myseq/utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/myseq/utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myseq%2Futils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myseq%2Futils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myseq%2Futils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myseq%2Futils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myseq","download_url":"https://codeload.github.com/myseq/utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myseq%2Futils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33042135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["python3"],"created_at":"2025-01-28T18:30:14.703Z","updated_at":"2026-05-14T20:32:08.575Z","avatar_url":"https://github.com/myseq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utilities\n\nHere are some of the utilities that I wrote for fun and testing. \n\n## Utils List\n\n| Script | Functions |\n| :----- | :-------- |\n| mouse_jiggler.py | A mouse jiggler for prevents it from falling asleep by moving the mouse to simulate human input. |\n| isc_dshield.py | To show the ISC Infocon and search for MS patches information. |\n| fp_https.py | Fingerprint HTTPS certificate |\n| rha_cve_check.py | Retrieve CVE details directly via RedHat Security Data API.[^1] |\n| rha_cve_check.zip | (Windows executable) Same as `rha_cve_check.py`. |\n| find_closest_ansi.py | Find the closest ANSI code based on HEX value. |\n| falcon-sca.py | A static code analysis script to undestand any Python script flow. |\n\n[^1]: [Security Data](https://access.redhat.com/security/data/) by Red Hat Product Security.\n\nSome old utils that used to be working:\n\n| Archives | Functions |\n| :------- | :-------- |\n| 202207_rh_access.py | Search any CVE released by Red Hat. |\n\n### rh_cve_check.py\n\nSee `README_RHA_Security_Data.md` for more details.\n\n```console\n\n%  python rha_cve_check.py -h\n\nusage: rha_cve_check.py [-h] [-v] \u003ccve\u003e [\u003ccve\u003e ...]\n\n   Zzzzz   |\\      _,,,---,,_\n           /,`.-'`'    -.  ;-;;,_   __author__ : [ zd ]\n          |,4-  ) )-,_..;\\ (  `'-'  __year__   : [ 2024.09 ]\n         '---''(_/--'  `-'\\_)       __file__   : [ ./rha_cve_check.py ]\n\n         Retrieve CVE details directly via RedHat Security Data API.\n\n         [ base_url = 'https://access.redhat.com/hydra/rest/securitydata' ]\n\npositional arguments:\n  \u003ccve\u003e       Specify a CVE or a list of CVEs.\n\noptions:\n  -h, --help  show this help message and exit\n  -v          verbose output\n\n    RedHat Security Data API:\n\n        See https://docs.redhat.com/en/documentation/red_hat_security_data_api/1.0/html-single/red_hat_security_data_api/index\n\n```\n\n### fp_https.py\n\n```bash\n$ python fp_https.py edellroot.badssl.com\n\n  [*] Fingerprint-check on https://edellroot.badssl.com:443/ ... 🔍\n\nCertificate\n===========\nIssued_To: cn=edellroot.badssl.com [ o=BadSSL ]\nIssued_By: cn=eDellRoot [ o= ]\n   Validity: '2018-05-16 01:58:38 '/'2020-05-15 01:58:38 ' [ Invalid ⚠  ]\n\nFingerprint: '7e:87:3e:42:88:83:d0:71:34:3e:4c:ac:5a:20:4b:ee:ce:54:89:e0' 👍 [SHA1]\n\n ⏲  main(): completed within [1.1171 sec].\n\n\n$ python fp_https.py dsdtestprovider.badssl.com\n\n  [*] Fingerprint-check on https://dsdtestprovider.badssl.com:443/ ... 🔍\n\nCertificate\n===========\nIssued_To: cn=dsdtestprovider.badssl.com [ o=BadSSL ]\nIssued_By: cn=DSDTestProvider [ o=DSDTestProvider ]\n   Validity: '2018-05-16 17:15:23 '/'2020-05-15 17:15:23 ' [ Invalid ⚠  ]\n\nFingerprint: '3d:2c:76:aa:bb:a3:87:93:91:fd:df:5f:b8:cc:96:0c:7e:d7:35:74' 👍 [SHA1]\n\n ⏲  main(): completed within [0.7591 sec].\n\n\n$ python fp_https.py www.yahoo.com -v\n\n  [*] Fingerprint-check on https://www.yahoo.com:443/ ... 🔍\n\nCertificate\n===========\nSerial_No: 3589040345472523812351725689239958504\nIssued_To: cn=*.fantasysports.yahoo.com [ o=Yahoo Holdings Inc. ]\nIssued_By: cn=DigiCert SHA2 High Assurance Server CA [ o=DigiCert Inc ]\n   Validity: '2024-05-30 00:00:00 '/'2024-07-17 23:59:59 ' [ Valid 👍  ]\n\nPublic Key : 256 bits\nAlgo Used  : sha256WithRSAEncryption\nFingerprint: 'f3:6a:4e:6c:29:1f:f3:08:47:c0:5f:a2:7f:d3:d5:c0:01:b5:b7:3f' 👍 [SHA1]\nFingerprint: '91:82:a3:bb:51:87:85:d4:25:1c:f0:ac:f8:32:32:c1:c3:5c:c0:95:9f:06:01:38:d2:b4:7d:98:b0:80:04:ef' 👍 [SHA256]\n\nAlt Name : 'DNS:*.fantasysports.yahoo.com, DNS:ymail.com, DNS:s.yimg.com, DNS:*.yahoo.com, DNS:*.calendar.yahoo.com, DNS:*.groups.yahoo.com,\nDNS:*.mail.yahoo.com, DNS:*.msg.yahoo.com, DNS:*.ymail.com, DNS:*.finance.yahoo.com, DNS:*.news.yahoo.com, DNS:de.nachrichten.yahoo.com,\nDNS:*.video.yahoo.com, DNS:*.m.yahoo.com, DNS:*.my.yahoo.com, DNS:*.search.yahoo.com, DNS:*.secure.yahoo.com, DNS:*.yahooapis.com, DNS:*.mg.mail.yahoo.com,\nDNS:*.api.fantasysports.yahoo.com, DNS:*.autos.yahoo.com, DNS:*.cricket.yahoo.com, DNS:*.football.fantasysports.yahoo.com, DNS:*.games.yahoo.com,\nDNS:*.lifestyle.yahoo.com, DNS:*.movies.yahoo.com, DNS:*.mujer.yahoo.com, DNS:*.music.yahoo.com, DNS:*.safely.yahoo.com, DNS:*.screen.yahoo.com,\nDNS:*.shine.yahoo.com, DNS:*.sports.yahoo.com, DNS:*.travel.yahoo.com, DNS:*.tv.yahoo.com, DNS:*.weather.yahoo.com, DNS:*.notepad.yahoo.com,\nDNS:*.protrade.com, DNS:*.yql.yahoo.com, DNS:*.wc.yahoodns.net, DNS:*.help.yahoo.com, DNS:*.celebrity.yahoo.com, DNS:*.ybp.yahoo.com, DNS:*.geo.yahoo.com,\nDNS:*.messenger.yahoo.com, DNS:*.antispam.yahoo.com, DNS:*.ysm.yahoo.com, DNS:video.media.yql.yahoo.com, DNS:*.tripod.yahoo.com, DNS:*.iris.yahoo.com,\nDNS:*.mobile.yahoo.com, DNS:*.overview.mail.yahoo.com, DNS:*.mailplus.mail.yahoo.com, DNS:*.xobni.yahoo.com, DNS:onepush.query.yahoo.com,\nDNS:api-onepush.query.yahoo.com, DNS:api.digitalhomeservices.yahoo.com, DNS:commsdata.api.yahoo.com, DNS:*.commsdata.api.yahoo.com,\nDNS:gallery.tv.widgets.yahoo.com, DNS:*.commerce.yahoo.com, DNS:*.sombrero.yahoo.net, DNS:*.tw.campaign.yahoo.com, DNS:*.dispatcher.yahoo.com,\nDNS:cdn.launch3d.com, DNS:cdn.js7k.com, DNS:video-api.sapi.yahoo.com, DNS:manifest.sapi.yahoo.com, DNS:*.vto.commerce.yahoo.com,\nDNS:es-us.finanzas.yahoo.com, DNS:br.financas.yahoo.com, DNS:*.dht.yahoo.com, DNS:manifest-bf1.sapi.yahoo.com, DNS:manifest-gq1.sapi.yahoo.com,\nDNS:manifest-ir2.sapi.yahoo.com, DNS:manifest-sg3.sapi.yahoo.com, DNS:manifest-ne1.sapi.yahoo.com, DNS:admetrics.uadapp.yahoo.com,\nDNS:admetricsqa.uadapp.yahoo.com, DNS:*.gcp.mail.yahoo.com'\n\n\n ⏲  main(): completed within [1.1079 sec].\n\n```\n\n\n### find_closest_ansi.py\n\nThis script is fun.\nWe can used it to help in customizing our terminal colors.\n\nBy providing a HEX value (from HTML page), it will return a closest ANSI code.\nWith the ANSI code, we can customize the color for `PROMPT`/`PS1` at our terminal easily.\n\n\u003e *It uses `Euclidean` [^2] distance to calculate the closest RGB color code.*\n\n[^2]: Euclidean distance\n\n### falcon-sca.py\n\nThis simple script analyze the **function call relationships** and print a call tree.\nThe purpose is to show which functions call which others.\nThis script uses the `ast` (Abstract Syntax Tree) module to parse the target file statically.\n\n\n```console\n% python3 falcon-sca.py fp_https.py \n#filename = 'fp_https.py':\nmain() | main() function\n    ├── usage() | usage(): argument parser\n    └── Showing() | Showing() function: To display the output\n        ├── get_details() | get_details() function: To get details out of the certificate\n        ├── Validating() | Validating(): Check the validity of the certificate date\n        ├── Formatting() | Formatting(): Format the hash value\n        └── Formatting() | Formatting(): Format the hash value\n```\n\nPurposes:\n\n - Static code analysis to understand dependencies and flow.\n - Useful for refactoring, debugging, or documentation.\n - Gives insight into how modular or nested your codebase is.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyseq%2Futils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyseq%2Futils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyseq%2Futils/lists"}