Skip to content

Instantly share code, notes, and snippets.

Gratsh

Block or report user

Report or block Gratsh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4c4131e06cf6989bb9a03d671febd5a6
.method private declared-synchronized initSSLSocketFactory()Ljavax/net/ssl/SSLSocketFactory;
.locals 4
monitor-enter p0
const/4 v0, 0x1
:try_start_0
iput-boolean v0, p0, Lio/fabric/sdk/android/services/network/DefaultHttpRequestFactory;->attemptedSslInit:Z
:try_end_0
View gist:30a88a96be7e11d626dc435be1974182
.method public static a(Ljava/security/cert/Certificate;)Ljava/lang/String;
.locals 2
return-void
instance-of v0, p0, Ljava/security/cert/X509Certificate;
if-nez v0, :cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
View gist:e3c5541f4e42763d416b5aabf4acec94
.method public static a(Ljava/security/cert/Certificate;)Ljava/lang/String;
.locals 2
instance-of v0, p0, Ljava/security/cert/X509Certificate;
if-nez v0, :cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Certificate pinning requires X509 certificates"
View gist:446e1adb6da877e88a9974bea53b4447
public void m22766a(String str, List<Certificate> list) {
List a = m22764a(str);
if (!a.isEmpty()) {
int i;
if (this.f20058c != null) {
list = this.f20058c.mo7147a(list, str);
}
int size = list.size();
for (int i2 = 0; i2 < size; i2++) {
X509Certificate x509Certificate = (X509Certificate) list.get(i2);
View gist:43be9e3bd6d43541ccdbb6e144f7ba1a
public void m22766a(String str, List<Certificate> list) {
return;
List a = m22764a(str);
if (!a.isEmpty()) {
int i;
if (this.f20058c != null) {
list = this.f20058c.mo7147a(list, str);
}
View gist:1705956d352514855d0212d3ed67e061
.class public final Lokhttp3/k;
.super Ljava/lang/Object;
.source "CertificatePinner.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/k$a;,
Lokhttp3/k$b;
View gist:68ee369f9d0dfa56d196d1ab2fe36dc0
public void m22766a(String str, List<Certificate> list) {
List a = m22764a(str);
if (!a.isEmpty()) {
int i;
if (this.f20058c != null) {
list = this.f20058c.mo7147a(list, str);
}
int size = list.size();
for (int i2 = 0; i2 < size; i2++) {
X509Certificate x509Certificate = (X509Certificate) list.get(i2);
View gist:bd51e313a038db304c43542ac8b75bb5
package okhttp3;
import java.security.cert.Certificate;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import javax.annotation.Nullable;
View gist:f668f04489c78f8ed20ede9beaabe510
boolean stop = false;
List<String> list = new ArrayList<>();
while (stop == false){
try{
String temp1 = regex1("=(.*?)<br\\/>", source);
source = source.replace("=" + temp1 + "<br", "");
list.add(temp1);
}catch (Exception e){
stop = true;
}
View gist:11bc008cafc04ac9ec1448c0ae642684
source = source.replace("<dt><label for=\"ctrl_username\">Name:</label>", "");
source = source.replace("<dt><label for=\"ctrl_password\">Password:</label>", "");
source = source.replace("<dt><label for=\"ctrl_", "");
String _name = "";
String _email = "";
String _pass = "";
String _passConfirmation = "";
String _captcha = "";
String _timeZone = "";
String _location = "";
You can’t perform that action at this time.