๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • Tried. Failed. Logged.
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.
728x90