Skip to content

Instantly share code, notes, and snippets.

@weisi
weisi / dns_ttl.sh
Last active July 25, 2020 06:42
尝试利用 IP.TTL 确定 DNS 污染发生的位置
#!/bin/bash
# Weisi Dai <weisi@cmu.edu>
#
# Usage: bash dns_ttl.sh 8.8.8.8
#
# Dependencies: mtr dig iptables bc
DOMAIN=twitter.com
DNS=$1
@lizheming
lizheming / srun.php
Created October 25, 2012 15:44
Srun login and logout by php
<?php
/*
*Creat At 2012/10/25 23:29
*Author: Austin
*URL: http://imnerd.org
*Mail: i@imnerd.org
*Description: Srun Authorize Login & Logout By PHP
*/
//网关登陆:http://abc.com/srun.php?do=login
@lizheming
lizheming / srun.login.html
Created October 25, 2012 13:58
srun login by html form
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>Srun Login!</title>
<script type="text/javascript">
function submit() {
document.getElementById('submit').click();
}
</script>