View Issue Details

IDProjectCategoryView StatusLast Update
0003294Kali LinuxNew Tool Requestspublic2020-02-10 13:49
Reporterprafull agarwal Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionwon't fix 
Summary0003294: netpraf - Tool to identify network ranges allocated to an organization
Description

During course of my external penetration testing assignment I was required to determine the foot print of the organization. This should be an exhaustive search so as to ensure complete coverage. I utilized almost every tool that is pre-installed in Kali environment, including discovery script available at github. But couldn't locate a tool that can match my requirement. So finally a wrote a tool that fulfils this requirement.

Steps To Reproduce
  1. Place the netpraf script in a folder.
  2. Assign executable permission to this file.
  3. Execute the script at the command prompt.
  4. The script will prompt for the name of organization for which network range is required.
  5. The result will be stored in file name output in the same folder as created in step 1.
Attached Files
Netpraf (861 bytes)   
#!/bin/bash
###############################################################################################################################################
#This tool provide network range that is allocated to an organization. The result is stored in output file that gets created in the same folder.
###############################################################################################################################################

echo Please input organization name
read organization
curl -k https://www.ultratools.com/tools/asnInfoResult?domainName=$organization | grep -Eo "(AS)([0-9][0-9][0-9][0-9][0-9])" > result

filename=result
declare -a myarray
myarray=( `cat "$filename"`)

for ((i=0;i< ${#myarray[@]};i++))
do
echo ${myarray[$i]}
whois -h whois.radb.net -- -i origin ${myarray[$i]} | grep -Eo "([0-9.]+){4}/[0-9]+" >> output
done




Netpraf (861 bytes)   

Activities

g0tmi1k

g0tmi1k

2018-01-29 15:05

administrator   ~0008433

To help speed up the process of evaluating the tool, please make sure to include the following information (the more information you include, the more beneficial it will for us):

  • [Name] - The name of the tool
  • [Version] - What version of the tool should be added?
    --- If it uses source control (such as git), please make sure there is a release to match (e.g. git tag)
  • [Homepage] - Where can the tool be found online? Where to go to get more information?
  • [Download] - Where to go to get the tool?
  • [Author] - Who made the tool?
  • [Licence] - How is the software distributed? What conditions does it come with?
  • [Description] - What is the tool about? What does it do?
  • [Dependencies] - What is needed for the tool to work?
  • [Similar tools] - What other tools are out there?
  • [How to install] - How do you compile it?
  • [How to use] - What are some basic commands/functions to demonstrate it?
g0tmi1k

g0tmi1k

2020-02-10 13:49

administrator   ~0012067

#####################################################
#This tool provide network range that is allocated to an organization. The result is stored in output file that gets created in the same folder.
###############################################################################################################################################

echo Please input organization name
read organization
curl -k https://www.ultratools.com/tools/asnInfoResult?domainName=$organization | grep -Eo &quot;(AS)([0-9][0-9][0-9][0-9][0-9])&quot; > result

filename=result
declare -a myarray
myarray=( `cat &quot;$filename&quot;`)

for ((i=0;i&lt; ${#myarray[@]};i++))
do
echo ${myarray[$i]}
whois -h whois.radb.net -- -i origin ${myarray[$i]} | grep -Eo &quot;([0-9.]+){4}/[0-9]+&quot; >> output
done

As it requires online services, we can't add this.

Issue History

Date Modified Username Field Change
2016-05-15 15:23 prafull agarwal New Issue
2016-05-15 15:23 prafull agarwal File Added: Netpraf
2018-01-26 11:51 g0tmi1k Summary Tool to identify network ranges allocated to an organization => netpraf - Tool to identify network ranges allocated to an organization
2018-01-29 15:05 g0tmi1k Note Added: 0008433
2019-12-10 11:57 g0tmi1k View Status private => public
2020-02-10 13:49 g0tmi1k Note Added: 0012067
2020-02-10 13:49 g0tmi1k Status new => closed
2020-02-10 13:49 g0tmi1k Resolution open => won't fix