This file contains hidden or 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
#include <stdio.h> | |
unsigned char shellcode[] = { | |
0x4f, 0xf0, 0x00, 0x00, | |
0xf0, 0x47, | |
}; | |
int main() | |
{ | |
shellcode[2] = 0x01; |
This file contains hidden or 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
dpkg-query -W | cut -f1 | xargs apt-cache rdepends --installed | python2.7 -c 'import re,sys;sys.stdout.write(re.sub(".*\nReverse Depends:\n( [ |].*\n)+","",sys.stdin.read()).replace("Reverse Depends:\n",""))' |
This file contains hidden or 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
#!/bin/bash | |
# Usage: | |
# (gdb) target extended-remote | ./gdbserver.sh | |
(echo 'stty raw -echo; exec gdbserver --multi - 2>/dev/nul'; cat) | adb shell | stdbuf -o0 dos2unix | (read -r; read -r; cat) |
This file contains hidden or 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
# for test purpose only, do not use in production | |
# inspired by http://blog.pkh.me/p/4-simple_vhost-with-nginx.html | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name default; | |
server_name_in_redirect off; | |
set $vpath /srv/_vhost/$host; |
This file contains hidden or 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
{ | |
'GYP_DEFINES': 'ffmpeg_branding=Chrome proprietary_codecs=1 enable_widevine=1' | |
} |
This file contains hidden or 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
(lldb) p g_key_systems.Pointer() | |
(media::KeySystemsImpl *) $3 = 0x00000001222553b0 | |
(lldb) p *$3 | |
(media::KeySystemsImpl) $4 = { | |
key_system_map_ = size=2 { | |
[0] = { | |
__cc = { | |
first = "org.w3.clearkey" | |
second = { | |
key_system = "org.w3.clearkey" |
This file contains hidden or 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/env python2 | |
# Ref: https://www.quora.com/How-can-problem-D-Sums-of-sums-from-Round-E-of-the-Google-APAC-Test-2016-be-solved-for-the-large-dataset | |
import multiprocessing | |
get_int = lambda: int( raw_input() ) | |
get_multi_int = lambda: map( int, raw_input().strip().split() ) | |
def binary_search( x, f, lo, hi ): | |
'''\ |
This file contains hidden or 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
# coding: utf-8 | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
import json | |
import requests | |
import time |
This file contains hidden or 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
http://www.hardwaresecrets.com/datasheets/F81865_V028P.pdf | |
F81865 0x3419, 0x0307 | |
http://pdf1.alldatasheet.com/datasheet-pdf/view/257912/FINTEK/F71882.html | |
https://www.scribd.com/document/121452631/fintek-F71882F-datasheet | |
F71882 0x3419, 0x4105 | |
http://pdf1.alldatasheet.com/datasheet-pdf/view/459084/FINTEK/F81866A.html | |
F81866A 0x3419, 0x1010 |
This file contains hidden or 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/env python3 | |
import datetime | |
import requests | |
last = '20170807' | |
fmt = '%Y%m%d' | |
date = datetime.datetime.strptime(last, fmt).date() | |
today = datetime.date.today() | |
session = requests.Session() | |
while date < today: |