{"id":22050320,"url":"https://github.com/klezvirus/deser-ruby","last_synced_at":"2025-06-29T18:03:49.979Z","repository":{"id":112318169,"uuid":"245885268","full_name":"klezVirus/deser-ruby","owner":"klezVirus","description":"Ruby Deserialization Payload Generator","archived":false,"fork":false,"pushed_at":"2020-03-08T22:57:19.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T23:29:32.002Z","etag":null,"topics":["binary","command-execution","deserialization","deserialization-vulnerability","rails","rce","ruby","yaml"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/klezVirus.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":"2020-03-08T20:43:42.000Z","updated_at":"2024-08-12T19:58:31.000Z","dependencies_parsed_at":"2023-05-12T22:15:38.199Z","dependency_job_id":null,"html_url":"https://github.com/klezVirus/deser-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/klezVirus/deser-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klezVirus%2Fdeser-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klezVirus%2Fdeser-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klezVirus%2Fdeser-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klezVirus%2Fdeser-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klezVirus","download_url":"https://codeload.github.com/klezVirus/deser-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klezVirus%2Fdeser-ruby/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260826852,"owners_count":23068860,"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":["binary","command-execution","deserialization","deserialization-vulnerability","rails","rce","ruby","yaml"],"created_at":"2024-11-30T14:21:07.414Z","updated_at":"2025-06-29T18:03:49.957Z","avatar_url":"https://github.com/klezVirus.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deser-ruby\n\nDeser-ruby is a script to automatically generate serialized payloads on Ruby/Rails and other Ruby driven applications, which deserialize data from user input using `Marshal.load` or `YAML.load`.\n\nThe generated payloads use the **Universal RCE for Ruby 2.x** to gain RCE capabilities over the target application.\n\n## Usage\n\nUsing deser-ruby is very straightforward::\n\n```\n$ ruby deser-ruby.rb --help\nUsage: serializer.rb [options]\n    -s, --save=FILE                  File to store payload (default=payload)\n    -y, --yaml                       Generate YAML payload (default is False)\n    -t, --test                       Attempt payload deserialization\n    -c, --command=COMMAND            Command to execute\n    -e, --encode=ENCODE              Encode payload (base64|hex)\n    -h, --help                       Prints this help\n```\n\n**Attention:** Using `-t`, the serialized payload will be executed on your system!\n\n#### References\n\n* [Universal RCE for Ruby 2.x](https://www.elttam.com/blog/ruby-deserialization/)\n* [Universal RCE for Ruby2.x - YAML](https://staaldraad.github.io/post/2019-03-02-universal-rce-ruby-yaml-load/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklezvirus%2Fdeser-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklezvirus%2Fdeser-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklezvirus%2Fdeser-ruby/lists"}