?ץȤǤ?Ȥ餳ʴǤޤǤ礦͡
require 'net/http'
targetid = '?ID(?)'
longpass = 'Beǧѥ?'
email = 'BeϿ?ɥ?'
path = '/test/givep.php'
data = "message=&i=#{targetid}&d=&submit=%C1%F7%C9%D5"
header = {
'Host' => 'be.2ch.net',
'Referer' => "
http://be.2ch.net/test/givep.php?i=#{targetid}&d",
'Cookie' => "LEVEL&=%23%23%23; MDMD=#{longpass}; DMDM=#{email}",
'Cookie2' => '$Version=1',
'Connection' => 'Keep-Alive, TE',
'TE' => 'deflate, gzip, chunked, identity, trailers',
'Content-Type' => 'application/x-www-form-urlencoded',
'Content-Length' => '42',
}
3.times {|i|
puts i
Net::HTTP.start('be.2ch.net', 80, nil, nil) {|http|
responce, body = http.post(path, data, header)
}
sleep 15
}