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 requests | |
def download_file_from_google_drive(id, destination): | |
def get_confirm_token(response): | |
for key, value in response.cookies.items(): | |
if key.startswith('download_warning'): | |
return value | |
return None |
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 requests | |
r = requests.post('https://qiwictf2014.ru:40443', auth=('xxx','nshvtyfnjh')) | |
print r.status_code | |
print r.headers | |
print r.text | |
print r.json() |
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
private String d; | |
private String a() | |
{ | |
StringBuilder stringbuilder; | |
DefaultHttpClient defaulthttpclient; | |
UsernamePasswordCredentials usernamepasswordcredentials; | |
HttpGet httpget; | |
Character character = Character.valueOf('n'); //note this | |
String s = d.substring(0, 1); //note this |
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/python2 | |
from sys import argv | |
from PIL import Image | |
im = Image.open(argv[1]) | |
imageW = im.size[0] | |
imageH = im.size[1] | |
pixels = im.load() |
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
xnu_quick_test -- performs some tests on xnu | |
http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/tools/tests/xnu_quick_test/README | |
XNU Mach syscalls | |
http://www.opensource.apple.com/source/xnu/xnu-1699.24.23/osfmk/kern/syscall_sw.c | |
http://www.opensource.apple.com/source/xnu/xnu-1699.24.23/osfmk/kern/syscall_emulation.c | |
http://www.opensource.apple.com/source/xnu/xnu-1699.24.23/osfmk/kern/syscall_subr.c | |
XNU BSD syscalls | |
http://www.opensource.apple.com/source/xnu/xnu-1699.24.23/bsd/kern/syscalls.master |
NewerOlder