From af18cae3ff278e2683ab71a94d80f345fc13a77d Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Sat, 5 Oct 2024 10:45:01 +0900 Subject: [PATCH] =?UTF-8?q?=E5=89=8A=E9=99=A4=E3=81=99=E3=82=8B=E3=83=87?= =?UTF-8?q?=E3=83=BC=E3=82=BF=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dislocker_client.py | 6 ++++++ dislocker_client_shutdown.py | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/dislocker_client.py b/dislocker_client.py index 0356935..5ec1ccb 100644 --- a/dislocker_client.py +++ b/dislocker_client.py @@ -42,6 +42,12 @@ if not os.path.isfile(client_config_path): "master_password_hash": "", "testing": False, "eraser": True, + "erase_data": { + "example": { + "process_name": "example.exe", + "dir_path": "C:\\Users\\example\\AppData\\Local\\example" + } + }, "pc_uuid": "", "pc_token": "", "hard_lock": False diff --git a/dislocker_client_shutdown.py b/dislocker_client_shutdown.py index 91428ac..11428e2 100644 --- a/dislocker_client_shutdown.py +++ b/dislocker_client_shutdown.py @@ -134,6 +134,14 @@ class App(tkinter.Tk): steam_del = self.delete_appdata(process_name="steam.exe", dir_path=f"{appdata_local}\\Steam") ea_del = self.delete_appdata(process_name="EADesktop.exe", dir_path=f"{appdata_local}\\Electronic Arts") riot_del = self.delete_appdata(process_name="RiotClientServices.exe", dir_path=f"{appdata_local}\\Riot Games\\Riot Client") + for i in client_config['erase_data'].keys(): + if i == 'example': + pass + else: + erase_process_name = client_config['erase_data'][i]['process_name'] + erase_dir_path = client_config['erase_data'][i]['dir_path'] + erase_del = self.delete_appdata(process_name=erase_process_name, dir_path=erase_dir_path) + else: print("削除処理をスキップ。") except: