Skip to content

Instantly share code, notes, and snippets.

View chengzhongkai's full-sized avatar

cheng zhongkai chengzhongkai

  • IRIS
  • Tokyo
View GitHub Profile
function write_ws_xml_datavalidation(validations) {
var o = '<dataValidations>';
for(var i=0; i < validations.length; i++) {
var validation = validations[i];
o += '<dataValidation type="list" allowBlank="1" sqref="' + validation.sqref + '">';
o += '<formula1>&quot;' + validation.values + '&quot;</formula1>';
o += '</dataValidation>';
}
o += '</dataValidations>';
return o;
@chengzhongkai
chengzhongkai / timer.py
Created February 1, 2022 22:47 — forked from bradmontgomery/LICENSE.txt
A python decorator that logs execution time.
"""
A simple execution time logger implemented as a python decorator.
Available under the terms of the MIT license.
"""
import logging
import time
from functools import wraps
@chengzhongkai
chengzhongkai / export.py
Created January 14, 2022 13:13 — forked from ahmed-abdelazim/export.py
Export / import AWS dynamodb table from json file with correct data types using python
from __future__ import print_function # Python 2/3 compatibility
import json
import boto3
# AWS_ACCESS = ""
# AWS_SECRET = ""
AWS_REGION = "eu-west-3"
TABLE_NAME = "users"
client = boto3.client(

#Wireless Penetration Testing Cheat Sheet

##WIRELESS ANTENNA

  • Open the Monitor Mode
root@uceka:~# ifconfig wlan0mon down
root@uceka:~# iwconfig wlan0mon mode monitor
root@uceka:~# ifconfig wlan0mon up
@chengzhongkai
chengzhongkai / README.MD
Created December 28, 2021 07:37 — forked from jspw/README.MD
Crack-WIFI-WPA2 usinng aircrack-ng

Crack-WIFI-WPA2

Lets capture the flag (I mean Handshake):

Terminal-1:

  1. Detect your wireless network interface :

    ifconfig

    if coudn't find command then try :

@chengzhongkai
chengzhongkai / Activate Office 2019 for macOS VoL.md
Created June 18, 2019 06:29 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@chengzhongkai
chengzhongkai / baidupan
Created August 10, 2016 03:44 — forked from acgotaku/baidupan
新版百度云盘aria2c导出下载 ,目前只实现了核心功能.
// ==UserScript==
// @name 百度网盘aria2导出工具
// @author acgotaku311
// @description 一个方便吧百度网盘的Aria2rpc导出的脚本。
// @encoding utf-8
// @include http://*n.baidu.com/s/*
// @include http://*n.baidu.com/disk/home*
// @include http://*n.baidu.com/share/link*
// @include https://*n.baidu.com/s/*
// @include https://*n.baidu.com/disk/home*
@chengzhongkai
chengzhongkai / MSO15.11.2Patch
Created August 7, 2016 01:58 — forked from Leask/MSO15.11.2Patch
MSO15.11.2Patch
#!/bin/bash
echo "Patching Microsoft Office Outlook..."
sudo perl -i.bak -pe 's|\x00\x0F\xA3\xCA\x72\x02\x31\xC0|\x00\x0F\xA3\xCA\x72\x02\x90\x90|' /Applications/Microsoft\ Outlook.app/Contents/Frameworks/MicrosoftSetupUI.framework/Versions/Current/MicrosoftSetupUI
sudo codesign -f -s - /Applications/Microsoft\ Outlook.app/Contents/Frameworks/MicrosoftSetupUI.framework
echo "Patching Microsoft Office Word..."
sudo perl -i.bak -pe 's|\x00\x0F\xA3\xCA\x72\x02\x31\xC0|\x00\x0F\xA3\xCA\x72\x02\x90\x90|' /Applications/Microsoft\ Word.app/Contents/Frameworks/MicrosoftSetupUI.framework/Versions/Current/MicrosoftSetupUI
sudo codesign -f -s - /Applications/Microsoft\ Word.app/Contents/Frameworks/MicrosoftSetupUI.framework