View Issue Details

IDProjectCategoryView StatusLast Update
0003299Kali LinuxNew Tool Requestspublic2016-07-05 16:53
Reporterprafull agarwal Assigned Todookie  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Summary0003299: 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

dookie

dookie

2016-07-05 16:53

reporter   ~0005452

Duplicate of 0003294.

Issue History

Date Modified Username Field Change
2016-05-19 03:13 prafull agarwal New Issue
2016-05-19 03:13 prafull agarwal File Added: Netpraf
2016-07-05 16:53 dookie Note Added: 0005452
2016-07-05 16:53 dookie Status new => closed
2016-07-05 16:53 dookie Assigned To => dookie
2016-07-05 16:53 dookie Resolution open => duplicate