Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
@june9713
june9713 / aes teset
Last active December 19, 2019 13:30
import base64
import hashlib
from Crypto import Random
from Crypto.Cipher import AES
BLOCK_SIZE = 16
pad = (lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS).encode())
unpad = lambda s: s[:-ord(s[len(s) - 1:])]
class AESCipher(object):
import requests
import time
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
ID = 'yout id'
PASS = 'your pass'
MemberNo = "member no found from Fiddler"
def winEnumHandler--- This code section failed: ---
1279 0 SETUP_EXCEPT 70 'to 70'
1280 2 LOAD_GLOBAL 'win32gui'
4 LOAD_ATTR 'IsWindowVisible'
6 LOAD_FAST 'hwnd'
8 CALL_FUNCTION_1 1
10 POP_JUMP_IF_FALSE 66 'to 66'
@june9713
june9713 / gist:784898001255ec97f4f488432ff4a880
Created November 14, 2018 17:06
take screenshot from background window partitially
import win32gui
import win32ui
import win32con
from PIL import Image
import time
import ctypes
import traceback
'''
you can fastly capture with printwindow by
import random
f = 0
st = {}
for i in range(10000):
st[i] = 0
for i in range(10000):
@june9713
june9713 / gist:6bc47cf38cba01793ea9d61cb5ba09e8
Created July 8, 2018 06:31
Send Naver note without Selenium
import mechanicalsoup
browser = mechanicalsoup.StatefulBrowser()
headers = {"Connection": "keep-alive",
"Cache-Control": "max-age=0",
"Origin": "https://nid.naver.com",
"Upgrade-Insecure-Requests": "1",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"Referer": "https://nid.naver.com/nidlogin.login?svctype=262144&url=http%3A%2F%2Fm.note.naver.com%2Fmobile%2FmobileSendList.nhn",
import sys
import subprocess
import threading
import os
#### test.py ########
#import sys
#print("path is " , sys.argv[1])
#print("This is test")