Skip to content

Instantly share code, notes, and snippets.

View CubicPill's full-sized avatar
🐟
Fishing

GBP CubicPill

🐟
Fishing
View GitHub Profile
@CubicPill
CubicPill / lexiang.py
Created March 5, 2020 10:00
Tencent Lexiang course
import json
import random
from urllib import parse
import requests
from bs4 import BeautifulSoup
CLASS_ID = 'CLASS_ID_HERE'
COOKIES = 'YOUR_COOKIES_HERE'
UA = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36'
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Parameter;
import java.util.Arrays;
public class EntropyBaseTest {
private static final String[] methodNames = {"charCount", "normalize", "entropyOf", "charCountArray", "main"};
public static Method[] testMethodsExistence(Class c) {
Method[] result = new Method[5];
@CubicPill
CubicPill / auto_check.sh
Created December 29, 2017 09:26
CARP solver usability auto check
#!/bin/bash
echo 'Test script starting...'
python3 ./usability_test.py
echo 'Script done!'
cd ./carp_extract/
for sid in `ls`
do
@CubicPill
CubicPill / fiddler_raw_parser.py
Created September 2, 2017 17:59
a script to convert fiddler captured request data to dict
import json
HTTP_METHODS = ['GET', 'POST', 'HEAD', 'PUT', 'DELETE', 'OPTIONS', 'CONNECT']
class ParseError(Exception):
def __init__(self, msg):
Exception.__init__(self)
self.message = msg

Keybase proof

I hereby claim:

  • I am cubicpill on github.
  • I am cubicpill (https://keybase.io/cubicpill) on keybase.
  • I have a public key whose fingerprint is E928 4CE2 FEB6 562B 2E18 1515 6073 8211 1F20 BE0B

To claim this, I am signing this object: