http://141.24.33.161:3355/cgi-bin/srrubycgi?script=%23%21+%2Fusr%2Flocal%2Fbin%2Fsrinterpreter%0D%0A%0D%0ADestination+%3D+%22134.79.18.188%22%0D%0AProbes+%3D+ARGV.length%3E1+%3F+ARGV%5B1%5D.to_i+%3A+10%0D%0AAvgIntervalSec+%3D+10.0%2FProbes.to_f%3B+%23+hmm%2C+didn%27t+get+this+right.%0D%0Axprobe+%3D+Scriptroute%3A%3AIcmp.new%2816%29+%0D%0Axprobe.ip_dst+%3D+Destination%0D%0A%0D%0Apackets+%3D+%0D%0A++Scriptroute%3A%3Asend_train%28+%28+1..Probes+%29.map+%7B+%7Crep%7C+++%0D%0A++++++++++++++++++++++++++++probe+%3D+Scriptroute%3A%3AIcmp.new%2816%29+%0D%0A++++++++++++++++++++++++++++probe.ip_dst+%3D+xprobe.ip_dst%0D%0A++++++++++++++++++++++++++++probe.icmp_type+%3D+Scriptroute%3A%3AIcmp%3A%3AICMP_ECHO%0D%0A++++++++++++++++++++++++++++probe.icmp_code+%3D+0%0D%0A++++++++++++++++++++++++++++probe.icmp_seq+%3D+rep%0D%0A++++++++++++++++++++++++++++Struct%3A%3ADelayedPacket.new%28+%28rep%3E1%29+%3F+-Math.log%28rand%29*AvgIntervalSec+%3A+0%2C+%0D%0A++++++++++++++++++++++++++++++++++++++++++++++++++++++probe+%29+%7D+%29%0D%0A%0D%0Apackets.each+%7B+%7Ctuple%7C%0D%0A++if%28+tuple.response+%29+then%0D%0A++++response+%3D+tuple.response.packet%0D%0A++++rtt+%3D+%28response%29+%3F+%28%28tuple.response.time+-+tuple.probe.time%29+*+1000.0%29+%3A+%27*%27%0D%0A++++if+tuple.response.packet.icmp_type+%21%3D+Scriptroute%3A%3AIcmp%3A%3AICMP_ECHOREPLY+then%0D%0A++++++puts+%22Received%3A+%22+%2B+tuple.response.packet.to_s%0D%0A++++else%0D%0A++++++puts+tuple.response.packet.ip_len.to_s+%2B+%27+bytes+from+%27+%2B%0D%0A++++++++tuple.response.packet.ip_src+%2B+%0D%0A++++++++%27%3A+icmp_seq%3D%27+%2B+tuple.probe.packet.icmp_seq.to_s+%2B+%0D%0A++++++++%27+ttl%3D%27+%2B+tuple.probe.packet.ip_ttl.to_s+%2B+%0D%0A++++++++%27+time%3D%255.3f+ms%27+%25+rtt%0D%0A++++end%0D%0A++else%0D%0A++++puts+%22To+%23%7Bxprobe.ip_dst%7D+timed+out%22%0D%0A++end%0D%0A%7D%0D%0A%0D%0A&credentials=251%3Bv1%3Bkalim%40slac%2Estanford%2Eedu%3B134%2E79%2F16%3B1256421401%3B%28s%20%2332FFDF5C5DCB7F8F8149EF12532E244548A3166D0DA478888B05ABE1CA654CE0%23%29
  • No labels