{"id":13827150,"url":"https://github.com/mveytsman/dilettante","last_synced_at":"2025-09-07T02:40:33.629Z","repository":{"id":19014705,"uuid":"22237663","full_name":"mveytsman/dilettante","owner":"mveytsman","description":"Maven central doesn't do SSL when serving you JARs. Dilettante is a MiTM proxy for exploiting that.","archived":false,"fork":false,"pushed_at":"2025-02-06T17:08:37.000Z","size":87392,"stargazers_count":160,"open_issues_count":1,"forks_count":11,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-29T05:11:14.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/mveytsman.png","metadata":{"files":{"readme":"README.markdown","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":"2014-07-25T00:12:43.000Z","updated_at":"2025-02-03T11:42:09.000Z","dependencies_parsed_at":"2025-03-29T05:10:32.626Z","dependency_job_id":"b10807ef-56af-4ed4-8747-e28dbaefedd3","html_url":"https://github.com/mveytsman/dilettante","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mveytsman%2Fdilettante","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mveytsman%2Fdilettante/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mveytsman%2Fdilettante/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mveytsman%2Fdilettante/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mveytsman","download_url":"https://codeload.github.com/mveytsman/dilettante/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294541,"owners_count":20915340,"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-08-04T09:01:51.166Z","updated_at":"2025-04-05T06:10:04.729Z","avatar_url":"https://github.com/mveytsman.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"42f9e068b6511bcbb47d6b2b273097da\"\u003e\u003c/a\u003e未分类"],"sub_categories":["\u003ca id=\"3bd67ee9f322e2c85854991c85ed6da0\"\u003e\u003c/a\u003e投毒\u0026\u0026Poisoning"],"readme":"# Dilettante \n\nMore information on my blog [here](http://blog.ontoillogical.com/blog/2014/07/28/how-to-take-over-any-java-developer/)\n\nIt turns out that [Maven Central](http://search.maven.org/) only lets you use SSL if you purchase an authentication token for a [donation](http://www.sonatype.com/clm/secure-access-to-central) of $10. They claim this $10 will go to the Apache project, but that's besides the point.\n\nSSL encryption requires a separate authentication token. To see what I mean, try opening  [http://central.maven.org/maven2/org/springframework/](http://central.maven.org/maven2/org/springframework/) and [https://central.maven.org/maven2/org/springframework/](https://central.maven.org/maven2/org/springframework/) in your browser. This means that package managers like Clojure's lein, Scala's sbt, and maven itself when not specially configured will download JARs without any SSL. \n\nDilettante is a man in the middle proxy that injects malicious codes into JARs served by Maven Central.\n\n## Usage\n\n\n1. Get in a position where you can man-in-the-middle HTTP traffic. Some hints:\n   - Buy a wifi router, call it \"Starbucks Wifi\"\n   - Install [ettercap](https://ettercap.github.io/ettercap/)\n   - Happen to be an ISP\n   - Something something \n\n2. Run `dilettante.py`\n3. Proxy your target's http traffic through `localhost:8080`\n   - You can do an easy PoC of this by setting the `\u003cproxy\u003e` setting in `~/.m2/settings.xml`\n\n## Results\nYour victims will get a friendly image when they execute any Java code that uses a JAR that passed through dilettante.\n![screenshot](media/screen.png)\n\nYou can see a video [here](media/screencast.mp4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmveytsman%2Fdilettante","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmveytsman%2Fdilettante","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmveytsman%2Fdilettante/lists"}