最近被小白惹毛了,教教大家作为程序员,别没事以讹传讹
360软件做的不错,但人品太次了点,每次谈到技术问题,要不就转移话题,要不就扣高帽,说你今天监控我的电脑,明天就怎么怎么的。不废话,上代码:
package net.iegames;import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;public class BanSupport extends JFrame {
private String keyWord;
private JLabel msg; public BanSupport(String keyWord) {
super("想禁谁,就可以禁谁");
this.setBounds(200, 200, 500, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
msg=new JLabel("所谓监控用户硬盘,只是个笑话.根本就是公开的API。360是SB ");
this.getContentPane().add(msg); this.keyWord = keyWord.toLowerCase();
this.check();
} public void check() {
Runtime runtime = Runtime.getRuntime();
Process process = null;
try {
process = runtime.exec("cmd /c Tasklist"); BufferedReader in = new BufferedReader(new InputStreamReader(
process.getInputStream()));
String s = "";
while ((s = in.readLine()) != null) {
s = s.toLowerCase();
if (s.startsWith(keyWord)) {
s = s.substring(0, s.indexOf(".exe") + 4);
JOptionPane.showMessageDialog(this, "您的系统中检测到"+s+",为了保障您的安全,本软件即将退出。请卸载后再使用本检测软件。");
System.exit(-1);
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
}package net.iegames;
public class Ban360 extends BanSupport {
public Ban360() {
super("360");//这里可以换成QQ
} public static void main(String[] args) {
Ban360 demo = new Ban360();
demo.setVisible(true);
}
}自己试试就知道了,WIN 7, VISTA检测通过。这就是360SB所谓的QQ监控用户电脑的说辞,是个程序员必须都会写。哥已经很久不用QQ了,欢迎大家使用多玩YY
360软件做的不错,但人品太次了点,每次谈到技术问题,要不就转移话题,要不就扣高帽,说你今天监控我的电脑,明天就怎么怎么的。不废话,上代码:
package net.iegames;import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;public class BanSupport extends JFrame {
private String keyWord;
private JLabel msg; public BanSupport(String keyWord) {
super("想禁谁,就可以禁谁");
this.setBounds(200, 200, 500, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
msg=new JLabel("所谓监控用户硬盘,只是个笑话.根本就是公开的API。360是SB ");
this.getContentPane().add(msg); this.keyWord = keyWord.toLowerCase();
this.check();
} public void check() {
Runtime runtime = Runtime.getRuntime();
Process process = null;
try {
process = runtime.exec("cmd /c Tasklist"); BufferedReader in = new BufferedReader(new InputStreamReader(
process.getInputStream()));
String s = "";
while ((s = in.readLine()) != null) {
s = s.toLowerCase();
if (s.startsWith(keyWord)) {
s = s.substring(0, s.indexOf(".exe") + 4);
JOptionPane.showMessageDialog(this, "您的系统中检测到"+s+",为了保障您的安全,本软件即将退出。请卸载后再使用本检测软件。");
System.exit(-1);
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
}package net.iegames;
public class Ban360 extends BanSupport {
public Ban360() {
super("360");//这里可以换成QQ
} public static void main(String[] args) {
Ban360 demo = new Ban360();
demo.setVisible(true);
}
}自己试试就知道了,WIN 7, VISTA检测通过。这就是360SB所谓的QQ监控用户电脑的说辞,是个程序员必须都会写。哥已经很久不用QQ了,欢迎大家使用多玩YY
解决方案 »
- java代码,求改写为C++,200分赠送
- Extjs4.0.7为什么运行一段时间后,IE就非常占内存了,是不是存在内存泄漏啊。在线等啊。。。。。。
- Haspmap排序取前100个
- 点击tomcat 5.5\bin下startup.bat一闪而过!求助为啥???
- 关于数据库备份!!!!
- java编写界面的问题
- 为什么得不到同步,运行一次就挂了。 不知哪里出问题了?
- 要同时更新200个数据库服务器的数据,该用什么方法更新数据呀????? (12字节,读1次)
- 春节将至,大家来抢分吧!
- foo.setName(request.getParameter("name")); foo为何东东!!
- 问一个弱弱的问题!
- 大家都来谈谈自己对面向对象的认识吧,高分送上,虚心学习!
lz的代码就是查找用户进程总的360.exe,提示用户
Tasklist就是用户程序进程列表
这个是亮点
package aa;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
public class BanSupport extends JFrame {
private String keyWord;
private JLabel msg;
public BanSupport(String keyWord) throws IOException {
super("想禁谁,就可以禁谁");
this.setBounds(200, 200, 500, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
msg=new JLabel("所谓监控用户硬盘,只是个笑话.根本就是公开的API。360是SB ");
this.getContentPane().add(msg);
this.keyWord = keyWord.toLowerCase();
this.check();
}
public void check() throws IOException {
Runtime runtime = Runtime.getRuntime();
Process process = null;
process = runtime.exec("cmd /c reg query HKEY_LOCAL_MACHINE\\SOFTWARE\\"+keyWord);
BufferedReader in = new BufferedReader(new InputStreamReader(
process.getInputStream()));
while (in.readLine() != null) {
JOptionPane.showMessageDialog(this, "您的系统中检测到"+keyWord+",为了保障您的安全,本软件即将退出。请卸载后再使用本检测软件。");
System.exit(-1);
}
}
}
package aa;
import java.io.IOException;
public class Ban360 extends BanSupport {
public Ban360() throws IOException {
super("360SD");//这里可以换成Tencent
}
public static void main(String[] args) throws IOException {
Ban360 demo = new Ban360();
demo.setVisible(true);
}
}
链接:http://blog.csdn.net/quanquanfly/archive/2010/11/04/5987829.aspx
UP如果TX用这样的方式去判断,那它就做不了山寨之父了。只拿到了程序镜像名称,连句柄都拿不到,怎么去分析360的活动?怎么敢说360对TX QQ做了什么?怎么去抄袭?起码的,TX去扫描过了WIN的注册表,这才是判断PC是否装了某种软件的方法。如果360还没运行起来,那TX不是要判断你没装360?
private String keyWord;
private JLabel msg; public BanSupport(String keyWord) {
super("想禁谁,就可以禁谁");
this.setBounds(200, 200, 500, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
msg=new JLabel("所谓监控用户硬盘,只是个笑话.根本就是公开的API。360是SB ");
this.getContentPane().add(msg); this.keyWord = keyWord.toLowerCase();
this.check();
} public void check() {
Runtime runtime = Runtime.getRuntime();
Process process = null;
try {
process = runtime.exec("cmd /c Tasklist |findstr "+keyWork);
BufferedReader in = new BufferedReader(new InputStreamReader(
process.getInputStream()));
//看看没有数据了·有数据就提示·没有就是安全的啦!
/*
String s = "";
while ((s = in.readLine()) != null) {
s = s.toLowerCase();
if (s.startsWith(keyWord)) {
s = s.substring(0, s.indexOf(".exe") + 4);
JOptionPane.showMessageDialog(this, "您的系统中检测到"+s+",为了保障您的安全,本软件即将退出。请卸载后再使用本检测软件。");
System.exit(-1);
}
}*/ } catch (IOException e) {
e.printStackTrace();
}
}
}