{"id":16894115,"url":"https://github.com/firefart/dirtycow","last_synced_at":"2025-04-12T17:44:18.182Z","repository":{"id":41001837,"uuid":"74788180","full_name":"firefart/dirtycow","owner":"firefart","description":"Dirty Cow exploit - CVE-2016-5195","archived":false,"fork":false,"pushed_at":"2021-04-08T11:35:12.000Z","size":8,"stargazers_count":853,"open_issues_count":0,"forks_count":428,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-14T17:17:44.729Z","etag":null,"topics":["cve-2016-5195","dirtycow","exploit"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"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/firefart.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":"2016-11-25T21:08:01.000Z","updated_at":"2024-10-12T00:52:12.000Z","dependencies_parsed_at":"2022-07-13T18:20:56.356Z","dependency_job_id":null,"html_url":"https://github.com/firefart/dirtycow","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/firefart%2Fdirtycow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefart%2Fdirtycow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefart%2Fdirtycow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefart%2Fdirtycow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firefart","download_url":"https://codeload.github.com/firefart/dirtycow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248609342,"owners_count":21132894,"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":["cve-2016-5195","dirtycow","exploit"],"created_at":"2024-10-13T17:17:43.374Z","updated_at":"2025-04-12T17:44:18.160Z","avatar_url":"https://github.com/firefart.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dirtycow\n\nThis exploit uses the pokemon exploit of the dirtycow vulnerability as a base and automatically generates a new passwd line.\nThe user will be prompted for the new password when the binary is run.\nThe original /etc/passwd file is then backed up to /tmp/passwd.bak and overwrites the root account with the generated line.\nAfter running the exploit you should be able to login with the newly created user.\n\nTo use this exploit modify the user values according to your needs.\n\nThe default user being created is `firefart`.\n\nOriginal exploit (dirtycow's ptrace_pokedata \"pokemon\" method):\n  https://github.com/dirtycow/dirtycow.github.io/blob/master/pokemon.c\n\nCompile with:\n\n```bash\ngcc -pthread dirty.c -o dirty -lcrypt\n```\n\nThen run the newly create binary by either doing:\n```bash\n./dirty\n```\n\nor\n\n```bash\n ./dirty my-new-password\n ```\nAfterwards, you can either `su firefart` or `ssh firefart@...`\n\n**DON'T FORGET TO RESTORE YOUR /etc/passwd AFTER RUNNING THE EXPLOIT!**\n\n```bash\nmv /tmp/passwd.bak /etc/passwd\n```\n\nExploit adopted by Christian \"FireFart\" Mehlmauer\n\nhttps://firefart.at\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirefart%2Fdirtycow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirefart%2Fdirtycow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirefart%2Fdirtycow/lists"}