{"id":19675642,"url":"https://github.com/notnite/magia","last_synced_at":"2026-02-02T04:09:25.464Z","repository":{"id":235250144,"uuid":"790381188","full_name":"NotNite/Magia","owner":"NotNite","description":"Code modding with flair - a set of C# libraries for helping interact with native code","archived":false,"fork":false,"pushed_at":"2024-04-23T02:46:29.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T11:16:48.143Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/NotNite.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-22T19:21:29.000Z","updated_at":"2024-04-28T07:35:13.000Z","dependencies_parsed_at":"2024-04-25T11:00:31.263Z","dependency_job_id":null,"html_url":"https://github.com/NotNite/Magia","commit_stats":null,"previous_names":["notnite/magia"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotNite%2FMagia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotNite%2FMagia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotNite%2FMagia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotNite%2FMagia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotNite","download_url":"https://codeload.github.com/NotNite/Magia/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239889422,"owners_count":19713789,"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":[],"created_at":"2024-11-11T17:25:20.610Z","updated_at":"2026-02-02T04:09:20.427Z","avatar_url":"https://github.com/NotNite.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magia\n\nCode modding with flair. A set of C# libraries for helping interact with native code.\n\n## Magia.Signatures\n\nA signature scanning library, based off of [pelite's pattern format](https://docs.rs/pelite/latest/pelite/pattern/fn.parse.html).\n\nAssumes you are injected into the target process and the target process is a x64 Windows application. Some features assume compiler quirks (e.g. MSVC function padding with `0xCC`). Signatures can be assembled from their class forms, or parsed from a string. The following commands are available:\n\n- Whitespace is ignored. Comments (`#`) ignore the rest of the line.\n- Match a literal byte by typing its two-letter hex representation (e.g. `E8`).\n- Match displacements/offsets using the characters `%` (1 byte), `\u0026` (2 byte), and `$` (4 byte).\n  - A `call` instruction can be represented as `E8 $`.\n- Match 8-byte absolute pointers with the `*` character.\n- Follow displacements with the `{ }` operator.\n  - For example, `E8 $ { more stuff here }` will match a function that calls the function matched inside of the braces.\n- Execute multiple possible subpatterns with the `( )` operator.\n  - Separate subpatterns with `|`.\n- Skip a byte with `??`, or skip multiple with `[ ]`.\n  - `??` for one byte, `[number]` for multiple (e.g. `[4]`).\n  - Square brackets support ranges (e.g. `[4-8]`).\n- Skip an unknown number of bytes with `@`.\n  - This will repeat a search until it encounters a `CC`, which MSVC uses to pad functions.\n- Save to the return array with `\\`.\n  - Loads are currently unimplemented, but the `startOverride` argument can be passed to `SignatureScanner#Scan` to start the search at a specific address.\n- Match UTF-8 string literals with quotes (e.g. `\"Hello, world!\"`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotnite%2Fmagia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotnite%2Fmagia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotnite%2Fmagia/lists"}