All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.diboot.devtools.v2.OO00000O0O00O000 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.util.V; import lombok.extern.slf4j.Slf4j; import org.apache.commons.io.FileUtils; import org.springframework.util.DigestUtils; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.net.URL; import java.nio.charset.Charset; import java.util.Enumeration; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; @Slf4j @Deprecated() public class OO00000O0O00O000 { @Deprecated() public static boolean ll1l11111111lll() { return O0OO00OO00OO0O0O.l1ll111111ll1l1(); } @Deprecated() public static boolean l1ll11111lll111(OOO0O000000OOO00 l11l1lll1ll1) { try { File l111llll111l = ll111lll1l1l1(); if (l111llll111l != null) { boolean l11llllll11l = true; if (l111llll111l.exists()) { String llll11lll11l = O0OO00OO00OO0O0O.l11111ll1l1lll1(); String l1llll1l1ll1 = l1lll1l1111ll(l111llll111l); l11llllll11l = V.isEmpty(llll11lll11l) || !llll11lll11l.equalsIgnoreCase(l1llll1l1ll1); } if (l11llllll11l) { lll1111l1ll11(OO0OO0000OO000O0.llll1l11l11l11l() + "/" + O0O0O0000OO0O000.llll1l1lll1l1l + OOO0OO00O00O00OO.l11llll1ll11ll1("L2Rpc3Quemlw"), OO00OO000O00O00O.l111llll1ll11ll(null), l111llll111l); } if (!l111llll111l.exists()) { log.warn(OOO0OO00O00O00OO.l11llll1ll11ll1("5Yid5aeL5YyWZGV2dG9vbHMgVUkg5byC5bi477yM6K+356iN5ZCO5bCd6K+V6YeN5paw5ZCv5Yqo77yB")); return false; } l11l1ll1111111l(l111llll111l.getAbsolutePath()); return true; } else { log.warn(OOO0OO00O00O00OO.l11llll1ll11ll1("5qOA5rWL6L+Q6KGM5pe2546v5aKD5byC5bi477yM5peg5rOV6K+G5Yir55uu5qCH6Lev5b6E77yB")); } } catch (Exception e) { log.warn(OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+WZGV2dG9vbHPotYTmupDmlofku7blvILluLg6IHt9"), e.getMessage()); } return false; } @Deprecated() public static void l1111ll1l1111ll() { try { String l111l11111ll = l1llll1l1l11l(); if (V.isEmpty(l111l11111ll)) { return; } File ll11ll1lll11 = new File(l111l11111ll); if (ll11ll1lll11 != null && ll11ll1lll11.exists()) { FileUtils.forceDelete(ll11ll1lll11); } } catch (Exception e) { } } @Deprecated() private static File ll111lll1l1l1() { String ll1l1ll111l1 = OO00OO000O00O00O.l111llll1ll11ll("v" + O0O0O0000OO0O000.llll1l1lll1l1l + OOO0OO00O00O00OO.l11llll1ll11ll1("LnppcA==")); return new File(ll1l1ll111l1); } @Deprecated() private static String l1llll1l1l11l() { String l11lllllllll = OOO0O00O00O0OO0O.ll1l1l1111l1lll(); return l11lllllllll + OOO0OO00O00O00OO.l11llll1ll11ll1("c3RhdGlj") + File.separator + OOO0OO00O00O00OO.l11llll1ll11ll1("ZGlib290") + File.separator; } @Deprecated() private static void lll1111l1ll11(String ll1ll111ll11, String ll11llll1l1l, File l111l1l11l1l) { try { URL l1111111ll1l = new URL(ll1ll111ll11); File lll1l111111l = new File(ll11llll1l1l); if (!lll1l111111l.exists()) { FileUtils.forceMkdir(lll1l111111l); } if (l111l1l11l1l.exists()) { FileUtils.forceDelete(l111l1l11l1l); } FileUtils.copyURLToFile(l1111111ll1l, l111l1l11l1l); } catch (Exception e) { log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("5Yqg6L296LWE5rqQ5paH5Lu25byC5bi4OiB7fQ=="), e.getMessage()); } } @Deprecated() public static void l11l1ll1111111l(String l1l1l1l1l111) { String llllll1ll1l1 = l1llll1l1l11l(); try (ZipFile l111ll111l11 = new ZipFile(l1l1l1l1l111, Charset.forName(OOO0OO00O00O00OO.l11llll1ll11ll1("VVRGLTg=")))) { for (Enumeration l1ll11111111 = l111ll111l11.entries(); l1ll11111111.hasMoreElements(); ) { ZipEntry lll1l1l1l111 = l1ll11111111.nextElement(); File l111l1111l1l = new File(llllll1ll1l1 + lll1l1l1l111.getName()); if (lll1l1l1l111.isDirectory()) { FileUtils.forceMkdir(l111l1111l1l); continue; } InputStream ll1111ll1111 = l111ll111l11.getInputStream(lll1l1l1l111); FileUtils.copyInputStreamToFile(ll1111ll1111, l111l1111l1l); } } catch (Exception e) { log.warn(OOO0OO00O00O00OO.l11llll1ll11ll1("5Yid5aeL5YyW6LWE5rqQ5paH5Lu25byC5bi4OiB7fQ=="), e.getMessage()); } } @Deprecated() private static String l1lll1l1111ll(File lll1l1ll111l) { try (FileInputStream ll11111l1l1l = new FileInputStream(lll1l1ll111l)) { return DigestUtils.md5DigestAsHex(ll11111l1l1l); } catch (Exception e) { return ""; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy