This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| def eval_function(function, x_value) | |
| function.upcase! | |
| function.gsub!(/X/, "#{x_value}") | |
| return eval(function) | |
| end | |
| def riemann_sum(function, delta_x, lower_bound, upper_bound) | |
| areas = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'packetfu' | |
| dns_query = PacketFu::UDPPacket.new | |
| dns_query.ip_saddr = "10.0.2.15" # spoofed source address | |
| dns_query.ip_daddr = "8.8.4.4" # DNS server to query | |
| dns_query.udp_dst=53 | |
| dns_query.udp_src=rand(0xffff-1024) + 1024 |
NewerOlder