正在查看: moonshot.企业版 v5.53.33 应用的 C1072.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v5.53.33 应用的 C1072.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.P64cQsLRvQuUEIduCkKg;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.TCUcMtElLJnqSvqb7YcU.MYYE5cZhIWmgDH4dSchY.C0255;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.n66Vr4ULakY6CzHspLC4.YRzj8vP3b8wqFcA534WS.C0787;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.AlqAA6VvsOyrCvgv9UFQ.C0849;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.C1323;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.C1340;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.Y7uKwKMxyRpUoIAZ8Xse.C1160;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.bkVy1JDG4RNIwBuX5KjV.C1225;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.eaVhZCCRwf1km55PrQWK.C1260;
import ShxcOQUYV4NCnoYZ6rEG.rKwtQoMTg9U9BbR7dg96.rKwtQoMTg9U9BbR7dg96.lUejFmmegSiPZmnU9fYq.C1285;
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 C1072 {
private C1285 f4346;
private BufferedOutputStream f4347;
private BufferedInputStream f4348;
private boolean f4349;
private byte[] f4350;
public C1072() {
this.f4349 = true;
this.f4346 = null;
this.f4348 = null;
this.f4347 = null;
this.f4350 = null;
}
private void m3688(byte[] bArr) {
this.f4346.mo4557(false, new C0849(bArr));
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(this.f4348));
byte[] bArr2 = null;
while (true) {
try {
String readLine = bufferedReader.readLine();
if (readLine == null) {
try {
break;
} catch (C1323 unused) {
return;
}
}
byte[] m2666 = C0787.m2666(readLine);
bArr2 = new byte[this.f4346.mo4528(m2666.length)];
int mo4527 = this.f4346.mo4527(m2666, 0, m2666.length, bArr2, 0);
if (mo4527 > 0) {
this.f4347.write(bArr2, 0, mo4527);
}
} catch (IOException e) {
e.printStackTrace();
return;
}
}
int mo4529 = this.f4346.mo4529(bArr2, 0);
if (mo4529 > 0) {
this.f4347.write(bArr2, 0, mo4529);
}
}
private void m3689() {
this.f4346 = new C1285(new C1260(new C1160()));
if (this.f4349) {
m3690(this.f4350);
} else {
m3688(this.f4350);
}
try {
this.f4348.close();
this.f4347.flush();
this.f4347.close();
} catch (IOException unused) {
}
}
private void m3690(byte[] bArr) {
this.f4346.mo4557(true, new C0849(bArr));
byte[] bArr2 = new byte[47];
byte[] bArr3 = new byte[this.f4346.mo4528(47)];
while (true) {
try {
int read = this.f4348.read(bArr2, 0, 47);
if (read <= 0) {
try {
break;
} catch (C1323 unused) {
return;
}
}
int mo4527 = this.f4346.mo4527(bArr2, 0, read, bArr3, 0);
if (mo4527 > 0) {
byte[] m2668 = C0787.m2668(bArr3, 0, mo4527);
this.f4347.write(m2668, 0, m2668.length);
this.f4347.write(10);
}
} catch (IOException e) {
e.printStackTrace();
return;
}
}
int mo4529 = this.f4346.mo4529(bArr3, 0);
if (mo4529 > 0) {
byte[] m26682 = C0787.m2668(bArr3, 0, mo4529);
this.f4347.write(m26682, 0, m26682.length);
this.f4347.write(10);
}
}
public static void m3691(String[] strArr) {
String str;
boolean z = true;
if (strArr.length < 2) {
new C1072();
System.err.println("Usage: java " + C1072.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 C1072(str2, str3, str, z).m3689();
}
public C1072(String str, String str2, String str3, boolean z) {
SecureRandom secureRandom;
this.f4349 = true;
SecureRandom secureRandom2 = null;
this.f4346 = null;
this.f4348 = null;
this.f4347 = null;
this.f4350 = null;
this.f4349 = z;
try {
this.f4348 = new BufferedInputStream(new FileInputStream(str));
} catch (FileNotFoundException unused) {
System.err.println("Input file not found [" + str + "]");
System.exit(1);
}
try {
this.f4347 = 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;
C1340 c1340 = new C1340(secureRandom, C0255.f1219);
C1225 c1225 = new C1225();
c1225.mo4355(c1340);
this.f4350 = c1225.mo4356();
BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(str3));
byte[] m2667 = C0787.m2667(this.f4350);
bufferedOutputStream.write(m2667, 0, m2667.length);
bufferedOutputStream.flush();
bufferedOutputStream.close();
return;
} catch (IOException unused5) {
System.err.println("Could not decryption create key file [" + str3 + "]");
System.exit(1);
return;
}
}
C1340 c13402 = new C1340(secureRandom, C0255.f1219);
C1225 c12252 = new C1225();
c12252.mo4355(c13402);
this.f4350 = c12252.mo4356();
BufferedOutputStream bufferedOutputStream2 = new BufferedOutputStream(new FileOutputStream(str3));
byte[] m26672 = C0787.m2667(this.f4350);
bufferedOutputStream2.write(m26672, 0, m26672.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.f4350 = C0787.m2671(bArr);
} catch (IOException unused6) {
System.err.println("Decryption key file not found, or not valid [" + str3 + "]");
System.exit(1);
}
}
}