{"id":18755352,"url":"https://github.com/rip1s/pwnsandboxforctf","last_synced_at":"2025-04-13T01:35:36.317Z","repository":{"id":62578377,"uuid":"88735358","full_name":"rip1s/PwnSandboxForCTF","owner":"rip1s","description":"Yet another sandbox for CTF challenge in AWD mode","archived":false,"fork":false,"pushed_at":"2019-01-08T13:02:45.000Z","size":1853,"stargazers_count":96,"open_issues_count":0,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T10:16:24.118Z","etag":null,"topics":["awd","ctf","ctf-pwn","ctf-tools","pwn","sandbox"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rip1s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-19T11:07:11.000Z","updated_at":"2025-04-07T00:58:24.000Z","dependencies_parsed_at":"2022-11-03T21:01:28.193Z","dependency_job_id":null,"html_url":"https://github.com/rip1s/PwnSandboxForCTF","commit_stats":null,"previous_names":["rip1s/pwnsandboxforctf","unamer/pwnsandboxforctf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rip1s%2FPwnSandboxForCTF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rip1s%2FPwnSandboxForCTF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rip1s%2FPwnSandboxForCTF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rip1s%2FPwnSandboxForCTF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rip1s","download_url":"https://codeload.github.com/rip1s/PwnSandboxForCTF/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654030,"owners_count":21140236,"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":["awd","ctf","ctf-pwn","ctf-tools","pwn","sandbox"],"created_at":"2024-11-07T17:32:33.765Z","updated_at":"2025-04-13T01:35:35.459Z","avatar_url":"https://github.com/rip1s.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PwnSandboxForCTF\nYet another sandbox for CTF challenge in AWD mode\n\nThis is a ptrace sandbox. ~~(It was a chroot sandbox)~~\n\nIt will send SIG_KILL under certain circumstances:\n\n* Child process attempting to open files with 'flag' in its name by open/openat/name_to_handle_at. (/tmp/asdflagasd etc.)\n* Child process attempting to create a symlink or hardlink for file with 'flag' in its name by symlink/symlinkat/link.\n* Child process attempting to call illegal syscall. (execve/execveat/stub_execveat)\n\nELF64 and ELF32 supported, including PIE\n\n## Installation\n```bash\npip install pwnsandbox\n```\nor\n```bash\npython setup.py install\n```\nIt will install a console script 'pwn_sandbox'.\n## Usage\n\n```bash\nusage: pwn_sandbox [-h] input_bin\n\nYet another pwn sandbox for CTF by @unamer(https://github.com/unamer)\n\npositional arguments:\n  input_bin   /path/to/your/input binary\n\noptional arguments:\n  -h, --help  show this help message and exit\n```\nThere will be a binary output named binary_sandbox in your binary's folder\n\n## Requirement\n\n* python 2.7\n* pwntools\n* ~~lief~~ Already included in project cause newest lief [sucks](https://github.com/lief-project/LIEF/issues/143).\n\n## Known issues\n\n* ~~Centos **NOT supported**~~\n* Might crash on ELF contains multi loadable segments. (I haven't seen this type of ELF yet)\n* Sandbox might be bypassable, but it isn't designed as an impenetrable shield anyway. (issues are welcome.)\n* DO NOT use newest lief or you will be fucked when processing non-pie ELF32 file.\n\n## TODO\n\n* ~~Find a clean method to jump back to oep~~\n* ~~New method to support centos~~\n\n## Changelog\n\n### [0.3] - 2019-01-08\n#### Added\n- Various bug fix.\n- Add more syscall in filter scope.\n\n### [0.2] - 2019-01-07\n#### Added\n- Update project description.\n- Revert lief version.\n\n### [0.1] - 2019-01-05\n#### Added\n- Reconstruct project.\n- Initial ptrace sandbox.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frip1s%2Fpwnsandboxforctf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frip1s%2Fpwnsandboxforctf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frip1s%2Fpwnsandboxforctf/lists"}