跳转到帖子

游客您好,欢迎来到黑客世界论坛!您可以在这里进行注册。

赤队小组-代号1949(原CHT攻防小组)在这个瞬息万变的网络时代,我们保持初心,创造最好的社区来共同交流网络技术。您可以在论坛获取黑客攻防技巧与知识,您也可以加入我们的Telegram交流群 共同实时探讨交流。论坛禁止各种广告,请注册用户查看我们的使用与隐私策略,谢谢您的配合。小组成员可以获取论坛隐藏内容!

TheHackerWorld官方

精选回复

发布于

直接上菜

1.浏览器打开 ,登录京东

2.选择要抢购的商品

3.按键盘F12,打开开发者模式,选择Console选项卡

4.把以下代码粘贴在Console里面,修改代码里开始抢购时间(有二处时间)

var nIntervId;
var count = 1;
var goDate;
function go() {
    console.log("正在帮你抢购 * 刷新" + count + "次");
    //console.log("host:" + window.location.hostname);
    count++;   
    if (Date.now() >= new Date("2020-12-11 23:59:59")) {
        console.log("开始抢购" + Date.now());

        // 抢购
        if ($(parent.frames[0].document).find("#choose-btn-ko").length == 1) {
            console.log("++++++++++++抢购");
            var sku = window.location.pathname.replace(/[^0-9]/ig, "");
            var ref = "//cart.jd.com/gate.action?pid=" + sku + "&pcount=1&ptype=1";
            console.log("https:" + ref);
            //5089237
            $(parent.frames[0].document).find("#choose-btn-ko").attr("href", ref);//                 
            parent.frames[0].document.getElementById("choose-btn-ko").click();
            return;
        }

        //预约抢购
        if ($(parent.frames[0].document).find("#btn-reservation").length == 1) {
            console.log("++++++++++++正在预约抢购");

            parent.frames[0].document.getElementById("btn-reservation").click();
            return;
        }

        //加入购物车 
        if ($(parent.frames[0].document).find("#InitCartUrl").length == 1) {
            console.log("++++++++++++加入购物车");
            parent.frames[0].document.getElementById("InitCartUrl").click();
            return;
        }

        //去购物车结算
        if ($(parent.frames[0].document).find("#GotoShoppingCart").length == 1) {
            console.log("++++++++++++正在去购物车结算");
            parent.frames[0].document.getElementById("GotoShoppingCart").click();
        }

        //去结算        
        if ($(parent.frames[0].document).find(".common-submit-btn").length == 1) {
            console.log("++++++++++++正在去结算");

            //只提交我抢购的商品
            //var sku = window.location.pathname.replace(/[^0-9]/ig, "");                 

            //$("#toggle-checkboxes_up").trigger("click");
            //全不选择
            //parent.frames[0].document.getElementById("toggle-checkboxes_up").click();

            //$(parent.frames[0].document).find(input:checkbox).attr("checked",false);
            //$(parent.frames[0].document).find("input:checkbox[value^="+sku+"]").trigger("click");

            //$(parent.frames[0].document).find("input:checkbox[value^="+sku+"]").attr("checked",true);

            parent.frames[0].document.getElementsByClassName("common-submit-btn")[0].click();
        }
        //提交订单order-submit
        if ($(parent.frames[0].document).find("#order-submit").length == 1) {
            console.log("(++++++++++++正在提交订单");
            //$(parent.frames[0].document).find(".payment-item item-selected online-payment")

            //在线支付
            parent.frames[0].document.getElementById("order-submit").click();
        }
    }
}
function rewrite(current) {
    fr4me = <frameset cols=*>
<frame src= + current + />;
    fr4me += </frameset>;
    with (document) { write(fr4me); void (close()) };
}


//注入sql
rewrite(window.location.href);

//这里需要注意的是,prompt有两个参数,前面是提示的话,后面是当对话框出来后,在对话框里的默认值
var d = prompt("请输入抢购开始时间", "2020-12-11 23:59:59");
//如果返回的有内容
if (d) {
    try {
        goDate = new Date(d);
        console.log("设定时间成功:" + goDate);

        alert("监控期间,请保持标签页在最前面");
        //go(); 0.25秒执行一次
        nIntervId = setInterval("go()", 250);
    }
    catch (e) {
        alert("时间格式不正确,请使用yyyy-MM-dd hh:mm:ss格式,精确到秒, 请重试");
    }
}
else {
    alert("请抢购时间, 请重重试");

}


/*
    clearInterval(nIntervId);//停止监控
    */

部分人,添加进购物车会空

你们可以看看这块代码,

//去购物车结算
if ($(parent.frames[0].document).find("#GotoShoppingCart").length == 1) {
    console.log("(++++++++++++正在去购物车结算");
    parent.frames[0].document.getElementById("GotoShoppingCart").click();
}

5.键盘按回车键,确认时间,执行抢购

6.代码执行抢购

7.抢购完成,付款

 腾讯云

阿里云618

1核2G|1M|40G盘 79元/年(可续费) 2核2G|5M|40G盘 99元/年(可续费) 2核4G|10M|100G盘 263元/年

创建帐户或登录后发表意见

最近浏览 0

  • 没有会员查看此页面。