正在查看: moonshot.企业版 v8.14.46 应用的 C0932.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v8.14.46 应用的 C0932.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.RJszB94qpSilBYxXLPxD;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.c8sKPHc73aST6XPVbBtC.Br4pJOF4IGdFfijfw7b7.C0187;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.C1249;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.C1264;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.EAGMOqE9PNhZwwW8Npnw.C0815;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.GIwGcmNZzCghmbD6TAzK.C0823;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.GZKn9dcnUDu1gOViA7e3.C0830;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.ghd8raaKxm3o1ndYTetd.C1169;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.hX79Ew6mJdJrSjlkdwnl.zxTYPPGQZdTQidwRLQH5.C1232;
import JINLt5EavtBRnNuKNNEN.hX79Ew6mJdJrSjlkdwnl.iTeGsf4pEYeDatV5mlQ3.jbPKYgqepeRjrvo1aIEj.C1294;
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 C0932 {
private BufferedInputStream f4017;
private boolean f4018;
private BufferedOutputStream f4019;
private C0823 f4020;
private byte[] f4021;
public C0932() {
this.f4018 = true;
this.f4020 = null;
this.f4017 = null;
this.f4019 = null;
this.f4021 = null;
}
private void m3525(byte[] bArr) {
this.f4020.mo3151(true, new C0815(bArr));
byte[] bArr2 = new byte[47];
byte[] bArr3 = new byte[this.f4020.mo3149(47)];
while (true) {
try {
int read = this.f4017.read(bArr2, 0, 47);
if (read <= 0) {
try {
break;
} catch (C1264 unused) {
return;
}
}
int mo3148 = this.f4020.mo3148(bArr2, 0, read, bArr3, 0);
if (mo3148 > 0) {
byte[] m4865 = C1294.m4865(bArr3, 0, mo3148);
this.f4019.write(m4865, 0, m4865.length);
this.f4019.write(10);
}
} catch (IOException e) {
e.printStackTrace();
return;
}
}
int mo3150 = this.f4020.mo3150(bArr3, 0);
if (mo3150 > 0) {
byte[] m48652 = C1294.m4865(bArr3, 0, mo3150);
this.f4019.write(m48652, 0, m48652.length);
this.f4019.write(10);
}
}
public static void m3526(String[] strArr) {
String str;
boolean z = true;
if (strArr.length < 2) {
new C0932();
System.err.println("Usage: java " + C0932.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 C0932(str2, str3, str, z).m3527();
}
private void m3527() {
this.f4020 = new C0823(new C1232(new C1169()));
if (this.f4018) {
m3525(this.f4021);
} else {
m3528(this.f4021);
}
try {
this.f4017.close();
this.f4019.flush();
this.f4019.close();
} catch (IOException unused) {
}
}
private void m3528(byte[] bArr) {
this.f4020.mo3151(false, new C0815(bArr));
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(this.f4017));
byte[] bArr2 = null;
while (true) {
try {
String readLine = bufferedReader.readLine();
if (readLine == null) {
try {
break;
} catch (C1264 unused) {
return;
}
}
byte[] m4866 = C1294.m4866(readLine);
bArr2 = new byte[this.f4020.mo3149(m4866.length)];
int mo3148 = this.f4020.mo3148(m4866, 0, m4866.length, bArr2, 0);
if (mo3148 > 0) {
this.f4019.write(bArr2, 0, mo3148);
}
} catch (IOException e) {
e.printStackTrace();
return;
}
}
int mo3150 = this.f4020.mo3150(bArr2, 0);
if (mo3150 > 0) {
this.f4019.write(bArr2, 0, mo3150);
}
}
public C0932(String str, String str2, String str3, boolean z) {
SecureRandom secureRandom;
this.f4018 = true;
SecureRandom secureRandom2 = null;
this.f4020 = null;
this.f4017 = null;
this.f4019 = null;
this.f4021 = null;
this.f4018 = z;
try {
this.f4017 = new BufferedInputStream(new FileInputStream(str));
} catch (FileNotFoundException unused) {
System.err.println("Input file not found [" + str + "]");
System.exit(1);
}
try {
this.f4019 = 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;
C1249 c1249 = new C1249(secureRandom, C0187.f791);
C0830 c0830 = new C0830();
c0830.mo3176(c1249);
this.f4021 = c0830.mo3175();
BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(str3));
byte[] m4863 = C1294.m4863(this.f4021);
bufferedOutputStream.write(m4863, 0, m4863.length);
bufferedOutputStream.flush();
bufferedOutputStream.close();
return;
} catch (IOException unused5) {
System.err.println("Could not decryption create key file [" + str3 + "]");
System.exit(1);
return;
}
}
C1249 c12492 = new C1249(secureRandom, C0187.f791);
C0830 c08302 = new C0830();
c08302.mo3176(c12492);
this.f4021 = c08302.mo3175();
BufferedOutputStream bufferedOutputStream2 = new BufferedOutputStream(new FileOutputStream(str3));
byte[] m48632 = C1294.m4863(this.f4021);
bufferedOutputStream2.write(m48632, 0, m48632.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.f4021 = C1294.m4861(bArr);
} catch (IOException unused6) {
System.err.println("Decryption key file not found, or not valid [" + str3 + "]");
System.exit(1);
}
}
}