본문 바로가기 메뉴 바로가기

Zero Security

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Zero Security

검색하기 폼
  • 분류 전체보기 (75)
    • [Python] (28)
    • 악성코드 분석 (14)
      • 분석도구 (4)
    • [Hacking] (30)
      • Skill (23)
  • 방명록

[Python] (28)
[오류해결] django-admin.py : 'django-admin.py' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이름으로 인식되지 않습니다

PYTHON 오류해결 django-admin.py : 'django-admin.py' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이름으로 인식되지 않습니다 해결방안 1) 파이썬 설치경로를 PC 환경변수에 등록 C:\Users\사용자명\AppData\Local\Programs\Python\Python38 해결방안 2) Python packages에서 Django 설치여부 확인 해결방안 3) 파이썬 재설치 참고 블로그 https://sun-kakao.tistory.com/92 Python 컴파일 시도 시 발생하는 '용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는....' 해결 오류 내용) 용어가 cmdlet, 함수, 스크립트 파일 또는 실 행할 수 있는 프로그램..

[Python] 2022. 8. 25. 12:21
wiki에서 데이터를 검색해서 MySQL DB에 저장하는 코드(무한루프)

### wiki에서 데이터를 검색해서 MySQL DB에 저장하는 코드(무한루프) from urllib.request import urlopen from bs4 import BeautifulSoup import datetime import random import pymysql import re conn = pymysql.connect(host='127.0.0.1', user='root', passwd='your password', db='mysql', charset='utf8') cur = conn.cursor() cur.execute("USE scraping") random.seed(datetime.datetime.now()) def store(title, content): cur.execute( 'I..

[Python] 2021. 5. 16. 18:05
[Python] 파이썬으로 MySQL DB 연결 후 데이터 출력 - MySQL 설치부터

순서 (1) MySQL 설치 (2) Python 라이브러리 설치 (3) Python 코드 작성 및 연결 테스트 (1) MySQL 설치 아래 URL 접속 후 다운로드 및 설치(Server Only 옵션으로 설치) https://dev.mysql.com/downloads/windows/installer/ MySQL :: Download MySQL Installer Select Operating System: Select Operating System… Microsoft Windows Select OS Version: All Windows (x86, 32-bit) Windows (x86, 32-bit), MSI Installer 8.0.25 2.4M (mysql-installer-web-community-8...

[Python] 2021. 5. 16. 17:47
[Python] 파이썬으로 MySQL DB 연결 후 데이터 출력

[Python] 파이썬으로 MySQL DB 연결 후 데이터 출력하는 코드 mysql root 계정 패스워드는 본인의 패스워드로 바꿔서 실행 ### MySQL 으로 DB 연결 후 데이터 출력~!! import pymysql conn = pymysql.connect(host='127.0.0.1', user='root', passwd='your password', db='mysql') cur = conn.cursor() cur.execute("USE scraping") cur.execute("SELECT * FROM pages WHERE id=1") print(cur.fetchone()) cur.close() conn.close()

[Python] 2021. 5. 16. 17:42
[Python] 파이썬으로 csv파일 생성 후 데이터 저장하기

### test.csv 파일을 생성 후 데이터를 저장하는 코드 import csv csvFile = open('test.csv', 'w+') try: writer = csv.writer(csvFile) writer.writerow(('number', 'number plus 2', 'number plus 3')) for i in range(5): writer.writerow( (i, i+2, i+3)) finally: csvFile.close()

[Python] 2021. 5. 16. 16:19
[Python] pytesseract를 사용하여, 이미지의 text 출력

pytesseract를 사용하여, 이미지의 text 출력 code: from PIL import Image import pytesseract pytesseract.pytesseract.tesseract_cmd = 'C:/Program Files/Tesseract-OCR/tesseract.exe' print(pytesseract.image_to_string(Image.open('./test.png'))) output: I watch three climb before it’s my turn.[lit’s a tough one.|ilithe guy before me tries twice.[ll He falls tuice.[lAfter the last one, he cones down,lie’s finished ..

[Python] 2021. 5. 15. 09:28
[Python] 파이썬 pytesseract 에러 발생 시

pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PATH. See README file for more information. 파이썬 pytesseract 에러 발생 시(1) On Windows download binary from https://github.com/UB-Mannheim/tesseract/wiki. then add pytesseract.pytesseract.tesseract_cmd = 'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe' to your script. Then you should install python pack..

[Python] 2021. 5. 15. 08:57
ModuleNotFoundError: No module named 'pytesseract'

ModuleNotFoundError: No module named 'pytesseract' 에러 발생 시 아래 명령으로 해결 C:\> pip install pillow C:\> pip install pytesseract 참고 https://stackoverflow.com/questions/33401767/importerror-no-module-named-pytesseract

[Python] 2021. 5. 15. 08:30
[Python] URL 웹페이지 스크린 샷

[파이썬 소스코드] URL 웹페이지 스크린 샷 ### URL 스크린 샷 from selenium import webdriver options = webdriver.ChromeOptions() options.add_argument('headless') driver = webdriver.Chrome(options=options) driver.get('http://www.naver.com/') driver.get_screenshot_as_file('./naver_main.png')

[Python] 2021. 5. 14. 20:39
[Python] 크롬 버전에 맞는 드라이버 다운로드 및 크롬 버전확인

크롬 버전 확인하는 방법 크롬 브라우저에서 chrome://version/ 입력 후 확인 할 수 있습니다. [Python] 크롬 버전에 맞는 드라이버 다운로드 및 크롬 버전확인 https://sites.google.com/a/chromium.org/chromedriver/downloads Downloads - ChromeDriver - WebDriver for Chrome WebDriver for Chrome sites.google.com 출처: https://beomi.github.io/2017/09/28/HowToMakeWebCrawler-Headless-Chrome/ 나만의 웹 크롤러 만들기(7): 창없는 크롬으로 크롤링하기 - Beomi's Tech blog 2017-09-28 나만의 웹 크롤러 ..

[Python] 2021. 5. 14. 17:37
이전 1 2 3 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 울지않는벌새 : Security, Movie & Soc…
  • Ec0nomist's Lab. :: Ec0nomist'…
  • 바이러스 제로 시즌 2
  • 알약공식블로그
  • AhnLab ASEC | Threat & Researc…
  • 잉카인터넷 공식 블로그
  • SecurityFactory
  • 해피용's 블로그
TAG
  • 보안기술정보
  • 악성코드분석도구
  • 분석도구
  • 해킹
  • 파이썬개발환경
  • 오류해결
  • 악성코드
  • hacking
  • zerosecu
  • 바이러스
  • python3
  • malware
  • 바이러스토탈
  • 멀웨어
  • 바이러스토탈 사용법
  • 웹크롤링기초
  • virus
  • URL열기
  • 악성메일분석
  • zerosecurity
  • maware
  • 웹크롤링
  • Security
  • 보안
  • emailhacking
  • 악성코드분석
  • 브라우저실행
  • python
  • 파이썬웹크롤러
  • 파이썬
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바