Lucene search
K

BusyBox Ping Network Enumeration

🗓️ 28 Aug 2015 14:17:23Reported by Javier Vicente VallejoType 
metasploit
 metasploit
🔗 www.rapid7.com👁 40 Views

BusyBox Ping Network Enumeration. Ping IP addresses from BusyBox shell

Code
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Post
  include Msf::Post::File

  def initialize
    super(
      'Name' => 'BusyBox Ping Network Enumeration',
      'Description' => %q{
        This module will be applied on a session connected to a BusyBox shell. It will ping a range
        of IP addresses from the router or device executing BusyBox.
      },
      'Author' => 'Javier Vicente Vallejo',
      'License' => MSF_LICENSE,
      'Platform' => ['linux'],
      'SessionTypes' => ['shell']
    )

    register_options(
      [
        OptAddressRange.new('RANGE', [true, 'IP range to ping'])
      ]
    )
  end

  def run
    results = ''
    Rex::Socket::RangeWalker.new(datastore['RANGE']).each do |ip|
      vprint_status("Checking address #{ip}")
      results << cmd_exec("ping -c 1 #{ip}")
    end

    p = store_loot('busybox.enum.network', 'text/plain', session, results, 'ping_results.txt', 'BusyBox Device Network Range Enumeration')
    print_good("Results saved to #{p}.")
  end
end

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

08 Feb 2023 13:47Current
7.2High risk
Vulners AI Score7.2
40