{"id":24760636,"url":"https://github.com/yutianqaq/sharpfiletimesetter","last_synced_at":"2025-07-01T03:06:05.485Z","repository":{"id":274147489,"uuid":"922051539","full_name":"yutianqaq/SharpFileTimeSetter","owner":"yutianqaq","description":"用于自定义文件的时间属性","archived":false,"fork":false,"pushed_at":"2025-01-25T07:57:38.000Z","size":51,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T03:05:50.483Z","etag":null,"topics":["csharp","pentest","pentest-tool","redteam"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yutianqaq.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":"2025-01-25T07:18:39.000Z","updated_at":"2025-05-07T08:53:20.000Z","dependencies_parsed_at":"2025-01-25T08:36:17.461Z","dependency_job_id":null,"html_url":"https://github.com/yutianqaq/SharpFileTimeSetter","commit_stats":null,"previous_names":["yutianqaq/sharpfiletimesetter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yutianqaq/SharpFileTimeSetter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutianqaq%2FSharpFileTimeSetter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutianqaq%2FSharpFileTimeSetter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutianqaq%2FSharpFileTimeSetter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutianqaq%2FSharpFileTimeSetter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yutianqaq","download_url":"https://codeload.github.com/yutianqaq/SharpFileTimeSetter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutianqaq%2FSharpFileTimeSetter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262887184,"owners_count":23379767,"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":["csharp","pentest","pentest-tool","redteam"],"created_at":"2025-01-28T18:18:37.102Z","updated_at":"2025-07-01T03:06:05.420Z","avatar_url":"https://github.com/yutianqaq.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 简介\n用于自定义文件时间属性，实现文件属性获取与自定义创建、修改、访问时间\n\n还可以与同步指定文件的时间属性\n\n# 帮助\n```powershell\nSharpFileTimeSetter.exe --help                                                                 \nUsage: SharpSharpFileTimeSetter --file \u003cpath\u003e [--get] [--creation \u003cdate\u003e] [--modification \u003cdate\u003e] [--access \u003cdate\u003e]\n       SharpFileTimeSetter --sync \u003csourceFile\u003e \u003ctargetFile\u003e\nExample:\n  SharpFileTimeSetter --file test.txt --creation \"2025-01-01 12:00:00\" --modification \"2025-01-02 14:00:00\"\n  SharpFileTimeSetter --file test.txt --get\n  SharpFileTimeSetter --sync source.txt target.txt\n\nArguments:\n  --file          Path to the target file (required).\n  --get           Get the current creation, modification, and access time of the file.\n  --creation      Creation time to set (optional, format: yyyy-MM-dd HH:mm:ss).\n  --modification  Modification time to set (optional, format: yyyy-MM-dd HH:mm:ss).\n  --access        Access time to set (optional, format: yyyy-MM-dd HH:mm:ss).\n  --sync          Synchronize time properties from source file to target file.\n  \u003csourceFile\u003e    Source file whose time will be copied.\n  \u003ctargetFile\u003e    Target file whose time will be updated.\n```\n## 例子\n\n创建测试文件\n\n```powershell\necho test \u003e test\n```\n\n获取文件时间属性\n\n```powershell\nSharpFileTimeSetter.exe --file test --get\nFile: test\nCreation Time: 2025/1/25 13:17:58\nModification Time: 2025/1/25 13:17:58\nAccess Time: 2025/1/25 13:17:58\n```\n\n修改文件属性\n\n```powershell\nSharpFileTimeSetter.exe --file test  --creation \"1999-09-09 12:00:00\" --modification \"1999-09-09 12:00:00\" --access \"1999-09-09 12:00:00\"\nCreation time set to 1999/9/9 12:00:00.\nModification time set to 1999/9/9 12:00:00.\nAccess time set to 1999/9/9 12:00:00.\nFile time properties updated successfully.\n```\n\n检查修改后的属性\n\n![image-20250125132032889](Images/img1.png)\n\n同步指定文件的时间属性\n\n```powershell\n# 创建测试文件\nPS D:\\bin\\Debug\u003e echo test2 \u003e test2\nPS D:\\bin\\Debug\u003e .\\SharpFileTimeSetter.exe --file test2 --get\nFile: test2\nCreation Time: 2025/1/25 13:22:20\nModification Time: 2025/1/25 13:22:20\nAccess Time: 2025/1/25 13:22:20\n\n# 将文件 test 的时间属性同步给 test2\nPS D:\\bin\\Debug\u003e .\\SharpFileTimeSetter.exe --sync test test2 \nSynced times from source 'test' to target 'test2'.\nPS D:\\bin\\Debug\u003e .\\SharpFileTimeSetter.exe --file test2 --get\nFile: test2\nCreation Time: 1999/9/9 12:00:00\nModification Time: 1999/9/9 12:00:00\nAccess Time: 2025/1/25 13:19:54\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutianqaq%2Fsharpfiletimesetter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyutianqaq%2Fsharpfiletimesetter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutianqaq%2Fsharpfiletimesetter/lists"}