Error assigning master socket: Too many open files

2003-10-22 Thread Andreas Klemm
Hi,

Urgend question, wanna help a collegue, who secured a router,
but trying to scan ports fails with -current.

I don't want to blame anybody, I know what the policy of current
is. If I can't get quick help on this I use a Windows tool,
no problem. I only want to save me the work to install this Win tool
and I think its interesting, to find out, that there might be
a problem.

The machine was freshly booted 
Is there a workaround ?

[EMAIL PROTECTED] /usr/ports/security/portscanner/work/PortScanner-1.2 portscanner -vv 
-v -v -b 1 -e 6 xx.xxx.xxx.xx
xx.xxx.xx.xx
Error assigning master socket: Too many open files
Exit 255

FreeBSD titan.klemm.apsfilter.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sun Oct 19 
16:33:53 CEST 2003 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/TITAN  i386

mbuf usage:
GEN cache:  0/224 (in use/in pool)
CPU #0 cache:   65/576 (in use/in pool)
Total:  65/800 (in use/in pool)
Mbuf cache high watermark: 512
Maximum possible: 34432
Allocated mbuf types:
  65 mbufs allocated to data
2% of mbuf map consumed
mbuf cluster usage:
GEN cache:  0/0 (in use/in pool)
CPU #0 cache:   64/120 (in use/in pool)
Total:  64/120 (in use/in pool)
Cluster cache high watermark: 128
Maximum possible: 17216
0% of cluster map consumed
440 KBytes of wired memory reserved (32% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines


Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.1-CURRENT #0: Sun Oct 19 16:33:53 CEST 2003
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/TITAN
Preloaded elf kernel /boot/kernel/kernel at 0xc07c8000.
Preloaded elf module /boot/kernel/linux.ko at 0xc07c81f4.
Preloaded elf module /boot/kernel/acpi.ko at 0xc07c82a0.
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel Pentium III (997.46-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x686  Stepping = 6
  
Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real memory  = 536854528 (511 MB)
avail memory = 516009984 (492 MB)
netsmb_dev: loaded
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: ASUS   MED_2001 on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 6 entries at 0xc00f0eb0
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0xe408-0xe40b on acpi0
acpi_cpu0: CPU on acpi0
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib0: slot 4 INTD is routed to irq 10
pcib0: slot 4 INTD is routed to irq 10
pcib0: slot 9 INTA is routed to irq 3
pcib0: slot 10 INTA is routed to irq 10
agp0: VIA 82C691 (Apollo Pro) host to PCI bridge mem 0xfc00-0xfdff at device 
0.0 on pci0
pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0
pcib1: could not get PCI interrupt routing table for \\_SB_.PCI0.AGP_ - AE_NOT_FOUND
pci1: ACPI PCI bus on pcib1
pci1: display, VGA at device 0.0 (no driver attached)
isab0: PCI-ISA bridge at device 4.0 on pci0
isa0: ISA bus on isab0
atapci0: VIA 82C686A UDMA66 controller port 0xd800-0xd80f at device 4.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
uhci0: VIA 83C572 USB controller port 0xd400-0xd41f irq 10 at device 4.2 on pci0
usb0: VIA 83C572 USB controller on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ulpt0: Hewlett-Packard PSC 2200 Series, rev 2.00/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode
umass0: Hewlett-Packard PSC 2200 Series, rev 2.00/1.00, addr 2
ugen0: Syncrosoft Protected Executer, rev 1.10/1.01, addr 3
uhci1: VIA 83C572 USB controller port 0xd000-0xd01f irq 10 at device 4.3 on pci0
usb1: VIA 83C572 USB controller on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pci0: multimedia, audio at device 9.0 (no driver attached)
fxp0: Intel 82559 Pro/100 Ethernet port 0xa400-0xa43f mem 
0xed00-0xed0f,0xed80-0xed800fff irq 10 at device 10.0 on pci0
fxp0: Ethernet address 00:d0:b7:ba:c1:c2
miibus0: MII bus on fxp0
inphy0: i82555 10/100 media interface on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fdc0: Enhanced floppy controller (i82077, NE72065 or clone) port 0x3f7,0x3f2-0x3f5 
irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5 drive on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
atkbd0: AT Keyboard flags 0x1

Re: Error assigning master socket: Too many open files

2003-10-22 Thread Peter Edwards
Andreas Klemm wrote:

Hi,

Urgend question, wanna help a collegue, who secured a router,
but trying to scan ports fails with -current.
I don't want to blame anybody, I know what the policy of current
is. If I can't get quick help on this I use a Windows tool,
no problem. I only want to save me the work to install this Win tool
and I think its interesting, to find out, that there might be
a problem.
The machine was freshly booted 
Is there a workaround ?
[EMAIL PROTECTED] /usr/ports/security/portscanner/work/PortScanner-1.2 portscanner -vv 
-v -v -b 1 -e 6 xx.xxx.xxx.xx
xx.xxx.xx.xx
Error assigning master socket: Too many open files
Exit 255
The patch applied by the port appears bogus. It adds braces around an 
if that stops it executing the way it was intended. I've a sneaking 
suspicion that the braces were added for clarity, but the indentation 
in the original file is so badly off that the terminating brace was put 
in the wrong place. Try replacing patch-ab with this:

--- portscanner.c.orig  Wed Aug 19 18:37:44 1998
+++ portscanner.c   Wed Oct 22 15:28:05 2003
@@ -25,8 +25,8 @@
/***/
#include stdio.h
-#include sys/socket.h
#include sys/types.h
+#include sys/socket.h
#include netinet/in.h
#include unistd.h
#include netdb.h
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Approval for Hotfix needed for portscanner (was Re: Error assigning master socket: Too many open files)

2003-10-22 Thread Andreas Klemm
On Wed, Oct 22, 2003 at 03:30:41PM +0100, Peter Edwards wrote:
 The patch applied by the port appears bogus. It adds braces around an 
 if that stops it executing the way it was intended. I've a sneaking 
 suspicion that the braces were added for clarity, but the indentation 
 in the original file is so badly off that the terminating brace was put 
 in the wrong place. Try replacing patch-ab with this:
 
 --- portscanner.c.orig  Wed Aug 19 18:37:44 1998
 +++ portscanner.c   Wed Oct 22 15:28:05 2003
 @@ -25,8 +25,8 @@
 /***/
 
 #include stdio.h
 -#include sys/socket.h
 #include sys/types.h
 +#include sys/socket.h
 #include netinet/in.h
 #include unistd.h
 #include netdb.h

Hi Peter,

thanks a lot for your help. You're completely right with your
diagnose and fix.

I'll put portmgr@ on Cc: to be allowed to commit the change
and will happily apply your fix to the port if I get the approval.

look here:

[EMAIL PROTECTED] /usr/ports/security/portscanner portscanner -b 1 -e 6 -vv 
xx.xx.xx.xxx
Resolving: xx.xx.xx.xxx - resolved
Current address: xx.xx.xx.xxx
Port range: 1 to 6
Port 135 found. Service name: loc-srv
Port 445 found. Service name: microsoft-ds
Port 1025 found. Service name: blackjack

Port scan finished !

After changing the patch and reinstalling the port,
the portscanner is completely functional again now.

Best regards

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.1-CURRENT
Need a magic printfilter today ? - http://www.apsfilter.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Approval for Hotfix needed for portscanner (was Re: Error assigning master socket: Too many open files)

2003-10-22 Thread Joe Marcus Clarke
On Wed, 2003-10-22 at 11:31, Andreas Klemm wrote:
 On Wed, Oct 22, 2003 at 03:30:41PM +0100, Peter Edwards wrote:
  The patch applied by the port appears bogus. It adds braces around an 
  if that stops it executing the way it was intended. I've a sneaking 
  suspicion that the braces were added for clarity, but the indentation 
  in the original file is so badly off that the terminating brace was put 
  in the wrong place. Try replacing patch-ab with this:
  
  --- portscanner.c.orig  Wed Aug 19 18:37:44 1998
  +++ portscanner.c   Wed Oct 22 15:28:05 2003
  @@ -25,8 +25,8 @@
  /***/
  
  #include stdio.h
  -#include sys/socket.h
  #include sys/types.h
  +#include sys/socket.h
  #include netinet/in.h
  #include unistd.h
  #include netdb.h
 
 Hi Peter,
 
 thanks a lot for your help. You're completely right with your
 diagnose and fix.
 
 I'll put portmgr@ on Cc: to be allowed to commit the change
 and will happily apply your fix to the port if I get the approval.
 
 look here:
 
 [EMAIL PROTECTED] /usr/ports/security/portscanner portscanner -b 1 -e 6 -vv 
 xx.xx.xx.xxx
 Resolving: xx.xx.xx.xxx - resolved
 Current address: xx.xx.xx.xxx
 Port range: 1 to 6
 Port 135 found. Service name: loc-srv
 Port 445 found. Service name: microsoft-ds
 Port 1025 found. Service name: blackjack
 
 Port scan finished !
 
 After changing the patch and reinstalling the port,
 the portscanner is completely functional again now.

Go for it.

Joe

 
 Best regards
 
   Andreas ///
-- 
PGP Key : http://www.marcuscom.com/pgp.asc




signature.asc
Description: This is a digitally signed message part