Author Topic: Using NMap.....mass port scanning question?  (Read 1835 times)

0 Members and 1 Guest are viewing this topic.

Offline FractalInsanity

  • /dev/null
  • *
  • Posts: 19
  • Cookies: -2
  • How can intuition deceive us at this point?
    • View Profile
Using NMap.....mass port scanning question?
« on: July 15, 2012, 09:37:18 am »
So the app is pretty straightforward, however, I'm curious if you wanted to scan multiple hosts non-stop in succession rapidly would you have to write a program to rapidly inject inputs into the scan query? Is this a lot more doable when using linux than windows?


How would one go about this.....I'm know how to use Nmap,  as it is pretty clear, however I know you can scan insane amounts of ip's and curious how you would do it if you wanted to?


Thx guys as usual,
FI
« Last Edit: July 15, 2012, 09:37:50 am by FractalInsanity »

Offline bubzuru

  • Knight
  • **
  • Posts: 395
  • Cookies: 21
  • everything is contained in the data
    • View Profile
    • New School Tools
Re: Using NMap.....mass port scanning question?
« Reply #1 on: July 15, 2012, 10:43:33 am »
nmap has its own lua based scripting language for a start so it doesent realy mater on the os if you would need to write a script

also what kind of ips do you want to scan
have you got a list, random ips ?

give me more info
Damm it feels good to be gangsta
http://bubzuru.comule.com

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Using NMap.....mass port scanning question?
« Reply #2 on: July 15, 2012, 01:06:51 pm »
I dunno about random IP's but you can do range scans by doing 11.11.11.11/24 or 11.11.11.11-22.22.22.22 or alike. Nmap is pretty flexible.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline NeX

  • Peasant
  • *
  • Posts: 74
  • Cookies: 5
    • View Profile
Re: Using NMap.....mass port scanning question?
« Reply #3 on: July 15, 2012, 01:46:31 pm »
nmap's -iR <number of hosts to scan> is for random generated hosts.. as for injecting, check out the NSE engine ;)
Code: [Select]
http://nmap.org/book/nse.html

Offline bubzuru

  • Knight
  • **
  • Posts: 395
  • Cookies: 21
  • everything is contained in the data
    • View Profile
    • New School Tools
Re: Using NMap.....mass port scanning question?
« Reply #4 on: July 15, 2012, 02:25:46 pm »
Yes the scripting engine will work for what he wants
But I think the problem is more simple, he just needs to explain better
Damm it feels good to be gangsta
http://bubzuru.comule.com

Offline FractalInsanity

  • /dev/null
  • *
  • Posts: 19
  • Cookies: -2
  • How can intuition deceive us at this point?
    • View Profile
Re: Using NMap.....mass port scanning question?
« Reply #5 on: July 16, 2012, 03:17:53 am »
Thx for your responses....I guess I could have communicated a little more efficiently lol


Anyways, I read through Nmap and learned a lot, in addition, that Fyodor is hardcore with Nmap. I wouldn't have guessed it was written in LUA.


Is Lua the most efficient language to write network apps in? I originally wouldn't have guessed so but finding out it is based on C....maybe it is? C is amazing for hardware specific tasks/embedded system....

Offline bubzuru

  • Knight
  • **
  • Posts: 395
  • Cookies: 21
  • everything is contained in the data
    • View Profile
    • New School Tools
Re: Using NMap.....mass port scanning question?
« Reply #6 on: July 26, 2012, 03:17:46 am »
Thx for your responses....I guess I could have communicated a little more efficiently lol


Anyways, I read through Nmap and learned a lot, in addition, that Fyodor is hardcore with Nmap. I wouldn't have guessed it was written in LUA.


Is Lua the most efficient language to write network apps in? I originally wouldn't have guessed so but finding out it is based on C....maybe it is? C is amazing for hardware specific tasks/embedded system....

no your confused

nmap is coded in c so is lua :)
lua is just a scripting language like 'perl' for example.

also it has no native network support. you can access winsockets using a dll (since lua can use functions from c dlls) <-- thats what gives lua its power (dlls coded in c used from your script) (thats how Fyodor created nse for nmap)

did you solve your problem then ?
« Last Edit: July 26, 2012, 03:18:56 am by bubzuru »
Damm it feels good to be gangsta
http://bubzuru.comule.com

Offline RedBullAddicted

  • Moderator
  • Sir
  • *
  • Posts: 519
  • Cookies: 189
    • View Profile
Re: Using NMap.....mass port scanning question?
« Reply #7 on: July 26, 2012, 12:39:58 pm »
Hi,

maybe you want to have a look on using nmap with metasploit. You can start with a basic scan to look for open ports like the tcp syn scan. Then you can use an rc script for querying the metasploit database and create new scans for specific ports. It's not the fastest way to do this but I like that very much.

I started a thread with a bit of information on how to do that in metasploit. Maybe you have some input for that after you played around a bit with this.

http://evilzone.org/scripting-languages/%28ruby%29-metasploit-rc-files-predefined-variables/

Cheers
Deep into that darkness peering, long I stood there, wondering, fearing, doubting, dreaming dreams no mortal ever dared to dream before. - Edgar Allan Poe