Skip to content

Instantly share code, notes, and snippets.

View kmahyyg's full-sized avatar
👋
ISeekU

Patrick Young kmahyyg

👋
ISeekU
View GitHub Profile
${file.fileName} of Project: ${project.name}
Copyright (C) ${today.year} ${username}
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@kmahyyg
kmahyyg / 05.asm
Last active November 29, 2018 15:28
ASM-EXP5
; TESTED ON MASM
; REF: http://www.computing.dcu.ie/~ray/teaching/CA296/notes/8086_bios_and_dos_interrupts.html#int10h_13h
assume cs:codesg
codesg segment
mov al, 1 ;string contains attibutes
mov bh, 0 ;set to page 0
mov bl, 01001111b ;set foreground color == red, background color == white
mov cx, msg1end - offset msg1 ; calculate message size, not include attributes
@kmahyyg
kmahyyg / 04.asm
Last active November 20, 2018 13:28
ASM-EXP4
;https://www.kmahyyg.xyz/2018/ASM-exp-report2/ For more details.
mov ax,0xb800 ;screen buffer
mov es,ax
; show string "201x1xx0xxx Yxxx xx xxxxx"
; 0x07 == bell (in ascii), saved in parital addr
; 0x07 saved in odd addr, flash, char options
mov byte [es:0x00],'2'
mov byte [es:0x01],0x05
@kmahyyg
kmahyyg / dnscrypt-proxy.toml
Created November 18, 2018 06:24
dnscrypt-conf (Arch Linux, China Mainland)
##############################################
# #
# dnscrypt-proxy configuration #
# #
##############################################
## This is an example configuration file.
## You should adjust it to your needs, and save it as "dnscrypt-proxy.toml"
##
@kmahyyg
kmahyyg / ConsoleOpt.log
Created November 15, 2018 09:20
CSGO LinuxBUG
ERROR: ld.so: object '/home/kmahyyg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/kmahyyg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 8657 != 8637, skipping destruction (fork without exec?)
ERROR: ld.so: object '/home/kmahyyg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/kmahyyg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
SDL video target is 'x11'
SDL failed to create GL compatibility profile (whichProfile=0!
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisampl
@kmahyyg
kmahyyg / README-DS03.md
Created October 10, 2018 09:31
DataStru-Code-Explain

Data Structure 03 - Interpreter of Magic Language

Prerequisites

Make sure you've already known it's a case-sensetive interpreter.

If you're a Linux user, you could just ignore this notification.

Linus Torvalds: Your PC is like air-conditioning — it becomes useless when you open Windows.

@kmahyyg
kmahyyg / exp1.py
Last active September 21, 2018 08:54
YNU-Phyexp1
#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
import math
import subprocess
import os
import time
def clipcopy(text):
@kmahyyg
kmahyyg / deauth.py
Created June 22, 2018 10:15 — forked from garyconstable/deauth.py
Python Networking Wifi Deauth Attack
import argparse
from multiprocessing import Process
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
import signal
import threading
from sys import platform
@kmahyyg
kmahyyg / scrape.py
Created March 6, 2018 02:10 — forked from miguelmota/scrape.py
Python Selenium get cookie value
import time
from selenium import webdriver
driver = webdriver.Chrome('./chromedriver')
driver.get('https://ui.lkqd.com/login')
assert 'LKQD' in driver.title
time.sleep(2)
username_field = driver.find_element_by_name('username')
username_field.send_keys('myusername')
@kmahyyg
kmahyyg / autocolor.vbs
Last active February 2, 2018 14:19
酒店Excel
Private Sub Worksheet_SelectionChange(ByVal target As Range)
Application.ScreenUpdating = True
On Error Resume Next
If InStr(ActiveCell, "fq") Then
With ActiveCell.Interior
.Color = vbRed
End With
With ActiveCell.Font
.Color = vbWhite
.Bold = True