728x90 분류 전체보기720 셀레니움 - 아직 안올라온 크롬드라이브 최신 버전 설치하기 https://googlechromelabs.github.io/chrome-for-testing/ Chrome for Testing availability This page lists the latest available cross-platform Chrome for Testing versions and assets per Chrome release channel. Consult our JSON API endpoints if you’re looking to build automated scripts based on Chrome for Testing release data. Last updated @ 20 googlechromelabs.github.io 2023. 7. 28. 셀레니움 - html 서식도 포함해서 텍스트 복사하기(klembord) example.py import time import klembord from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains options = Options() options.add_argument("--headless") options.add_argument("--disable-gpu") options.add_argument("--no-sandbox") options.add_argument("--disable.. 2023. 7. 23. 셀레니움 - 크롬 다운그레이드 만약 크롬드라이브가 현재 컴퓨터에 설치된 최신 버전(chrome://version에서 확인 가능)을 지원하지 않는 경우 기존 크롬을 삭제해서 낮은 버전으로 설치하는 다운그레이드가 필요함 크롬 버전별 다운로드 모음 사이트(uptodown) https://google-chrome.en.uptodown.com/windows/versions Older versions of Google Chrome (Windows) | Uptodown exe 115.0.5790.99 Jul 19, 2023 exe 114.0.5735.199 Jun 28, 2023 zip 114.0.5735.134 Jun 16, 2023 zip 114.0.5735.106 Jun 7, 2023 exe 113.0.5672.127 May 29, 2023.. 2023. 7. 22. 파이썬 - 로딩바(Progress Bar) 구현 모듈(tqdm) 모듈 설치 pip install tqdm 사용 예시 from time import sleep from tqdm import tqdm for i in tqdm(range(10)): sleep(1) 출처: https://stackoverflow.com/questions/3160699/python-progress-bar Python Progress Bar How do I use a progress bar when my script is doing some task that is likely to take time? For example, a function which takes some time to complete and returns True when done. How can I display a stac.. 2023. 7. 17. 리눅스 - 필드를 구분하여 문자 추출하기(awk) 예시 필드 추출. abc def ghi라는 문자가 있을 경우에 필드1(abc)만 추출하고 싶은 경우 echo abc def ghi | awk '{print $1}' abc 두 개 이상의 필드 추출. 필드1(abc), 필드2(def)를 추출하고 싶은 경우 echo abc def ghi | awk '{print $1, $2}' abc def 임의의 문자열 추가. 필드1(abc), 필드2(def) 필드3(ghi)을 추출하고 사이를 "-"를 삽입하기 echo abc def ghi | awk '{print $1 "-" $2 "-" $3}' abc-def-ghi 특정 문자를 기준으로 필드를 구분하기. 콜론(:)을 기준으로 필드를 구분하고 싶은 경우 echo abc:def:ghi | awk -F ':' '{ prin.. 2023. 7. 16. 파이썬 - PyAutoGUI가 안될 경우 대체 가능한 라이브러리(PyDirectInput) 기본 PyAutoGUI는 가상 키(VK)와 mouse_event() 및 keybd_event() win32 함수를 사용하고 있는데 이는 일부 응용 프로그램들, 비디오 게임이나 DirectX에 지원하지 않아 제대로 작동하지 않을 수 있다. 그래서 PyDirectInput 라이브러리는 DirectInput 스캔 코드와 SendInput() win32 같은 최신 방식을 사용해 이 문제를 해결할 수 있다. PyPi - PyDirectInput https://pypi.org/project/PyDirectInput/ PyDirectInput Python mouse and keyboard input automation for Windows using Direct Input. pypi.org 코드 예제 >>> impo.. 2023. 7. 15. 웹 보안 - OSINT 도구 모음 프레임워크(OSINT Framework) https://osintframework.com/ OSINT Framework (T) - Indicates a link to a tool that must be installed and run locally (D) - Google Dork, for more information: Google Hacking (R) - Requires registration (M) - Indicates a URL that contains the search term and the URL itself must be edited manually I ori osintframework.com 무료 도구나 리소스에서 정보를 수집하는 데 중점을 둔 OSINT 프레임워크입니다. 사람들이 무료 OSINT 리소스를 찾을 수 있도록 돕는 것.. 2023. 7. 13. 칼리 리눅스 - 웹 페이지 크롤러, 미러링 도구 (HTTrack) HTTrack은 서비스 중인 웹 페이지(HTTP URL)를 접속하여 html, css, js와 이미지 같은 웹 자원들을 로컬로 가져오는 웹 크롤러이다. 가져온 웹 자원을 토대로 똑같은 사이트를 만드는 미러링 기능을 가지고 있다. 설치 명령어 sudo apt install httrack httrack -h root@kali:~# httrack -h HTTrack version 3.49-4 usage: httrack [-option] [+] [-] [+] [-] with options listed below: (* is the default value) General options: O path for mirror/logfiles+cache (-O path_mirror[,path_cache_and_logfi.. 2023. 7. 13. 웹 보안 - OSINT 웹사이트 정보 수집 도구(urlscan.io) https://urlscan.io/ URL and website scanner - urlscan.io User Agent Default - Latest Google Chrome Stable on Windows 10 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) C urlscan.io urlscan.io는 (현재까지는) 무료로 웹사이트를 스캔하고 분석할 수 있는 OSINT 서비스다. 검색란에 URL 주소를 넣고 스.. 2023. 7. 13. 리버싱 - Bush hid the facts, 윈도우 XP 메모장 버그 문제 확인 1. 메모장을 새로 만들어서 안에 "Bush hid the facts"를 입력한다. "부시 대통령은 진실을 숨기고 있다"라는 뜻의 심오한(?) 내용이다. 2. 메모장을 저장한 후에 다시 파일의 내용을 들여다본다. 그러자 본래 내용이 없어지고 글자가 깨져서 나온다. 문제 분석 1. 혹시나 메모장에서 발생하는 오류 아닐까 하고 cmd 창에서 type 명령어로 파일의 내용을 확인해 보았다. 확인해본 결과 실제 파일의 내용은 그대로인걸 보아 메모장에서 생기는 오류인 것이다. 2. 깨진 파일을 (B.txt로) 저장하고 헥스 에디터로 분석해본다. 분석을 해보면 원본인 A.txt는 내용이 잘 저장되있는 반면 B.txt는 내용 앞에 FF FE라는 파일 헤더가 들어가게 된다. 확인해 본 결과 FF FE는 UT.. 2023. 7. 12. 칼리 리눅스 - ARP 스캐너 도구(netdiscover) netdiscover네트워크에 흐르고 있는 ARP 트래픽을 분석을 통해 호스트를 검색할 수 있는 도구이다. Active(능동적) / Passive(수동적) 모드를 지원한다. Passive 모드로 ARP Requests를 보내지 않고 몰래 스니핑이 가능하다. 명령어netdiscover -r 192.168.130.0/24-r range : 스캔 범위를 설정한다. 네트워크 대역은 0.0.0.0/8, /16, /24까지 입력 가능함(각각 A 클래스, B 클래스, C 클래스 서브넷 마스크임) 사용 방법1. ifconfig로 현재 호스트의 아이피 대역을 확인192.0.0.0~으로 시작하는 주소는 C클래스인 것을 확인한다. 2. netdiscover 명령어로 현재 아이피 대역에 있는 호스트들을 검색-r 옵션으로 검색.. 2023. 7. 11. 칼리 리눅스 - 시스템 실시간 모니터링 하기 (htop) htop은 실시간 시스템 모니터링 명령어인 top과 동일한 역할을 하지만 더 향상된 비주얼을 제공한다. 설치 sudo apt install htop -y 명령어 htop 2023. 7. 10. 이전 1 ··· 10 11 12 13 14 15 16 ··· 60 다음 728x90