Nmap Development mailing list archives
Re: [NSE] snmp-ios-config - Config grabber
From: Vikas Singhal <vikas.programmer () gmail com>
Date: Tue, 22 Feb 2011 17:04:54 +0530
Then I guess we should mention it in the usage doc. On Tue, Feb 22, 2011 at 5:01 PM, Patrik Karlsson <patrik () cqure net> wrote:
On Feb 22, 2011, at 12:21 , Vikas Singhal wrote:What if the machine is already running a tftp server. I guess that thepart where it wasn't responding for me. Unfortunately I don't think it's possible to detect this at the moment, due to a bug in the socket code. I think I've identified the problem but couldn't come up with a solution at the time. The problem is described here: http://seclists.org/nmap-dev/2011/q1/179 //PatrikOn Tue, Feb 22, 2011 at 2:51 PM, Patrik Karlsson <patrik () cqure net>wrote:On Feb 22, 2011, at 07:31 , David Fifield wrote:On Thu, Feb 03, 2011 at 11:28:31PM +0100, Patrik Karlsson wrote:On 3 feb 2011, at 23.13, Thomas Buchanan wrote:-----Original Message----- From: Patrik Karlsson [mailto:patrik () labb1 com] On Behalf Of Patrik Karlsson Sent: Wednesday, February 02, 2011 11:28 AM To: Vikas Singhal; Thomas Buchanan; David Fifield; Nmap-Dev Subject: Re: [NSE] snmp-ios-config - Config grabber I still haven't seen any debug results or packet captures of cases where this doesn't work and since I can't reproduce the problems myself I'm not making any progress here. Has anyone else been able to test yet? //PatrikPatrik, I had a chance to test your latest revision of the script and tftp library, and it seems to work fine for me. I even dug up anotherCiscobox to run against, and got good results from that one as well.Ok, I'm happy to hear that.The two Cisco boxes are quite different, and it takes one of themabouttwice as long to build the running config and connect back to theTFTPserver. This means that I haven't really been able to test how effective the concurrency of the library is. However, it seems tohaveno problems handling the files as they come in:I've been emulating several identical routers and got data back moreor less at the same time and it seems to work good for me to.Completed NSE at 15:53, 5.80s elapsed Nmap scan report for 192.168.1.1 Host is up (0.00s latency). PORT STATE SERVICE VERSION 161/udp open snmp SNMPv1 server (public) | snmp-ios-config: | ! | version 12.4 <snip> |_end Nmap scan report for 192.168.1.4 Host is up (0.00s latency). PORT STATE SERVICE VERSION 161/udp open snmp SNMPv1 server (public) | snmp-ios-config: | ! | version 12.3 <snip> |_end Let me know if you want more details or would like to see anyadditionaloutput.Thanks for testing! I'm happy with the details. As far as I can tell, the script now works as intended.It's been interesting to watch the development of this script. Let'sgetthis most recent version committed. It looks like there are a few more minor enhancements possible, but the main functionality of the scriptisready. David FifieldIt's been an interesting twist adding a server piece as a NSE script :) I committed the most recent version with the following changes as r22344: * improved script documentation * cleaned up some minor things in the script (receive_bytes(1) ->receive(), etc...)* changed so that the script fails silently if it the initial SNMP queryfails.this way the script does not produce an error every time it runs withan incorrect community.* removed support for an external tftp server as this was no longerworking.if we need this, we can add support for this in coming versions * modified the script to return the name of the saved file, rather thenthe contents, in case the tftproot argument was used.//Patrik -- Patrik Karlsson http://www.cqure.net http://www.twitter.com/nevdull77-- Patrik Karlsson http://www.cqure.net http://www.twitter.com/nevdull77
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: [NSE] snmp-ios-config - Config grabber, (continued)
- Re: [NSE] snmp-ios-config - Config grabber Patrik Karlsson (Jan 24)
- Re: [NSE] snmp-ios-config - Config grabber Patrik Karlsson (Feb 02)
- RE: [NSE] snmp-ios-config - Config grabber Thomas Buchanan (Feb 03)
- Re: [NSE] snmp-ios-config - Config grabber Patrik Karlsson (Feb 03)
- Re: [NSE] snmp-ios-config - Config grabber Vikas Singhal (Feb 21)
- Re: [NSE] snmp-ios-config - Config grabber Patrik Karlsson (Feb 21)
- Re: [NSE] snmp-ios-config - Config grabber David Fifield (Feb 21)
- Re: [NSE] snmp-ios-config - Config grabber Patrik Karlsson (Feb 22)
- Re: [NSE] snmp-ios-config - Config grabber Vikas Singhal (Feb 22)
- Re: [NSE] snmp-ios-config - Config grabber Patrik Karlsson (Feb 22)
- Re: [NSE] snmp-ios-config - Config grabber Vikas Singhal (Feb 22)
- Re: [NSE] snmp-ios-config - Config grabber Patrik Karlsson (Feb 22)
- Re: [NSE] snmp-ios-config - Config grabber David Fifield (Feb 28)
- Re: [NSE] snmp-ios-config - Config grabber Patrik Karlsson (Mar 02)
- Message not available
- Message not available
- Re: [NSE] snmp-ios-config - Config grabber Patrik Karlsson (Jan 21)
- Re: [NSE] snmp-ios-config - Config grabber David Fifield (Jan 18)
- Re: [NSE] snmp-ios-config - Config grabber Patrik Karlsson (Jan 18)
- RE: [NSE] snmp-ios-config - Config grabber Thomas Buchanan (Jan 18)
- Re: [NSE] snmp-ios-config - Config grabber Fyodor (Jan 18)