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 requests | |
import json | |
token = {'token': '21f7e4a349d69bbab5dc20c2647b3880'} | |
books = [ | |
['jvm', | |
'11120486', | |
'07871edf-06a8-4bd1-a8d8-aa2317a099c7_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
def ext_euclid(a, b): | |
if b == 0: | |
return 1, 0, a | |
else: | |
x, y, q = ext_euclid(b, a % b) | |
x, y = y, (x - (a // b) * y) | |
return x, y, q | |
def inverse(a, n): | |
x, y, q = ext_euclid(a, 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
jefferson_origin = ['ZWAXJGDLUBVIQHKYPNTCRMOSFE', | |
'KPBELNACZDTRXMJQOYHGVSFUWI', | |
'BDMAIZVRNSJUWFHTEQGYXPLOCK', | |
'RPLNDVHGFCUKTEBSXQYIZMJWAO', | |
'IHFRLABEUOTSGJVDKCPMNZQWXY', | |
'AMKGHIWPNYCJBFZDRUSLOQXVET', | |
'GWTHSPYBXIZULVKMRAFDCEONJQ', | |
'NOZUTWDCVRJLXKISEFAPMYGHBQ', | |
'QWATDSRFHENYVUBMCOIKZGJXPL', | |
'WABMCXPLTDSRJQZGOIKFHENYVU', |
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 | |
# -*- encoding: utf-8 -*- | |
''' | |
https://ctf.bugku.com/challenges#%E4%B8%80%E6%AE%B5Base64 | |
''' | |
import base64 | |
import html | |
from urllib import parse |
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
int gcdEx(int a, int b, int *x, int *y) | |
{ | |
if(0 == b) | |
{ | |
*x = 1; | |
*y = 0; | |
return a; | |
} | |
else | |
{ |