Skip to content

Instantly share code, notes, and snippets.

View ShuJun-Junical's full-sized avatar

纾浚 ShuJun-Junical

  • Yanshan University
  • Baoding, Hebei, China
  • 18:22 (UTC +08:00)
View GitHub Profile
@ShuJun-Junical
ShuJun-Junical / ysu-login.js
Created March 6, 2024 14:55
燕山大学统一认证逆向,使用默认导出函数传入用户名和密码即可拿到登录态的 cookie(字符串)
import fetch from 'node-fetch';
import { JSDOM } from 'jsdom';
import CryptoJS from 'crypto-js';
const captcha =
'https://cer.ysu.edu.cn/authserver/checkNeedCaptcha.htl?username=';
const url = 'https://cer.ysu.edu.cn/authserver/login';
const ua =
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36';
@ShuJun-Junical
ShuJun-Junical / backTop2.vue
Last active March 8, 2023 00:36
Vue组件:一键回顶。基于 Tailwind CSS
<template>
<Transition>
<button
class="h-16 w-16 shadow-xl rounded-full border-none btn-primary fixed bottom-10 right-10 z-50"
v-show="btnFlag"
@click="backTop"
>
<div>
<svg
t="1678205587482"
@ShuJun-Junical
ShuJun-Junical / backTop.vue
Created May 22, 2021 05:30
Vue 组件:一键回顶按钮
<template>
<v-fab-transition>
<v-btn
v-show="btnFlag"
color="pink"
dark
bottom
right
fab
fixed
@ShuJun-Junical
ShuJun-Junical / index.js
Last active July 8, 2021 12:50
云函数:通过JSDelivr代理访问静态站
const axios = require("axios");
exports.main_handler = async (event, context, callback) => {
const baseUrl = "https://cdn.jsdelivr.net/gh/HZ-Geek/hz-geek_blog@master/dist";
let path = event.path;
if (path.indexOf('.') != -1) {
return {
isBase64Encoded: false,
statusCode: 301,
headers: { 'Location': baseUrl + path },