This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; TinyPE.asm | |
; | |
BITS 32 | |
; IMAGE_NT_HEADERS 의 시작 위치가 4 이어야 하므로 섹션/파일 얼라인먼트를 4 로. | |
; 공교롭게도 e_lfanew = 4 로 동일하게 맞아떨어짐 | |
; | |
SectionAlignment equ 0x00000004 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file AntiRanSomware user mode engine | |
* @brief | |
* @ref | |
* @author Yonhgwhan, Roh ([email protected]) | |
* @date 2017/01/21 created. | |
* @copyright All rights reserved by Yonghwan, Roh. | |
**/ | |
#pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set prefix | |
set -g prefix ` | |
unbind C-b | |
bind ` send-prefix | |
# split pane | |
bind | split-window -h | |
bind - split-window -v | |
# move to pane |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool | |
create_process_as_login_user( | |
_In_ const wchar_t* cmdline | |
) | |
{ | |
_ASSERTE(NULL != cmdline); | |
if (NULL == cmdline) return false; | |
DWORD session_id = WTSGetActiveConsoleSessionId(); | |
DWORD explorer_pid = 0xFFFFFFFF; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from slacker import Slacker | |
from websocket import create_connection | |
slack = Slacker('xxxxxx') | |
# start RTM | |
rtm = slack.rtm.start() | |
url = rtm.body['url'] | |
ws = create_connection(url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ create `/Users/somma/Library/KeyBindings/DefaultKeyBinding.dict` file with below contents, and reboot :D | |
{ | |
/* Remap Home / End keys to be correct */ | |
"\UF729" = "moveToBeginningOfLine:"; /* Home */ | |
"\UF72B" = "moveToEndOfLine:"; /* End */ | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */ | |
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */ | |
"^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */ | |
"^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
""" | |
Idea and code was taken from stackoverflow(). | |
This sample illustrates how to | |
+ how to pass method of instance method | |
to multiprocessing(idea and code was introduced | |
at http://goo.gl/tRHN1D by torek). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
""" | |
This is sample code about how to handle synchronous function | |
as asynchronously in `tornado.web.RequestHandler` using `@tornado.gen.coroutine`. | |
Feel free to suggest idea or nicer python style code. | |
I'm a newbie to python :-) | |
by somma ([email protected]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @brief 포인터 타입에 상관없이 free() and Nil 을 수행하는 템플릿 함수 | |
void my_free(void*& ptr) | |
{ | |
... | |
} | |
char* char_ptr; | |
void* void_ptr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"schtasks.exe /create /tn {task_name} /tr {task_bin_path} /sc onlogon /rl highest /f |
NewerOlder