Skip to content

Instantly share code, notes, and snippets.

View level120's full-sized avatar

Gusam Park level120

  • Republic of Korea
  • 16:51 (UTC +09:00)
View GitHub Profile
@level120
level120 / custom.h
Last active February 8, 2019 07:10
커맨드창 디자인용 헤더(C/C++), 교내/학원 과제용
#include <Windows.h>
#define LEFT 75 // 왼쪽 키(좌)
#define RIGHT 77 // 오른쪽 키(우)
#define UP 72 // 위쪽 키(상)
#define DOWN 80 // 아래쪽 키(하)
#define SPACEBAR 32 // 스페이스 바
#define ESC 27 // ESC
#define PGUP 73 // PageUP
#define PGDN 81 // pageDown
@level120
level120 / checkxss.md
Created January 19, 2019 17:09
XSS를 사용하는 SSO 시스템에서 User의 Token을 훔치는 코드(포트나이트 취약점 참조, https://research.checkpoint.com/hacking-fortnite/)

url + script 코드

http://some_page/"+onmouseover="alert(%27xss%27)

sso는 token 발급 후 redirect 하는 경우가 많음. 이점을 주목(TU_SSO 참고).

@level120
level120 / crawling.py
Last active February 8, 2019 07:00
python3 웹 크롤링 결과를 json 저장, selenium + webdriver(크롬-headless, 파폭-headless) 사용 -> excel 저장
from selenium import webdriver
def crawling(url, browser, wl, fn):
print("set url : " + url + ", browser : " + browser)
if browser is "Chrome":
options = webdriver.ChromeOptions()
options.add_argument('headless')
options.add_argument('window-size=1920x1080')
options.add_argument("disable-gpu")
@level120
level120 / mpeg-dash-ffmpeg-dashjs.md
Created August 1, 2018 06:36 — forked from kevinGodell/mpeg-dash-ffmpeg-dashjs.md
Use ffmpeg to connect to an ip cctv camera and create video files on the fly that can be viewed in an mpeg-dash compatible browser using dash.js and an html5 video element.

Live streaming mpeg-dash video using ffmpeg and dash.js

Use ffmpeg to connect to an ip cctv camera and create video files on the fly that can be viewed in an mpeg-dash compatible browser using dash.js and an html5 video element.

Prerequisites

A linux server, such as Ubuntu

Apache web server installed, running, and reachable via its ip address
@level120
level120 / Github Webhook Tutorial.md
Created July 27, 2018 08:48 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@level120
level120 / Install NVIDIA Driver and CUDA.md
Created July 21, 2018 13:06 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS