正在查看: moonshot.企业版 v5.53.33 应用的 C1108.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v5.53.33 应用的 C1108.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.P64cQsLRvQuUEIduCkKg;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.TCUcMtElLJnqSvqb7YcU.MYYE5cZhIWmgDH4dSchY.C0291;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.n66Vr4ULakY6CzHspLC4.YRzj8vP3b8wqFcA534WS.C0823;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.AlqAA6VvsOyrCvgv9UFQ.C0885;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.C1359;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.C1376;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.Y7uKwKMxyRpUoIAZ8Xse.C1196;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.bkVy1JDG4RNIwBuX5KjV.C1261;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.eaVhZCCRwf1km55PrQWK.C1296;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.lUejFmmegSiPZmnU9fYq.C1321;
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 C1108 {
private C1321 f4357;
private BufferedOutputStream f4358;
private BufferedInputStream f4359;
private boolean f4360;
private byte[] f4361;
public C1108() {
this.f4360 = true;
this.f4357 = null;
this.f4359 = null;
this.f4358 = null;
this.f4361 = null;
}
private void m3693(byte[] bArr) {
this.f4357.mo4562(false, new C0885(bArr));
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(this.f4359));
byte[] bArr2 = null;
while (true) {
try {
String readLine = bufferedReader.readLine();
if (readLine == null) {
try {
break;
} catch (C1359 unused) {
return;
}
}
byte[] m2671 = C0823.m2671(readLine);
bArr2 = new byte[this.f4357.mo4533(m2671.length)];
int mo4532 = this.f4357.mo4532(m2671, 0, m2671.length, bArr2, 0);
if (mo4532 > 0) {
this.f4358.write(bArr2, 0, mo4532);
}
} catch (IOException e) {
e.printStackTrace();
return;
}
}
int mo4534 = this.f4357.mo4534(bArr2, 0);
if (mo4534 > 0) {
this.f4358.write(bArr2, 0, mo4534);
}
}
private void m3694() {
this.f4357 = new C1321(new C1296(new C1196()));
if (this.f4360) {
m3695(this.f4361);
} else {
m3693(this.f4361);
}
try {
this.f4359.close();
this.f4358.flush();
this.f4358.close();
} catch (IOException unused) {
}
}
private void m3695(byte[] bArr) {
this.f4357.mo4562(true, new C0885(bArr));
byte[] bArr2 = new byte[47];
byte[] bArr3 = new byte[this.f4357.mo4533(47)];
while (true) {
try {
int read = this.f4359.read(bArr2, 0, 47);
if (read <= 0) {
try {
break;
} catch (C1359 unused) {
return;
}
}
int mo4532 = this.f4357.mo4532(bArr2, 0, read, bArr3, 0);
if (mo4532 > 0) {
byte[] m2673 = C0823.m2673(bArr3, 0, mo4532);
this.f4358.write(m2673, 0, m2673.length);
this.f4358.write(10);
}
} catch (IOException e) {
e.printStackTrace();
return;
}
}
int mo4534 = this.f4357.mo4534(bArr3, 0);
if (mo4534 > 0) {
byte[] m26732 = C0823.m2673(bArr3, 0, mo4534);
this.f4358.write(m26732, 0, m26732.length);
this.f4358.write(10);
}
}
public static void m3696(String[] strArr) {
String str;
boolean z = true;
if (strArr.length < 2) {
new C1108();
System.err.println("Usage: java " + C1108.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 C1108(str2, str3, str, z).m3694();
}
public C1108(String str, String str2, String str3, boolean z) {
SecureRandom secureRandom;
this.f4360 = true;
SecureRandom secureRandom2 = null;
this.f4357 = null;
this.f4359 = null;
this.f4358 = null;
this.f4361 = null;
this.f4360 = z;
try {
this.f4359 = new BufferedInputStream(new FileInputStream(str));
} catch (FileNotFoundException unused) {
System.err.println("Input file not found [" + str + "]");
System.exit(1);
}
try {
this.f4358 = 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;
C1376 c1376 = new C1376(secureRandom, C0291.f1230);
C1261 c1261 = new C1261();
c1261.mo4360(c1376);
this.f4361 = c1261.mo4361();
BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(str3));
byte[] m2672 = C0823.m2672(this.f4361);
bufferedOutputStream.write(m2672, 0, m2672.length);
bufferedOutputStream.flush();
bufferedOutputStream.close();
return;
} catch (IOException unused5) {
System.err.println("Could not decryption create key file [" + str3 + "]");
System.exit(1);
return;
}
}
C1376 c13762 = new C1376(secureRandom, C0291.f1230);
C1261 c12612 = new C1261();
c12612.mo4360(c13762);
this.f4361 = c12612.mo4361();
BufferedOutputStream bufferedOutputStream2 = new BufferedOutputStream(new FileOutputStream(str3));
byte[] m26722 = C0823.m2672(this.f4361);
bufferedOutputStream2.write(m26722, 0, m26722.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.f4361 = C0823.m2676(bArr);
} catch (IOException unused6) {
System.err.println("Decryption key file not found, or not valid [" + str3 + "]");
System.exit(1);
}
}
}