正在查看: moonshot.企业版 v8.14.46 应用的 C0945.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v8.14.46 应用的 C0945.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.RJszB94qpSilBYxXLPxD;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.c8sKPHc73aST6XPVbBtC.Br4pJOF4IGdFfijfw7b7.C0200;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.C1262;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.C1277;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.EAGMOqE9PNhZwwW8Npnw.C0828;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.GIwGcmNZzCghmbD6TAzK.C0836;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.GZKn9dcnUDu1gOViA7e3.C0843;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.ghd8raaKxm3o1ndYTetd.C1182;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.zxTYPPGQZdTQidwRLQH5.C1245;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.iTeGsf4pEYeDatV5mlQ3.jbPKYgqepeRjrvo1aIEj.C1307;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.security.SecureRandom;
public class C0945 {
private BufferedInputStream f4018;
private boolean f4019;
private BufferedOutputStream f4020;
private C0836 f4021;
private byte[] f4022;
public C0945() {
this.f4019 = true;
this.f4021 = null;
this.f4018 = null;
this.f4020 = null;
this.f4022 = null;
}
private void m3541(byte[] bArr) {
this.f4021.mo3167(true, new C0828(bArr));
byte[] bArr2 = new byte[47];
byte[] bArr3 = new byte[this.f4021.mo3165(47)];
while (true) {
try {
int read = this.f4018.read(bArr2, 0, 47);
if (read <= 0) {
try {
break;
} catch (C1277 unused) {
return;
}
}
int mo3164 = this.f4021.mo3164(bArr2, 0, read, bArr3, 0);
if (mo3164 > 0) {
byte[] m4881 = C1307.m4881(bArr3, 0, mo3164);
this.f4020.write(m4881, 0, m4881.length);
this.f4020.write(10);
}
} catch (IOException e) {
e.printStackTrace();
return;
}
}
int mo3166 = this.f4021.mo3166(bArr3, 0);
if (mo3166 > 0) {
byte[] m48812 = C1307.m4881(bArr3, 0, mo3166);
this.f4020.write(m48812, 0, m48812.length);
this.f4020.write(10);
}
}
public static void m3542(String[] strArr) {
String str;
boolean z = true;
if (strArr.length < 2) {
new C0945();
System.err.println("Usage: java " + C0945.class.getName() + " infile outfile [keyfile]");
System.exit(1);
}
String str2 = strArr[0];
String str3 = strArr[1];
if (strArr.length > 2) {
str = strArr[2];
z = false;
} else {
str = "deskey.dat";
}
new C0945(str2, str3, str, z).m3543();
}
private void m3543() {
this.f4021 = new C0836(new C1245(new C1182()));
if (this.f4019) {
m3541(this.f4022);
} else {
m3544(this.f4022);
}
try {
this.f4018.close();
this.f4020.flush();
this.f4020.close();
} catch (IOException unused) {
}
}
private void m3544(byte[] bArr) {
this.f4021.mo3167(false, new C0828(bArr));
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(this.f4018));
byte[] bArr2 = null;
while (true) {
try {
String readLine = bufferedReader.readLine();
if (readLine == null) {
try {
break;
} catch (C1277 unused) {
return;
}
}
byte[] m4882 = C1307.m4882(readLine);
bArr2 = new byte[this.f4021.mo3165(m4882.length)];
int mo3164 = this.f4021.mo3164(m4882, 0, m4882.length, bArr2, 0);
if (mo3164 > 0) {
this.f4020.write(bArr2, 0, mo3164);
}
} catch (IOException e) {
e.printStackTrace();
return;
}
}
int mo3166 = this.f4021.mo3166(bArr2, 0);
if (mo3166 > 0) {
this.f4020.write(bArr2, 0, mo3166);
}
}
public C0945(String str, String str2, String str3, boolean z) {
SecureRandom secureRandom;
this.f4019 = true;
SecureRandom secureRandom2 = null;
this.f4021 = null;
this.f4018 = null;
this.f4020 = null;
this.f4022 = null;
this.f4019 = z;
try {
this.f4018 = new BufferedInputStream(new FileInputStream(str));
} catch (FileNotFoundException unused) {
System.err.println("Input file not found [" + str + "]");
System.exit(1);
}
try {
this.f4020 = new BufferedOutputStream(new FileOutputStream(str2));
} catch (IOException unused2) {
System.err.println("Output file not created [" + str2 + "]");
System.exit(1);
}
if (z) {
try {
secureRandom = new SecureRandom();
} catch (Exception unused3) {
}
try {
secureRandom.setSeed("www.bouncycastle.org".getBytes());
} catch (Exception unused4) {
secureRandom2 = secureRandom;
try {
System.err.println("Hmmm, no SHA1PRNG, you need the Sun implementation");
System.exit(1);
secureRandom = secureRandom2;
C1262 c1262 = new C1262(secureRandom, C0200.f792);
C0843 c0843 = new C0843();
c0843.mo3192(c1262);
this.f4022 = c0843.mo3191();
BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(str3));
byte[] m4879 = C1307.m4879(this.f4022);
bufferedOutputStream.write(m4879, 0, m4879.length);
bufferedOutputStream.flush();
bufferedOutputStream.close();
return;
} catch (IOException unused5) {
System.err.println("Could not decryption create key file [" + str3 + "]");
System.exit(1);
return;
}
}
C1262 c12622 = new C1262(secureRandom, C0200.f792);
C0843 c08432 = new C0843();
c08432.mo3192(c12622);
this.f4022 = c08432.mo3191();
BufferedOutputStream bufferedOutputStream2 = new BufferedOutputStream(new FileOutputStream(str3));
byte[] m48792 = C1307.m4879(this.f4022);
bufferedOutputStream2.write(m48792, 0, m48792.length);
bufferedOutputStream2.flush();
bufferedOutputStream2.close();
return;
}
try {
BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(str3));
int available = bufferedInputStream.available();
byte[] bArr = new byte[available];
bufferedInputStream.read(bArr, 0, available);
this.f4022 = C1307.m4877(bArr);
} catch (IOException unused6) {
System.err.println("Decryption key file not found, or not valid [" + str3 + "]");
System.exit(1);
}
}
}