English 中文(简体)
检测系统。 财产法
原标题:Detecting System.setProperty method invocations
最佳回答

System.setproperty>>. >.

你们可以创建自己的我的安全管理者,在时间部署。 您自己的安全管理者可以记录一些信息,如目前的分门槛值,即:

public class MySecurityManager extends SecurityManager
{

    public MySecurityManager()
    {
        super();
    }

    @Override
    public void checkPropertyAccess(String key)
    {
        if ("javax.xml.parsers.DocumentBuilderFactory".equals(key))
        {
            System.err.println("checkPropertyAccess(String :" + key + "): ");
            Thread.currentThread().dumpStack(); // or anything useful for
                                                // logging the context.
            new Throwable().printStackTrace(); // whatever, or use it with
            // PrintStream/PrintWriter, or some logging framework if configured.
        }
        super.checkPropertyAccess(key);
    }

    @Override
    public void checkPermission(Permission perm)
    {
        if (perm instanceof PropertyPermission)
        {
            PropertyPermission propPerm = (PropertyPermission) perm;
            System.err.println("checkPropertyAccess(String:" + propPerm.getName() + "):");
            Thread.currentThread().dumpStack(); // or anything useful for
                                                // logging the context.
            new Throwable().printStackTrace(); // whatever, or use it with
            // PrintStream/PrintWriter, or some logging framework if configured.
        }
        super.checkPermission(perm);
    }
}
问题回答

“UTF8-encodes”在班级档案格式中,而且由于没有理由认为违法的援引人正在使用密码来压缩财产名称,因此,我只想把所有JAR从班次中排入一个目录,并试图通过班级卷宗对“javax.xml.parsers.DocumentBuilderFactory”进行补习。 你们至少会找到所有含有这种强硬的阶层档案,希望不会有许多虚假的正面。

如果难以确定不正确执行中的类别名称,则可能更难以寻找。

只是开始以欺骗方式提出申请,将其与ec相连接,设置破碎点,并研究用电等级划分的等级:

我知道2个解决办法

  1. use aspect framework (aspectJ or so)
  2. Modify System class (add logging to setProperty() method) new Throwable().printStacktrace(); will report you where the method was called from.

现在,你可以选择<条码>-X舱/p<>/code>,并将你的版本系统分类。

-Xbootclasspath/p:<directories and zip/jar files separated by ;> prepend in front of bootstrap class path

我倾向于第二种解决办法,因为它非常简单。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签