com.diboot.devtools.v2.OOO0OO0O000OOO0O Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) dibo.ltd, https://www.dibo.ltd, https://www.diboot.com
*
* ---- 版权声明 ----
* Diboot相关商标、软件著作权、专利等全部知识产权隶属于苏州帝博信息技术有限公司。
* Diboot devtools 非开源项目,如您有devtools相关定制化需求,请至官网(https://www.dibo.ltd)联系帝博信息商务。
*
* 《中华人民共和国刑法》规定:破坏计算机信息系统罪,处五年以下有期徒刑或者拘役;后果特别严重的,处五年以上有期徒刑。
* 侵犯知识产权罪:处三年以下有期徒刑、拘役或管制,并处罚金;情节特别严重的,处三年以上七年以下有期徒刑,并处罚金。
*
* 任何尝试破解、破坏devtools、侵犯diboot知识产权的行为,我们将不惜一切代价追究到底!
*
*/
package com.diboot.devtools.v2;
import com.diboot.core.config.Cons;
import com.diboot.core.util.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.FileUtils;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@Slf4j
@Deprecated()
public class OOO0OO0O000OOO0O {
private static String l11ll1l1l1111 = null;
private static O00OO0OOO0O0OO00 ll1111l111lll = null;
@Deprecated()
public synchronized static O00OO0OOO0O0OO00 lllll1ll1l111l1() {
if (ll1111l111lll == null) {
ll1111l111lll = new O00OO0OOO0O0OO00();
ll1111l111lll.setCn(l11ll111lll11()).setOs(System.getProperty(OOO0OO00O00O00OO.l11llll1ll11ll1("b3MubmFtZQ=="))).setLc(ll1111l1ll11l()).setCt(l1l1l11l11lll()).setDt(ContextHelper.getDatabaseType());
}
return ll1111l111lll;
}
@Deprecated()
private static String l11ll111lll11() {
String llllllll1ll1 = System.getenv().get(OOO0OO00O00O00OO.l11llll1ll11ll1("Q09NUFVURVJOQU1F"));
if (V.notEmpty(llllllll1ll1)) {
return llllllll1ll1;
}
String l1l11l1llll1 = System.getProperty(OOO0OO00O00O00OO.l11llll1ll11ll1("b3MubmFtZQ=="));
if (S.containsIgnoreCase(l1l11l1llll1, "Mac")) {
Process l1llll1ll11l = null;
BufferedReader lllll1ll111l = null;
try {
l1llll1ll11l = Runtime.getRuntime().exec(OOO0OO00O00O00OO.l11llll1ll11ll1("dW5hbWUgLWE="));
lllll1ll111l = new BufferedReader(new InputStreamReader(l1llll1ll11l.getInputStream()));
String lll11lll1lll = null;
while ((lll11lll1lll = lllll1ll111l.readLine()) != null) {
if (S.containsIgnoreCase(lll11lll1lll, "Darwin Kernel")) {
Pattern llll1111llll = Pattern.compile("Darwin (.*?) Darwin Kernel");
Matcher l11l11l1l1l1 = llll1111llll.matcher(lll11lll1lll);
while (l11l11l1l1l1.find()) {
llllllll1ll1 = S.trim(l11l11l1l1l1.group(1));
}
if (V.notEmpty(llllllll1ll1)) {
String[] ll1lll11l11l = S.split(llllllll1ll1, " ");
if (ll1lll11l11l.length > 1) {
List llll111ll1l1 = new ArrayList<>();
for (int l1l1ll1l1111 = 0; l1l1ll1l1111 < ll1lll11l11l.length - 1; l1l1ll1l1111++) {
llll111ll1l1.add(ll1lll11l11l[l1l1ll1l1111]);
}
llllllll1ll1 = S.join(llll111ll1l1, " ");
}
}
}
}
} catch (IOException e) {
} finally {
try {
if (lllll1ll111l != null) {
lllll1ll111l.close();
}
} catch (IOException e1) {
}
lllll1ll111l = null;
l1llll1ll11l = null;
}
}
return llllllll1ll1;
}
@Deprecated()
private static String l1l1l11l11lll() {
if (l11ll1l1l1111 == null) {
l11ll1l1l1111 = l1l1l1l1l1l1l();
if (l11ll1l1l1111 == null) {
l11ll1l1l1111 = O00O00OO0000OO0O.lll11l11llll1l1();
}
if (l11ll1l1l1111 == null) {
l11ll1l1l1111 = OO0OOOO0OOO0000O.l1111lll1ll1lll();
}
if (l11ll1l1l1111 != null) {
l11ll1l1l1111 = Encryptor.encrypt(l11ll1l1l1111, O0O0O0000OO0O000.CHARSET_UTF8);
}
}
return l11ll1l1l1111;
}
@Deprecated()
private static String l1l1l1l1l1l1l() {
try {
byte[] ll11l111l1l1 = NetworkInterface.getByInetAddress(InetAddress.getLocalHost()).getHardwareAddress();
if (ll11l111l1l1 == null) {
return null;
}
StringBuilder lllll1ll1l11 = new StringBuilder();
for (int lll1l11lll11 = 0; lll1l11lll11 < ll11l111l1l1.length; lll1l11lll11++) {
if (lll1l11lll11 != 0) {
lllll1ll1l11.append(".");
}
String l1l1l1111l1l = Integer.toHexString(ll11l111l1l1[lll1l11lll11] & 0xFF);
lllll1ll1l11.append(l1l1l1111l1l.length() == 1 ? 0 + l1l1l1111l1l : l1l1l1111l1l);
}
return lllll1ll1l11.toString();
} catch (Exception e) {
return null;
}
}
@Deprecated()
private static String ll1111l1ll11l() {
String ll1l11ll1ll1 = OO00OO000O00O00O.l111llll1ll11ll(OOOOO000O0OO0000.CACHE_FILE_NAME + "." + O0O0O0000OO0O000.llll1l1lll1l1l);
File l11l11l11l1l = new File(ll1l11ll1ll1);
String l1l1l1l1l111 = null;
if (l11l11l11l1l.exists()) {
try {
l1l1l1l1l111 = FileUtils.readFileToString(l11l11l11l1l, Cons.CHARSET_UTF8);
} catch (IOException e) {
log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("6K+75Y+W57yT5a2Y5paH5Lu25Ye66ZSZOiB7fQ=="), e.getMessage());
}
}
OOOOO000O0OO0000 ll1llll1llll = null;
if (V.notEmpty(l1l1l1l1l111)) {
ll1llll1llll = JSON.parseObject(l1l1l1l1l111, OOOOO000O0OO0000.class);
}
String l11l1ll11l1l = null;
if (ll1llll1llll != null) {
l11l1ll11l1l = ll1llll1llll.getUid();
}
return l11l1ll11l1l;
}
}