zoukankan      html  css  js  c++  java
  • PMP考位抢夺攻略(二)

    为什么会有第二篇文章呢,因为北京周边的考点太难抢了,都不是页面样式能不能展示的问题了!!!

    如何在网页完全打不开的情况下报考PMP?

    首先,自动登录。

    打开浏览器,输入网址http://exam.chinapmp.cn/login.shtml ,按回车。

    不管页面报不报错,在控制台输入以下代码。即可自动登录。

    function appScripts(cb) {
        let _src = scriptArr.shift();
        if (_src) {
            let s = document.createElement('script');
            s.onload = () => {
                console.log(`add script done ==> ${_src}`);
                appScripts(cb);
            };
            s.src = _src;
            document.body.appendChild(s);
        } else {
            cb();
        }
    }
    
    function tryLogin(uName, uPass) {
        SHOW.Ajax.Exam.Login.Save(0, uName, uPass, res => {
            if (!res.error) {
                console.log(res);
                alert('登录成功, 进入下一步');
                window.location.href = 'http://user.chinapmp.cn/examsign;info.shtml';
            } else {
                console.log(`登录失败, 再次尝试 AT::${Date.now()}`);
                tryLogin(uName, uPass);
            }
        });
    }
    
    let scriptArr = [
        'http://card.mugeda.com/js/other/jquery.js',
        'http://card.mugeda.com/js/other/jcomm.js',
        'http://card.mugeda.com/js/other/4BD0ABA8E39F14797B0A73A80C2F1DBE.js',
        'http://card.mugeda.com/js/other/SHOW.Ajax.Exam.Login.js'
    ];
    
    appScripts(() => {
        tryLogin('登录账户', '登录密码');
    });

    下图为在网页500的情况下,登录成功。

    然后再开一个网页 http://user.chinapmp.cn/examsign;sign.shtml ,注入一些必要的js文件。

    方法还是一样,在控制台输入以下代码,按回车。

    function appScripts(cb) {
        let _src = scriptArr.shift();
        if (_src) {
            let s = document.createElement('script');
            s.onload = () => {
                console.log(`add script done ==> ${_src}`);
                appScripts(cb);
            };
            s.src = _src;
            document.body.appendChild(s);
        } else {
            cb();
        }
    }
    
    let scriptArr = [
        'http://card.mugeda.com/js/other/jquery.js',
        'http://card.mugeda.com/js/other/juimin.js',
        'http://card.mugeda.com/js/other/jcomm.js',
        'http://card.mugeda.com/js/other/61026A313A3252DDCCB247023B60CDAF.js',
        'http://card.mugeda.com/js/other/examsign.js',
        'http://card.mugeda.com/js/other/examsignedit.js',
        'http://card.mugeda.com/js/other/jvalidation.js',
        'http://oss.aiyawoc.com/js/pmp/EXAM20210413.js', //考试信息
        'http://card.mugeda.com/js/other/SHOW.Ajax.User.Examsign.sign.js'
    ];
    
    appScripts(() => {
        console.log('全部注入完成');
    });

    下图为注入成功的界面

    最后一步,输入自己的信息,等待报名成功。

    let signInfo = {
        Ed: '10000044',
        Etitle: ' 2021年6月20日项目管理资格认证考试',
        Stype: '101',
        StypeName: '项目管理师(PMP®)',
        Xing: '?', //你的姓拼音
        Zhong: '',
        Ming: '?', //你的名字拼音
        Peixunjigou: '515',
        Peixunjigouming: '北京光环致成国际管理咨询股份有限公司',
        PMIUname: '?', //PMI账号
        PMIUpass: '?', //PMI密码
        IsPMIUser: false,
        PMINumber: '',
        PMIUtimeB: '',
        PMIUtimeE: '',
        PMItimeB: new Date(1618156800000), //pmi有效期起始时间,用时间戳转换工具
        PMItimeE: new Date(1649692800000), //pmi有效期截止时间,用时间戳转换工具
        Kaodian: '64', //考点id,待获取
        Kaodianming: '廊坊管院', //考点名,待确认
        PMIID: ' ?', //PMI ID,在PMI英文网站上报考完毕可获取
    }
    
    function trySign(u) {
        SHOW.Ajax.User.Examsign.Sign(
            u.Ed,
            u.Etitle,
            u.Stype,
            u.StypeName,
            u.Xing,
            u.Zhong,
            u.Ming,
            u.Peixunjigou,
            u.Peixunjigouming,
            u.PMIUname,
            u.PMIUpass,
            u.IsPMIUser,
            u.PMINumber,
            u.PMIUtimeB,
            u.PMIUtimeE,
            u.PMItimeB,
            u.PMItimeE,
            u.Kaodian,
            u.Kaodianming,
            u.PMIID,
            res => {
                if (res.value != null) {
                    alert("您已报名成功,此次考试您应缴纳的费用为" + res.value + ",您的材料会在3天之内审核,请耐心等待!", "报名提示:", function () {
                        window.location.href = "myexam" + SHOW.Config.Ext;
                    });
                } else {
                    console.log(`报名失败!AT::${Date.now()}, 重试中...`);
                    trySign(u);
                }
            });
    }
    
    trySign(signInfo);

    注意时间转换工具要选择毫秒 https://tool.lu/timestamp/ 

     

    在网页完全打不开的情况下,报考成功了!!!!!

    总结,不会抢火车票的程序员不是好的项目经理!

  • 相关阅读:
    Nginx 部署多个 web 项目(虚拟主机)
    Nginx 配置文件
    Linux 安装 nginx
    Linux 安装 tomcat
    Linux 安装 Mysql 5.7.23
    Linux 安装 jdk8
    Linux 安装 lrzsz,使用 rz、sz 上传下载文件
    springMVC 拦截器
    spring 事务
    基于Aspectj 注解实现 spring AOP
  • 原文地址:https://www.cnblogs.com/milkmap/p/14658593.html
Copyright © 2011-2022 走看看