为什么我编译这段java代码后360提示是木马
importjava.io.*;publicclassTestPrintStream1{publicstaticvoidmain(String[]args){PrintS...
import java.io.*;
public class TestPrintStream1{
public static void main(String[] args){
PrintStream ps = null;
try{ FileOutputStream fos = new FileOutputStream("e:\\java\\log.bat");
ps = new PrintStream(fos);}
catch(IOException e){
e.printStackTrace();
}
if(ps != null){
System.setOut(ps);
}
int ln = 0;
for(char c = 0;c <= 60000;c++){
System.out.print(c+" ");
if(ln++ >= 100){System.out.println();ln = 0;}
}
}
}
编译后我想打开e:\\java\\log.bat 里的 log.bat文件,结果提示是木马打不开 展开
public class TestPrintStream1{
public static void main(String[] args){
PrintStream ps = null;
try{ FileOutputStream fos = new FileOutputStream("e:\\java\\log.bat");
ps = new PrintStream(fos);}
catch(IOException e){
e.printStackTrace();
}
if(ps != null){
System.setOut(ps);
}
int ln = 0;
for(char c = 0;c <= 60000;c++){
System.out.print(c+" ");
if(ln++ >= 100){System.out.println();ln = 0;}
}
}
}
编译后我想打开e:\\java\\log.bat 里的 log.bat文件,结果提示是木马打不开 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询