Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Security

    Rubyforger 0.03

    Download button

    No screenshots available
    Downloads: 914  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.3/5)
    19 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Rubyforger Team | More programs
    GPL / FREE
    September 14th, 2006, 17:35 GMT
    ROOT / Security

     Read user reviews (0)  Refer to a friend  Subscribe

    Rubyforger description

    Rubyforger is a raw packet manipulation tool.

    Rubyforger is a raw packet manipulation tool. Rubyforger allows you to easily send, receive, and modify Ethernet, ARP, IP, TCP, UDP, and ICMP packets.

    Creating and modifying packets is easily done by adding layers and changing their parameters.

    Visualforge is a GUI packet crafter based on Rubyforger create, send, and receive packets and export the Ruby code in just a few clicks.

    Rubyforger currently understands those protocols :

    * Ethernet
    * Arp
    * IP
    * UDP
    * TCP
    * ICMP

    Rubyforger works assembling packets at different layers. For example, to ping a machine, you will assemble an IP packet and an ICMP packet. You can also choose to craft the layer 2 packet yourself, in that case you will assemble an Ethernet, an IP and an ICMP packet. If you wish to attach a payload to your packet, just add a string to it.

    The packets support several operations :

    * + : this is the "add" operation, used to assemble packets
    example : p = IpPkt.new("dst"=>$DST)+IcmpPkt.new

    * head! : returns the packet without its upperlayer

    * queue! : returns the packet without its underlayer

    * getlayer(l) : returns the packet corresponding to layer l. l can be
    a number or a name, such as "Tcp"

    * to_s : returns a string describing the values of the packet's fields

    * print : prints the description of the packets's fields

    * to_code : returns the Ruby code corresponding to the packet

    * send : sends the packet over the network.

    * sr : sends the packet and returns the replies

    * dup : the usual Ruby dup function, that duplicates an object

    HOW TO USE IT ?

    Use the init function in order to set up the correct interface.

    Then, just use rubyforger.rb in your own ruby script by doing :

    require 'rubyforger.rb'

    EXAMPLES:

    First a simple ping :

    require 'rubyforger.rb'
    $DST = gethostbyname("host")
    p = IpPkt.new("dst"=>$DST)+IcmpPkt.new
    a = p.sr
    puts "PONG" if (a.getlayer("Icmp").code == $ICMP_ECHOREPLY)

    Now a port scanner :

    p = IpPkt.new("dst"=>$DST)+TcpPkt.new
    79.upto(82) do |i| # scan range 79-82
    p.getlayer("Tcp").dport = i
    a = p.sr
    if a.getlayer("Tcp").flags == ($TCP_SYN|$TCP_ACK)
    puts "port #{i} open"
    else
    puts "port #{i} closed"
    end
    end

    Requirements:

    · Ruby
    · Ruby Pcap

    What's New in This Release:

    · The GUI was rewritten.



    Product's homepage

      


    TAGS:

    raw packet | packet manipulation | ICMP packets | Rubyforger | raw | packet

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM