推荐

定制开发

成功案例

个性化博客互动平台

pic
pic
pic
pic
pic
pic
pic

有好想法, 懒得实现? 请联系 👉

Contact Me

更多

最新

会计自动听课脚本

目的
  • 本脚本主要是辅助会计继续教育官网视频学习, 能够自动答题. 避免为凑足观看学时而一直值守观看的烦恼.
  • 脚本需要放在浏览器插件Tampermonkey中执行.
// ==UserScript==
// @name         answering
// @namespace    http://jxjyxuexi.chinaacc.com
// @version      0.1
// @description  try to take over the world!
// @author       lei
// @match        http://jxjyxuexi.chinaacc.com/CourseWare/*
// @grant        none
// ==/UserScript==

function answering() {
    // get correct answer!
    var ret = commit_user_select("");
    if (!ret || !ret.firstChild)
        return;
    var ans = ret.firstChild.innerHTML;
    var ajh = ans.indexOf('。');
    if (6<ans.length && ajh>5) {
        ans = ans.slice(5, ajh);
        if (ans === '错')
            ans = 'N';
        else if (ans === '对')
            ans = 'Y';
        // post our answer
        commit_user_select(ans);
    }
}
function commit_user_select(useranswervalue) {
    // parent node must exist!
    if (!document.getElementById('videoPointContent'))
        return null;
    // var useranswer = document.getElementsByName("useranswer");
    // var useranswervalue = "";
    // for (var i = 0; i < useranswer.length; i++) {
    //     if (useranswer[i].checked) {
    //         useranswervalue += useranswer[i].value;
    //     }
    // }
    //var pointTestUrl = "/CourseWare/1642430/9530/3434/video/PointTest";
    //var nowVideoID = "0101";
    var strUrl = pointTestUrl + "?rnd=" + Math.random();
    try {
        var xmlHttp = new XMLHttpRequest();
        var sdata = "testid=" + document.pointform.testid.value + "&useranswer=" + useranswervalue +
            "&pointnum=" + document.pointform.pointnum.value + "&forumid=" + document.pointform.forumid.value +
            "&questionid=" + document.pointform.questionid.value + "&pointtype=" + document.pointform.pointtype.value +
            "&newpointid=" + document.pointform.newpointid.value + "&videoid=" + nowVideoID;
        xmlHttp.open("Post", strUrl, false);
        xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
        xmlHttp.send(sdata);
        //xmlHttp.addEventListener();
        if (xmlHttp.status == 200) {
            var xmlDoc = xmlHttp.responseText;
            eval("var obj =" + xmlDoc);
            if (obj.Results == "1") {
                document.getElementById("videoPointBg").style.display = "none";
                document.getElementById("videoPoint").style.display = "none";
                setValidTime(obj.MaxPlayTime);
                playVideo();
            } else {
                document.getElementById("PointQuestionAnswer").innerHTML = obj.ReturnStr;
                return document.getElementById("PointQuestionAnswer");
            }
        }
        return null;
    } catch (e) {
        return null;
    }
}
(function() {
    setInterval(answering, 3000);
})();

更多

Nmap

https://nmap.org/download.html
https://github.com/nmap/nmap

nmap -iflist  # 网卡路由信息
nmap -sP/-sn 192.168.0.0/24  # sP:用ping扫描判断主机是否存活; -sn:只进行主机发现,不进行端口扫描
# -sS是指示半开放tcp扫描,不会进行三次握手,目标主机几乎不会把连接计入系统日志.且扫描速度快,需root权限(T:不需要)
nmap -sSV IP  # V:包含端口进程的版本信息 U:UDP端口 -p80,22:仅扫描80+22端口 也可以把这些ip放到文件中.
nmap -O -PN IP  # -O:操作系统识别(-PN:不用ping远程主机,避免因防火墙失败)
nmap -D <ip>,<ip> IP  # 增加Decoy诱饵ip,当然自己的ip也在其中
nmap -e eth0 IP -S <ip>  # 伪装ip去探测
proxychains nmap ...  # 匿名代理,隐藏ip

更多

Chrome

Extensions

Nimbus, SimpleRead, YouTube dual subtitles, Screenshot Youtube,

AdBlock, Vimium, Immersive translate, 沙拉查词, IE Tab, TamperMonkey,

更多

Finance

https://www.codeproject.com/Articles/553206/An-Introduction-to-Real-Time-Stock-Market-Data-Pro

terminology

  • 分比数据: Tick数据:某一时刻,比如10:32以8.32价格成交了100手.也属于快照!有时又被叫做成交明细,但该名字严重脑残,极不准确!!
  • 逐笔成交: level2专有数据,不一定是实时的.反应的是上面Tick数据的构成:其交易快照实际上由40+60手2笔构成!这是最根本的数据,实际上可以据此计算出其他开收高低…
  • 开盘价: 每个交易日9:15-9:25集合竞价阶段产生!如果此价格比上一交易日的收盘价高,就称作"“高开”.可类比"低开"!
  • 收盘价: 当天最后一分钟内所有交易的平均价.
  • 市价: 按交易市场当时的价格买进或卖出,或者按照现价来.通常在急于出手时使用,快速成交,无需指定价格
  • 限价: 用户限定一个价格,<=这个价格时才可能买入
  • 外盘: 场外基金想进来接盘,即全部的委托买入
  • 内盘: 场内想外逃的基金,即全部的委托卖出

ETF: 交易所交易的基金份额可变的一种开放式基金!始于2013年5月15日上交所.

更多

Architecture

在软件开发中有一句名言:过早优化是万恶之源!(Premature optimization is the root of all evil)

更多

Aircrack

wifi工具套装,如果有好的显卡如nVIDIA可以选择安装Pyrit以加速破解

更多

Cain

http://blog.csdn.net/nivana999/article/details/5272699

底层使用了wincap,该驱动只能使用有线网卡上使用.

更多

Hydra

https://github.com/nmap/ncrack
https://github.com/vanhauser-thc/thc-hydra
http://foofus.net/goons/jmk/tools/
http://www.libssh.org/

yum install -y freerdp freerdp-devel
# -e ns: 空密码试探+指定用户名密码试探
# -R: 继续上一次的进度
# -t: 同时运行的线程数,默认16
# -s: 指定端口
hydra -L user.txt -P pwd.txt -e ns -vV -f -o ssh.log IP ssh  # -f:当破解了一个密码就停止
hydra -L user.txt -P pwd.txt -vV IP rdp/smb/ftp
hydra -l admin -P pwd.txt -m /index.php IP https
hydra -l admin -P pwd.txt -vV -f xx https-get https://xx/
hydra -l admin -P pwd.txt -vV IP http-post-form "/login:id=^USER^&password=^PASS^:wrong username or password"

ncrack -U user.txt -P pass.txt ftp://xxxx
ncrack -vv -U default.user/windows.user -P default.pwd/windows.pwd xxx:3389 CL=1 -f

# -M  指定module,如 FTP,HTTP,MSSQL,MYSQL,PostgreSQL,IMAP,POP3,SNMP,SSH,Telnet,VNC..
# -h  指定目标(如router)地址, -H:可指定一个输入文件,里面指定多个目标
# -n  指定目标的端口,如果他们不是默认时
# -u  指定user,如admin, -U:可指定一个输入文件,里面指定多个用户名
# -p  指定password, -P:类比-U
# -f  或-F,找到密码后允许我们停止扫描
# -e  如 -e ns :验证时可以吧用户名当作密码,可以使用空密码
medusa -M http -h 192.168.0.1 -n 80 -u admin -P wordlist.txt -F

更多

hack

https://github.com/Hack-with-Github/Awesome-Hacking
https://github.com/gentilkiwi/mimikatz
https://hashcat.net/hashcat/
https://github.com/rapid7/metasploit-framework

WPS: WiFi Protected Setup:用来简化路由器的安全设置.使用PIN码来验证登陆.开启WPS功能的路由器

更多