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 
> > -#include 
> > #include 
> > +#include 
> > #include 
> > #include 
> > #include 
> 
> 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


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 
> -#include 
> #include 
> +#include 
> #include 
> #include 
> #include 

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: 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 
-#include 
#include 
+#include 
#include 
#include 
#include 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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=0x383f9ff
real memory  = 536854528 (511 MB)
avail memory = 516009984 (492 MB)
netsmb_dev: loaded
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  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:  on acpi0
acpi_button0:  on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  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:  mem 0xfc00-0xfdff at device 
0.0 on pci0
pcib1:  at device 1.0 on pci0
pcib1: could not get PCI interrupt routing table for \\_SB_.PCI0.AGP_ - AE_NOT_FOUND
pci1:  on pcib1
pci1:  at device 0.0 (no driver attached)
isab0:  at device 4.0 on pci0
isa0:  on isab0
atapci0:  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:  port 0xd400-0xd41f irq 10 at device 4.2 on pci0
usb0:  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:  port 0xd000-0xd01f irq 10 at device 4.3 on pci0
usb1:  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:  at device 9.0 (no driver attached)
fxp0:  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:  on fxp0
inphy0:  on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fdc0:  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:  port 0x64,0x60 irq 1 on acpi0
atkbd0:  flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0:  irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
orm0:  at iomem 0xcc000-0xccfff,0xc-0xcb7ff on isa0
sc0:  on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
Timecounter "TSC" frequency 997460685 Hz quality 800
Timecounters tick every