{"id":16493034,"url":"https://github.com/darkcodersc/execute-shellcode-pgext","last_synced_at":"2025-09-17T21:59:53.182Z","repository":{"id":110104203,"uuid":"316488426","full_name":"DarkCoderSc/execute-shellcode-pgext","owner":"DarkCoderSc","description":"Postgres Extension to Execute Shellcodes","archived":false,"fork":false,"pushed_at":"2020-11-27T11:57:27.000Z","size":3,"stargazers_count":14,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T15:50:41.474Z","etag":null,"topics":["postgresql","postgresql-extension","python","shellcode"],"latest_commit_sha":null,"homepage":"","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/DarkCoderSc.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-11-27T11:54:10.000Z","updated_at":"2024-08-12T20:07:59.000Z","dependencies_parsed_at":"2023-05-21T14:52:30.156Z","dependency_job_id":null,"html_url":"https://github.com/DarkCoderSc/execute-shellcode-pgext","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DarkCoderSc/execute-shellcode-pgext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkCoderSc%2Fexecute-shellcode-pgext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkCoderSc%2Fexecute-shellcode-pgext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkCoderSc%2Fexecute-shellcode-pgext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkCoderSc%2Fexecute-shellcode-pgext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DarkCoderSc","download_url":"https://codeload.github.com/DarkCoderSc/execute-shellcode-pgext/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkCoderSc%2Fexecute-shellcode-pgext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275673347,"owners_count":25507471,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"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":["postgresql","postgresql-extension","python","shellcode"],"created_at":"2024-10-11T14:08:10.247Z","updated_at":"2025-09-17T21:59:53.141Z","avatar_url":"https://github.com/DarkCoderSc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postgres Shellcode Execute Extension\n\nMore information: https://www.phrozen.io/resources/paper/41df297b-cfe3-43ec-88e8-0686e5548dd5\n\n## Compile Extension (Mingw 64bit / Microsoft Windows)\n\n### Postgresql 13.1 (Adapt with your version)\n\n`x86_64-w64-mingw32-gcc.exe PgShellcodeExt.c -c -o PgShellcodeExt.o -I \"C:\\Program Files\\PostgreSQL\\13\\include\" -I \"C:\\Program Files\\PostgreSQL\\13\\include\\server\" -I \"C:\\Program Files\\PostgreSQL\\13\\include\\server\\port\\win32\"`\n\n`x86_64-w64-mingw32-gcc.exe -o PgShellcodeExt.dll -s -shared PgShellcodeExt.o -Wl,--subsystem,windows`\n\n### Register and execute extension (Requires privileged postgres user)\n\n```\n-- Register new function\nCREATE OR REPLACE FUNCTION shellcode() RETURNS void AS 'PgShellcodeExt.dll', 'shellcode' LANGUAGE C STRICT;\n\n-- Trigger function\nSELECT shellcode();\n\n-- Delete function\nDROP FUNCTION IF EXISTS shellcode;\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkcodersc%2Fexecute-shellcode-pgext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkcodersc%2Fexecute-shellcode-pgext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkcodersc%2Fexecute-shellcode-pgext/lists"}