399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
|
# File 'lib/rhack/clients/examples.rb', line 399
def letitbit(path, &block)
link = ''
frame = Frame 'letitbit.net', {:cp => true, :eval => nil}, 1
frame.run(path, :wait => !block) {|page1|
page1.submit('#ifree_form', frame) {|page2|
page2.submit('[action=/download4.php]', frame) {|page3|
page3.submit('[action=/download3.php]', frame) {|page4|
t = Thread.new {
sleep 60
frame.run({}, '/ajax/download3.php',
:headers => {"Referer" => "http://letitbit.net/download3.php"}
) {|res|
link << res.html
block[link] if block
}
}
t.join if !block
}}}}
link
end
|