惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google DeepMind News
Google DeepMind News
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
V2EX - 技术
V2EX - 技术
Webroot Blog
Webroot Blog
Google Online Security Blog
Google Online Security Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
AI
AI
N
News and Events Feed by Topic
S
Secure Thoughts
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Cloudflare Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tailwind CSS Blog
Vercel News
Vercel News
V
Vulnerabilities – Threatpost
Spread Privacy
Spread Privacy
Know Your Adversary
Know Your Adversary
人人都是产品经理
人人都是产品经理
I
Intezer
Schneier on Security
Schneier on Security
Martin Fowler
Martin Fowler
J
Java Code Geeks
K
Kaspersky official blog
H
Heimdal Security Blog
O
OpenAI News
I
InfoQ
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
云风的 BLOG
云风的 BLOG
Hacker News - Newest:
Hacker News - Newest: "LLM"
Blog — PlanetScale
Blog — PlanetScale
S
Schneier on Security
S
Security @ Cisco Blogs
Security Latest
Security Latest
PCI Perspectives
PCI Perspectives
H
Hacker News: Front Page
C
CERT Recently Published Vulnerability Notes
博客园_首页
The Last Watchdog
The Last Watchdog
罗磊的独立博客
L
LINUX DO - 热门话题
U
Unit 42
月光博客
月光博客
Security Archives - TechRepublic
Security Archives - TechRepublic
Scott Helme
Scott Helme

龙辉's Blog - 工具

对学某通的登录逆向分析 - 龙辉's Blog 天方云签程序开源 - 龙辉's Blog 蓝桥杯省赛Web题解及知识点复习 - 龙辉's Blog CTFSHOW-菜狗杯(部分WP) - 龙辉's Blog 记录一次入侵某钓鱼盗号网站的过程 - 龙辉's Blog 简单实现每日健康自动打卡 - 龙辉's Blog 弱类型与强类型语言“=”号的不同以及引发的安全问题 - 龙辉's Blog php获取客户端ip以及ip伪造 - 龙辉's Blog XSS经典漏洞复现-手撕某非法获取个人信息网站 - 龙辉's Blog php7.2中each()函数被弃用的替换办法 - 龙辉's Blog PC-安卓歪屁嗯(科学上网) - 龙辉's Blog
贵州师范大学抢课脚本-正方教务系统V8.0.0 - 龙辉's Blog
博主: Tinker-站长 · 2023-02-24 · via 龙辉's Blog - 工具
  • 发布时间:
  • 15255 次浏览
  • 8 条评论
  • 112字数
  • 分类: php
  1. 首页
  2. 正文  
  3. 分享到:

起晚了又或者说是系统进不去,那就只能去吃残羹冷炙了...

此脚本主要是针对别人帮忙选课,然后准备退课给别人的时候,从别人手上抢过来.仅供交流学习,请勿用于非法用途,不保证抢课成功,具体情以实际为主

直接贴代码

<?php
//authorqq 1790716272
ignore_user_abort(true);//防止超时
set_time_limit(0);
if(!file_exists('./info.bat')){
    //从黑框框控制台输入
    if(php_sapi_name() === 'cli'){
    echo '请输入ck:';
    fscanf(STDIN,"%s",$ck);
    echo '请输入课程信息:';
    fscanf(STDIN,"%s",$course);
}else{
    //浏览器get方式输入
    $course = trim($_GET['course']);
     $ck = trim($_GET['ck']);

}
file_put_contents('./info.bat',$ck."\n".$course);
}else{
    $info = file_get_contents('./info.bat');
  list($ck,$course) =  explode("\n",$info);
    
}



$header[] = 'accept: application/json, text/javascript, */*; q=0.01';
$header[] = 'accept-encoding: gzip, deflate, br';
$header[] = $ck;
$header[] = 'content-type: application/x-www-form-urlencoded;charset=UTF-8';
$header[] = 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36';
$result = xCurl('https://jwgl.gznu.edu.cn/jwglxt/xsxk/zzxkyzbjk_xkBcZyZzxkYzb.html',null,$course,$header);


if(!$result)
exit("登录失败或对方服务器超时\n可以把超时时间设置久一点\n");

if(json_decode($result)->flag==-1)
    echo '抢课失败';
else
  echo '抢课成功';



echo "\n";

function xCurl($url,$cookie=null,$postdata=null,$header=array()){
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL,$url);
        if (!is_null($postdata)) curl_setopt($ch, CURLOPT_POSTFIELDS,$postdata);
        if (!is_null($cookie)) curl_setopt($ch, CURLOPT_COOKIE,$cookie);
        curl_setopt($ch, CURLOPT_FAILONERROR, true);
       curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
        curl_setopt($ch, CURLOPT_ENCODING, "gzip");
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);//绕过证书
        curl_setopt($ch, CURLOPT_TIMEOUT, 10);//超时设置
        $re = curl_exec($ch);
        curl_close($ch);
        return $re;
    }

效果图:
${`U8BJVTY)F}3[XAVEYG16.png
LV{U(H%9VTXMFXW(C2KMJ`5.png

使用方法就不再赘述.
获取课程和ck方法:在点击抢课按钮之前按F12打开控制台,点击抢课按钮之后,再点击network,headers查看,往下翻
info
再点击payload,view sourse ,下面那串就是课程信息

我自己是一分钟扫描一次_AKRBWU0T%%27I097MP(Z)U.png


版权属于:龙辉博客

本文链接:https://blog.eirds.cn/435.html

如果没有特别声明则为本博原创。转载时须注明出处及本声明!

赞赏作者

如果觉得我的文章对你有用,请随意赞赏

贵州师范大学抢课脚本-正方教务系统V8.0.0