From owner-freebsd-security Fri Jul 17 08:10:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA25917 for freebsd-security-outgoing; Fri, 17 Jul 1998 08:10:28 -0700 (PDT) (envelope-from owner-freebsd-security@FreeBSD.ORG) Received: from mail.euroweb.hu (mail.euroweb.hu [193.226.220.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA25806 for ; Fri, 17 Jul 1998 08:10:21 -0700 (PDT) (envelope-from hu006co@mail.euroweb.hu) Received: (from hu006co@localhost) by mail.euroweb.hu (8.8.5/8.8.5) id RAA00393 for freebsd.org!freebsd-security; Fri, 17 Jul 1998 17:10:04 +0200 (MET DST) Received: (from zgabor@localhost) by CoDe.hu (8.8.8/8.8.8) id QAA00318 for freebsd-security@freebsd.org; Fri, 17 Jul 1998 16:15:38 +0200 (CEST) (envelope-from zgabor) From: Zahemszky Gabor Message-Id: <199807171415.QAA00318@CoDe.hu> Subject: Re: Large-scale scan of SNMP ports In-Reply-To: <199807171255.WAA29844@mail.aussie.org> from Hallam Oaks P/L list account at "Jul 17, 98 10:56:30 pm" To: freebsd.org!freebsd-security@zg.CoDe.hu Date: Fri, 17 Jul 1998 16:15:37 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Two persons privately expressed interest in a copy of the rc.firewall script > that I used (which picked up the scan). It's not anything overly great, but > it's well-commented and works for me. > > If there's any general interest from other users I'll post it to this list > (assuming that's the 'done thing'). By the way, I'm interested in it, too. ZGabor at CoDe dot HU -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z ;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe security" in the body of the message