From f49ba40cb9557ff836fab50a3569287df13c1354 Mon Sep 17 00:00:00 2001 From: Scarlet Date: Wed, 18 Dec 2024 18:20:48 +0900 Subject: [PATCH 1/6] Update test-oss-korea-2023.json --- data/test-oss-korea-2023.json | 180 +++++++++++++++++----------------- 1 file changed, 90 insertions(+), 90 deletions(-) diff --git a/data/test-oss-korea-2023.json b/data/test-oss-korea-2023.json index 7635e1b..9245d53 100644 --- a/data/test-oss-korea-2023.json +++ b/data/test-oss-korea-2023.json @@ -159,238 +159,238 @@ }, { "id": "system_get_os_version", - "description": "bring current OS version", + "description": "bringing current OS version", "tags": ["Windows system", "system information"] }, { "id": "system_get_architecture", - "description": "현재 아키텍쳐 불러오기", + "description": "bringing current architecture", "tags": ["Windows system", "system information"] }, { "id": "system_get_uuid", - "description": "현재 장치 고유번호(UUID) 불러오기", - "tags": ["Windows 시스템", "시스템 정보"] + "description": "bringing the UUID of current device", + "tags": ["Windows system", "system information"] }, { "id": "system_get_working_directory", - "description": "현재 작업 디렉토리 불러오기", - "tags": ["Windows 시스템", "시스템 정보"] + "description": "bringing current working directory", + "tags": ["Windows system", "system information"] }, { "id": "system_get_script_directory", - "description": "현재 스크립트 디렉토리 불러오기", - "tags": ["Windows 시스템", "시스템 정보"] + "description": "bringing current script directory", + "tags": ["Windows system", "system information"] }, { "id": "system_get_network_interfaces", - "description": "네트워크 인터페이스 정보 불러오기", - "tags": ["Windows 시스템", "시스템 정보"] + "description": "bringing network interface information", + "tags": ["Windows system", "system information"] }, { "id": "system_get_process_list", - "description": "활성 프로세스 목록 불러오기", - "tags": ["Windows 시스템", "시스템 정보"] + "description": "get activated ", + "tags": ["Windows system", "system information"] }, { "id": "system_get_process_list_by_name", - "description": "프로세스 이름으로 특정 활성 프로세스 찾기", - "tags": ["Windows 시스템", "시스템 정보"] + "description": "find certain active process by process name", + "tags": ["Windows system", "system information"] }, { "id": "system_register_uri", - "description": "URI를 등록하고 URI 요청 내용에 따른 명령 수행", - "tags": ["Windows 시스템", "URI(Uniform Resource Identifier) 등록"] + "description": "Register URI and carry out command as URI has requested", + "tags": ["Windows system", "Register URI(Uniform Resource Identifier)"] }, { "id": "system_pipe_ipc", - "description": "두개 이상의 프로세스 간 통신", - "tags": ["Windows 시스템", "IPC(프로세스 간 통신)"] + "description": "Interprocess communication between more than 2 processes", + "tags": ["Windows system", "IPC(Inter Process Communication)"] }, { "id": "vhid_find_window", - "description": "활성창(Window) 핸들 찾기", - "tags": ["휴먼 인터페이스", "가상 휴면 인터페이스"] + "description": "find active window handle", + "tags": ["human interface", "virtual human interface"] }, { "id": "vhid_send_click", - "description": "가상 클릭(Click) 보내기", - "tags": ["휴먼 인터페이스", "가상 휴면 인터페이스"] + "description": "send virtual click", + "tags": ["human interface", "vi"] }, { "id": "vhid_send_keys", - "description": "가상 문자키(a-zA-Z0-9) 보내기", - "tags": ["휴먼 인터페이스", "가상 휴면 인터페이스"] + "description": "Send virtual text key (a-zA-Z0-9)", + "tags": ["human interface", "virtual human interface"] }, { "id": "vhid_send_key_enter", - "description": "가상 엔터키 보내기", - "tags": ["휴먼 인터페이스", "가상 휴면 인터페이스"] + "description": "send virtual enter key", + "tags": ["human interface", "virtual human interface"] }, { "id": "vhid_send_key_functions", - "description": "가상 FN키 보내기", - "tags": ["휴먼 인터페이스", "가상 휴면 인터페이스"] + "description": "Send virtual FN key", + "tags": ["human interface", "virtual human interface"] }, { "id": "vhid_alert", - "description": "Alert() API 호출 시 메시지 출력 여부", - "tags": ["휴먼 인터페이스", "가상 휴면 인터페이스"] + "description": "Alert whether message output will be provided when API is called", + "tags": ["human interface", "virtual human interface"] }, { "id": "vhid_confirm", - "description": "Confirm() API 호출 시 메시지 출력 및 Yes/No 선택", - "tags": ["휴먼 인터페이스", "가상 휴면 인터페이스"] + "description": "Confirm() message output when API is called and choose between Yes/No", + "tags": ["human interface", "virtual human interface"] }, { "id": "vhid_prompt", - "description": "Prompt() API 호출 시 서술형 응답 받을 수 있음", - "tags": ["휴먼 인터페이스", "가상 휴면 인터페이스"] + "description": "Prompt() When calling API, can receive descriptive response", + "tags": ["human interface", "virtual human interface"] }, { "id": "network_http_get", - "description": "HTTP GET 전송", - "tags": ["네트워크", "HTTP 전송 및 처리"] + "description": "Send HTTP GET", + "tags": ["network", "Send HTTP and handle HTTP"] }, { "id": "network_http_post", - "description": "HTTP POST 전송", - "tags": ["네트워크", "HTTP 전송 및 처리"] + "description": "Send HTTP POST", + "tags": ["network", "send HTTP and handle HTTP"] }, { "id": "network_http_extended", - "description": "HTTP 확장 메소드(FETCH, PUT 등) 전송", - "tags": ["네트워크", "HTTP 전송 및 처리"] + "description": "send HTTP extension methods(FETCH, PUT, etc)", + "tags": ["network", "send HTTP and handle HTTP"] }, { "id": "network_attach_debugger", - "description": "HTTP 디버거(Fiddler 등) 설정(Attach) 지원", - "tags": ["네트워크", "HTTP 전송 및 처리"] + "description": "support attaching HTTP debugger(Fiddler, etc)", + "tags": ["network", "send HTTP and handle HTTP"] }, { "id": "network_detect_charset", - "description": "HTTP 응답 본문에서 문자셋(Charset) 탐지", - "tags": ["네트워크", "HTTP 전송 및 처리"] + "description": "detect Charset in HTTP response body", + "tags": ["network", "send HTTP and handle HTTP"] }, { "id": "network_detect_http_ssl", - "description": "접속 대상 웹사이트의 보안통신(SSL) 사용 여부 탐지", - "tags": ["네트워크", "HTTP 전송 및 처리"] + "description": "detect whether SSL is running in the website to access ", + "tags": ["network", "send HTTP and handle HTTP"] }, { "id": "network_send_icmp", - "description": "PING(ICMP) 전송", - "tags": ["네트워크", "PING(ICMP) 전송"] + "description": "send PING(ICMP)", + "tags": ["network", "send PING(ICMP)"] }, { "id": "extramath_dtm", - "description": "2개 이상의 주어진 문장으로부터 DTM (문서-용어 행렬) 생성", - "tags": ["고급 문자열 처리", "자연어 처리"] + "description": "create DTM (Document-Term Matrix) from more than 2 sentenced that are provided", + "tags": ["advanced string manipulation", "natural language processing"] }, { "id": "extramath_cosine_similarity", - "description": "주어진 두 문장의 유사도를 코사인 유사도로 비교", - "tags": ["고급 문자열 처리", "자연어 처리"] + "description": "compare the similarity of 2 given sentences with cosine similarity", + "tags": ["advanced string manipulation", "natural language processing"] }, { "id": "base64_encode", - "description": "BASE64 인코딩", - "tags": ["고급 문자열 처리", "BASE64"] + "description": "BASE64 encoding", + "tags": ["advanced string manipulation", "BASE64"] }, { "id": "base64_decode", - "description": "BASE64 디코딩", - "tags": ["고급 문자열 처리", "BASE64"] + "description": "BASE64 decoding", + "tags": ["advanced string manipulation", "BASE64"] }, { "id": "chromium_run", - "description": "웹 브라우저 실행", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "run web browser", + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_create_profile", - "description": "프로파일 생성", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "create profile", + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_run_incognito", - "description": "개인정보 보호 모드로 웹 브라우저 실행", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "run web broswer in incognito mod", + "tags": ["control web browser", "control web broswer (Chromium-based)"] }, { "id": "chromium_navigate", - "description": "URL로 주소 이동", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "move to another address through URL", + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_get_active_pages", - "description": "활성 페이지 목록 불러오기", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "bringing active page list", + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_find_page_by_id", - "description": "고유 ID로 페이지 찾기", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "finding page by ", + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_find_pages_by_title", - "description": "페이지 제목으로 페이지 찾기", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "finding pages by title of the pages", + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_move_focused", - "description": "창 포커스 이동", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "move focuse of the window", + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_adjust_window_size", - "description": "창 크기 제어", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "adjust size of the window", + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_get_element_position", - "description": "제공된 CSS Selector와 일치하는 단일 객체 포지션 찾기", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "finding single element position that matches with provided CSS Selector", + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_get_mapreduced_element_position", - "description": "CSS Selector와 일치하는 다중 객체 중 조건에 맞는 객체의 포지션 찾기", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "finding position of the element that meets requirement among multiple elements that match with CSS selector", + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_set_value_to_textbox", - "description": "대상 객체가 사용자 입력형(TextArea 또는 TextInput인 경우) 값 설정하기", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "setting the value in case the object of the action is input by users(TextArea or TextInput)", + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_send_click", - "description": "가상 클릭(Click) 보내기", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "send virtual click", + "tags": ["control web browser", "control web broswer (Chromium-based)"] }, { "id": "chromium_send_keys", - "description": "가상 키(Key) 보내기", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "send virtual key", + "tags": ["control web browser", "control web browser (chromium-based browser)"] }, { "id": "chromium_auto_scroll_until_end", - "description": "수직 스크롤이 있을 시 스크롤이 끝날 때까지 자동으로 화면 탐색하기", - "tags": ["웹 브라우저 제어", "웹 브라우저 제어 (크로미움 계열)"] + "description": "exploring the screen automatically until the scrolling finishes, in case of vertical scrolling", + "tags": ["control web browser", "control web browser (Chromium-based browser)"] }, { "id": "grpc_run_server", - "description": "gRPC 서버 실행", + "description": "run gRPC server", "tags": ["gRPC"] }, { "id": "grpc_receive_command", - "description": "gRPC로 들어온 명령을 스크립트로 받음", + "description": "receive command that is sent to grpc in script", "tags": ["gRPC"] }, { "id": "gui_check", - "description": "WebView (GUI) 환경에서도 (1)Windows 시스템/Windows 쉘(Shell), (2)Windows 시스템/WMI 제어 기능이 동작 가능.", + "description": "Even in WebView (GUI) environment, (1)Windows System/Windows Shell, (Windows system/WMI control functions work.", "tags": ["WebView"] - } + } ] } From 36da5ec3a10ef437be27b09e224ca680c2fb3358 Mon Sep 17 00:00:00 2001 From: Scarlet Date: Wed, 18 Dec 2024 19:07:17 +0900 Subject: [PATCH 2/6] Update virustotal.js --- examples/virustotal.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/examples/virustotal.js b/examples/virustotal.js index 460bbad..6b5d53b 100644 --- a/examples/virustotal.js +++ b/examples/virustotal.js @@ -24,10 +24,10 @@ function main(args) { var lines = []; var wbInstance = Chrome.startWithDebugging("https://virustotal.com", null, "virustotal", 9222); - // 대기 + // Wait sleep(5000); - // 브라우저 탭 찾기 + // finding browser tap pages = wbInstance.getPagesByTitle("VirusTotal"); if (pages.length > 0) { page = pages[0]; @@ -38,12 +38,12 @@ function main(args) { var callback1 = function(row) { var hash = row[1]; - console.log("탐색을 시도합니다:", hash); + console.log("Attempt exploring:", hash); wbInstance.navigate("https://www.virustotal.com/gui/file/" + hash); sleep(RAND.getInt(4000, 5000)); - // 자료를 찾았는지 여부 + // Indicates whether data was found var msgNotFound = wbInstance.getEvaluatedValue( "__getDocument().querySelector('vt-ui-shell').shadowRoot.querySelector('#mainContent').querySelector('slot').assignedNodes()[2]" + wbInstance.getShadowRootSelector([ @@ -53,12 +53,12 @@ function main(args) { ".shadowRoot.querySelector('.title slot').assignedNodes()[0].innerText" ); if (msgNotFound == "No matches found") { - console.log("찾을 수 없음 (No matches found): " + hash); + console.log("No matches found"): " + hash); lines.push([hash, '', '0', '0', '0', ''].join(',')); return; } - // 전체 진단 수 확인 + // Check how many times it was examined to detect and diagnose viruses var positives = wbInstance.getEvaluatedValue( "__getDocument().querySelector('vt-ui-shell').shadowRoot.querySelector('#mainContent').querySelector('slot').assignedNodes()[2]" + wbInstance.getShadowRootSelector([ @@ -69,7 +69,7 @@ function main(args) { ".shadowRoot.querySelector('div > div > div.positives').innerText" ); - // 알려진 파일 명 + // known filename var filename = wbInstance.getEvaluatedValue( "__getDocument().querySelector('vt-ui-shell').shadowRoot.querySelector('#mainContent').querySelector('slot').assignedNodes()[2]" + wbInstance.getShadowRootSelector([ @@ -79,7 +79,7 @@ function main(args) { ".shadowRoot.querySelector('div > div.card-body > div > div.hstack.gap-4 > div.vstack.gap-2.align-self-center.text-truncate > div.file-name.text-truncate > a').innerText" ); - // 최근 진단 날짜 확인 + // Check the latest date of the examination to detect and diagnose a virus var last = wbInstance.getEvaluatedValue( "__getDocument().querySelector('vt-ui-shell').shadowRoot.querySelector('#mainContent').querySelector('slot').assignedNodes()[2]" + wbInstance.getShadowRootSelector([ @@ -89,7 +89,7 @@ function main(args) { ".shadowRoot.querySelector('div > div.card-body > div > div.hstack.gap-4 > div:nth-child(5) > vt-ui-time-ago').getAttribute('data-tooltip-text')" ); - // 국내 백신 진단 여부 확인 + // Check whether a Korean vaccine programme has examined to detect and diagnose virus var score_undetected = wbInstance.getEvaluatedValue( 'Object.values(' + "__getDocument().querySelector('vt-ui-shell').shadowRoot.querySelector('#mainContent').querySelector('slot').assignedNodes()[2].querySelector('file-view').shadowRoot.querySelector('vt-ui-main-generic-report').querySelector('.tab-slot')" + @@ -100,13 +100,13 @@ function main(args) { ".querySelectorAll('.detection')).reduce(function(a, x) { if(/AhnLab|ALYac|ViRobot/.test(x.innerText) && x.innerText.indexOf('Undetected') > -1) a = a + 1; return a; }, 0)" ); - console.log("해시:", hash); - console.log("알려진 파일 이름:", filename); - console.log("전체 진단:", positives); - console.log("최근 날짜:", last); - console.log("국내 백신 미진단:", score_undetected + "건"); + console.log("hash:", hash); + console.log("known filename:", filename); + console.log("examined the whole to detect and diagnose viruses :", positives); + console.log("date of the latest activity:", last); + console.log("Hasn ' t examined with a Korean vaccine programme to detect and diagnose viruses:", score_undetected + "건"); - // 쓰기 줄 생성 + // create lines for writing lines.push([hash, filename, '1', positives, score_undetected, last].join(',')); }; From 442d081f9da87c698449389972f59dfc5882197f Mon Sep 17 00:00:00 2001 From: Scarlet Date: Wed, 18 Dec 2024 21:26:03 +0900 Subject: [PATCH 3/6] Update test-oss-korea-2023.json --- data/test-oss-korea-2023.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data/test-oss-korea-2023.json b/data/test-oss-korea-2023.json index 9245d53..bde131d 100644 --- a/data/test-oss-korea-2023.json +++ b/data/test-oss-korea-2023.json @@ -314,8 +314,8 @@ }, { "id": "chromium_run_incognito", - "description": "run web broswer in incognito mod", - "tags": ["control web browser", "control web broswer (Chromium-based)"] + "description": "run web browser in incognito mode", + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_navigate", @@ -329,7 +329,7 @@ }, { "id": "chromium_find_page_by_id", - "description": "finding page by ", + "description": "finding page by original ID", "tags": ["control web browser", "control web browser (Chromium-based)"] }, { @@ -339,7 +339,7 @@ }, { "id": "chromium_move_focused", - "description": "move focuse of the window", + "description": "move focus of the window", "tags": ["control web browser", "control web browser (Chromium-based)"] }, { @@ -370,7 +370,7 @@ { "id": "chromium_send_keys", "description": "send virtual key", - "tags": ["control web browser", "control web browser (chromium-based browser)"] + "tags": ["control web browser", "control web browser (Chromium-based browser)"] }, { "id": "chromium_auto_scroll_until_end", @@ -389,7 +389,7 @@ }, { "id": "gui_check", - "description": "Even in WebView (GUI) environment, (1)Windows System/Windows Shell, (Windows system/WMI control functions work.", + "description": "Even in WebView (GUI) environment, (1)Windows System/Windows Shell, (2)(Windows system/WMI control functions work.", "tags": ["WebView"] } ] From 7ee1e2b7451a55edd2215d2e56ed9cbfa53aec8d Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Fri, 20 Dec 2024 15:19:39 +0900 Subject: [PATCH 4/6] Update data/test-oss-korea-2023.json Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- data/test-oss-korea-2023.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/test-oss-korea-2023.json b/data/test-oss-korea-2023.json index bde131d..4c26c4e 100644 --- a/data/test-oss-korea-2023.json +++ b/data/test-oss-korea-2023.json @@ -284,7 +284,7 @@ }, { "id": "extramath_dtm", - "description": "create DTM (Document-Term Matrix) from more than 2 sentenced that are provided", + "description": "create DTM (Document-Term Matrix) from more than 2 sentences that are provided", "tags": ["advanced string manipulation", "natural language processing"] }, { From e1d2d3e9ff2e984a12a76d7a41add4edfff8a3cc Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Fri, 20 Dec 2024 15:20:04 +0900 Subject: [PATCH 5/6] Update data/test-oss-korea-2023.json Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- data/test-oss-korea-2023.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/test-oss-korea-2023.json b/data/test-oss-korea-2023.json index 4c26c4e..03350c5 100644 --- a/data/test-oss-korea-2023.json +++ b/data/test-oss-korea-2023.json @@ -215,7 +215,7 @@ { "id": "vhid_send_click", "description": "send virtual click", - "tags": ["human interface", "vi"] + "tags": ["human interface", "virtual human interface"] }, { "id": "vhid_send_keys", From 4a9f5a7fd8310ecd1be467a1d1f65f6065af1cb5 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Fri, 20 Dec 2024 15:20:37 +0900 Subject: [PATCH 6/6] Update data/test-oss-korea-2023.json Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- data/test-oss-korea-2023.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/test-oss-korea-2023.json b/data/test-oss-korea-2023.json index 03350c5..b61116b 100644 --- a/data/test-oss-korea-2023.json +++ b/data/test-oss-korea-2023.json @@ -365,7 +365,7 @@ { "id": "chromium_send_click", "description": "send virtual click", - "tags": ["control web browser", "control web broswer (Chromium-based)"] + "tags": ["control web browser", "control web browser (Chromium-based)"] }, { "id": "chromium_send_keys",