{"id":21340753,"url":"https://github.com/artainmo/dr-quine","last_synced_at":"2025-03-16T02:42:54.514Z","repository":{"id":93052965,"uuid":"500636565","full_name":"artainmo/dr-quine","owner":"artainmo","description":"42 school project. Create quine programs in C as an introduction to the concept of virus propagation in cybersecurity.","archived":false,"fork":false,"pushed_at":"2023-03-01T01:04:07.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T15:32:22.798Z","etag":null,"topics":["42school","c","cybersecurity","virus"],"latest_commit_sha":null,"homepage":"","language":"C","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/artainmo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-07T00:33:31.000Z","updated_at":"2024-10-31T13:33:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"9af79b58-cca4-4a82-b128-c48624b8c733","html_url":"https://github.com/artainmo/dr-quine","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/artainmo%2Fdr-quine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artainmo%2Fdr-quine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artainmo%2Fdr-quine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artainmo%2Fdr-quine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artainmo","download_url":"https://codeload.github.com/artainmo/dr-quine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243817873,"owners_count":20352625,"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":["42school","c","cybersecurity","virus"],"created_at":"2024-11-22T00:52:53.935Z","updated_at":"2025-03-16T02:42:54.505Z","avatar_url":"https://github.com/artainmo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dr-quine\n42 school [subject](https://cdn.intra.42.fr/pdf/pdf/34050/en.subject.pdf).\n\nCreate quine programs in C as an introduction to the concept of virus propagation in cybersecurity. \n\n### Explanation\nA quine is a program that outputs its own content.\u003cbr\u003e\nAn empty program or program that opens and reads its file is prohibited.\n\n#### Colleen\nA quine program in c that outputs itself in the console.\u003cbr\u003e\n`%c` displays char and `%s` displays a string.\u003cbr\u003e\nIn printf 10 is ASCII code for `\\n` and 34 for `\"`.\u003cbr\u003e\nBetween `%` and `c` or `s`, `1$` refers to 10 and `2$` TO 34 and `$3` to str.\u003cbr\u003e\nBasically a string representing the program is printed which is also able to print itself by using a self referential embedded format tag.\n\n#### Grace\nOutputs its content in another file.\n\n#### Sully\nThe program creates a new file, writes its own content into that file and executes the file, leading to the creation of another file who also created another file and so on,  leading to a self-replicating program which is useful for viruses to propagate.\n\n### DOCUMENTATION\n[Self-replicating Python code | Quine](https://www.youtube.com/watch?v=a-zEbokJAgY)\u003cbr\u003e\n[what does print(s%%s) mean here?](https://stackoverflow.com/questions/28145588/what-does-printss-mean-here)\u003cbr\u003e\n[Imprimer le code source du code C sans aucune entrée | Quiné](https://www.youtube.com/watch?v=VaGl_HZBIoM\u0026t=634s)\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartainmo%2Fdr-quine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartainmo%2Fdr-quine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartainmo%2Fdr-quine/lists"}