Re: [Nmap-scanner-general] encoding problem
Brought to you by:
perldork
From: Max <nm...@we...> - 2006-11-01 00:45:17
|
Matthias, Ah, that makes sense, Windows doesn't like single quotes. I need to change those to be double quotes to be portable for Windows users, the single quotes were for cygwin users who use paths with spaces, so should be my $cmd = qq("$nmap" -v -v -v); Would you be kind enough to try replacing the code below with the one above and see if your script works with it on Windows? Thank you for taking the time to find this issue, you will get credit for the find in the Changes file once we determine if the above works for you. - Max On 10/31/06, Matthias Waehlisch <mw...@fh...> wrote: > hi Max, > > I found the point: at $perl/site/lib/Nmap/Scanner/Scanner.pm there is > the line 838: > > * my $cmd = "'$nmap' -v -v -v"; > > Windows is confused by the inverted commad (''). I removed it and it's > going fine. > > thanks again > matthias > > On Tue, 31 Oct 2006, Max wrote: > > > Hi Matthias, > > > > I noticed a bug with 4.03 that is solved in 4.20 that happens if you > > specify an nmap command-line with -sS and -sU and a port list with -P > > N,N1, etc > > > > the bug is that nmap outputs a warning message about 'UDP port scan > > requested, but no UDP ports specified; skipping' > > > > If you could, please upgrade to version 1.0 of Nmap-Scanner and re-run > > your script, one of the fixes I did with 1.0 was to improve the > > modules' error reporting .. .9 and earlier don't catch and report the > > stderr from nmap properly, 1.0 does (from my testing). > > > > Let me know what the results are after upgrading, and if the issue > > persists please post code that you are using to the list so I can help > > troubleshoot it / test it in my own environment to try to figure out > > what is happening. > > > > Thanks, > > Max > > > > On 10/31/06, Matthias Waehlisch <mw...@fh...> wrote: > > > > $Nmap::Scanner::DEBUG = 1; > > > > > > > Unfortunately it haven't any effect. > > > > > > Yes, you are right ... I downgrad XML::SAX to version 0.12 and the empty > > > <nmap-msg></nmap-msg> field was filled. > > > > > > It says that file or directory name is wrong - I don't know why. I will > > > try to look on it. > > > > > > > What happens when you run the command line below on your windows host? > > > > What output do you get? > > > > > > > That's the strange point. If I exactly execute the cmdline everything > > > works fine. > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Nmap-scanner-general mailing list > > Nma...@li... > > https://lists.sourceforge.net/lists/listinfo/nmap-scanner-general > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Nmap-scanner-general mailing list > Nma...@li... > https://lists.sourceforge.net/lists/listinfo/nmap-scanner-general > |