Skip to content

Instantly share code, notes, and snippets.

View smithtrenton's full-sized avatar

Trenton Smith smithtrenton

View GitHub Profile
private class Modulus {
public final BigInteger quotient;
public final int bits;
public Modulus(BigInteger quotient, int bits) {
this.quotient = quotient;
this.bits = bits;
}
public BigInteger compute() {
import socket
import struct
import ctypes
import re
import smtplib
import math
import traceback
from urllib.request import urlopen
# Force an email?
from html.parser import HTMLParser
from urllib.request import (urlopen, ProxyHandler, build_opener, OpenerDirector)
import re
#parses html page for data between <td></td>
#works for http://us-proxy.org/ and http://free-proxy-list.net/uk-proxy.html
class ProxyParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self._read = False
import socket
import struct
import ctypes
import re
from urllib.request import urlopen
HTTP = 'http://'
RS3HOST = 'world1.runescape.com'
OSRSHOST = 'oldschool1.runescape.com'
EXT = '/k=3/jav_config.ws'
from html.parser import HTMLParser
from urllib.request import urlopen
#parses html page for data between <td></td>
#works for http://us-proxy.org/ and http://free-proxy-list.net/uk-proxy.html
class ProxyParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self._read = False
self._count = 0
def make_point(x, y):
def get(index):
if index==0:
return x
elif index==1:
return y
return get
def x_point(p):
return p(0)
ClassTree: {
af(0, 0, 0)
ah(0, 0, 0)
al(0, 0, 0)
ap(0, 1, 2) -> ab(1, 0, 0)
ap(0, 1, 2) -> bb(1, 0, 0)
ar(0, 0, 0)
as(0, 0, 0)
ay(0, 0, 0)
be(0, 0, 0)
╬ Built context in 5129ms
╬ Running analysers...
≡ Bag identified as fd
º cache identified as fd.v ([Lgs;)
º current identified as fd.e (Lgs;)
º currentIndex identified as fd.h (I) * 1
º head identified as fd.m (Lgs;)
º size identified as fd.x (I) * 1
» Identified 5 out of 5 fields & 0 out of 0 methods in 2ms.
╬ Built context in 5728ms
╬ Running analysers...
≡ Bag identified as fd
º nodes identified as fd.v ([Lgs;)
» Identified 1 out of 1 fields in 0ms.
≡ BoundaryObject identified as cn
º backupRenderable identified as cn.j (Lcj;)
º hash identified as cn.i (I) * 0
º renderable identified as cn.p (Lcj;)
@Override
public boolean verifyClass(ClassInfo node) {
return (getFieldCount(node, getClassFieldName(node), 0x1) == 1 && getFieldCount(node, getClassFieldName(node), 0) == 1 &&
getFieldCount(node, "J", 0x1) == 1 && nonStaticMethodSize(node) == 3 && node.superName().equals("java/lang/Object"));
}