世界上最好的语言是 C++呢还是 PHP 呢? http://cxx.party

2015-05-09 17:43:26 +08:00
 lwch
作为一个C++程序猿,我也来山寨了一把。。。http://cxx.party

网页托管在github pages,后端API在coding.net

代码在https://github.com/lwch/cxx或https://coding.net/u/lwch/p/cxx/git
4569 次点击
所在节点    分享创造
39 条回复
lwch
2015-05-09 23:47:04 +08:00
@xmbaozi 仔细看还真不一样
lincanbin
2015-05-09 23:53:46 +08:00
先刷了1000票PHP玩玩儿。
fullpowers
2015-05-10 00:39:51 +08:00
php
powergx
2015-05-10 01:11:55 +08:00
def kai_shua():
for i in range(0, 40):
threading.Thread(target=shua, args=(), name = 'shua'+str(i)).start()

def shua():
while True:
params = dict(callback='jQuery213007849645290471419_1431190938320',id='php',_=1431190938322)
r = requests.get('http://cxx.coding.io/api/commit.php', params=params)
print(r.text)

if __name__ == "__main__":
kai_shua()
powergx
2015-05-10 01:48:01 +08:00
找了几百个代理,应该会好些
def kai_shua():
file = io.open(file='proxy').read()
proxy_list = file.split('\n')

for i in range(0, 100):
proxy_lst = []
for j in range(0, 5):
index = i * 5 + j
if index < len(proxy_list):
proxy_lst.append(proxy_list[index])
threading.Thread(target=shua, args=(proxy_lst, ), name = 'shua'+str(i)).start()


def shua(proxy_l):
while True:
try:
for proxy in proxy_l:
p_values = proxy.split('\t')
proxyDict = dict(http='http://%s:%s'% (p_values[1],p_values[2]))

params = dict(callback='jQuery213007849645290471419_1431190938320',id='php',_=int(time.time()*1000))
r = requests.get('http://cxx.coding.io/api/commit.php', params=params, proxies=proxyDict)
print(r.text)
except:
pass
powergx
2015-05-10 10:41:31 +08:00
shell 已经超过php了
msg7086
2015-05-10 10:48:06 +08:00
@powergx 用python来刷php实在是太……
wusuopuBUPT
2015-05-10 12:31:15 +08:00
用python来刷php实在太。。。
powergx
2015-05-10 14:55:55 +08:00
@msg7086
@wusuopuBUPT 所以改刷shell了
lwch
2015-05-10 15:38:46 +08:00
你们这太狠了,挂了这么多代理在这刷。。
powergx
2015-05-10 15:46:31 +08:00
@lwch 对付机器人只有一个办法,神一般的验证码
lwch
2015-05-10 16:12:50 +08:00
@powergx 我现在已经限制了一个IP一小时只能投一次了,现在正在做按地区的统计报表
powergx
2015-05-10 16:14:19 +08:00
@lwch 哎没办法,我再去爬几千个代理服务器, 每次提交过后time.sleep(3605)
mingyun
2015-05-10 21:58:29 +08:00
必须php
lwch
2015-05-10 22:48:58 +08:00
又加了统计报表和统计图大家可以去看下

目前shell党领先。。。
yangqi
2015-05-11 00:21:04 +08:00
@powergx php现在又超过shell了
yangqi
2015-05-11 00:30:37 +08:00
$url = 'http://cxx.coding.io/api/commit.php?id=php';
while(1)
{
$random_ip = long2ip(rand(0, "4294967295"));

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-FORWARDED-FOR:{$random_ip}", "CLIENT-IP:{$random_ip}"));
curl_setopt($ch, CURLOPT_REFERER, "http://cxx.party/");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_exec($ch);
curl_close($ch);
}
lwch
2015-05-11 09:26:28 +08:00
@yangqi 你这随出来的为什么都是美国的IP地址
yangqi
2015-05-11 10:05:12 +08:00
@lwch 查了下美国ip数量在全球最多,占了35%

http://en.wikipedia.org/wiki/List_of_countries_by_IPv4_address_allocation

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/189760

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX