Hi Moviuro,

this is unrelated to OpenBSD and is probably a bug in blocklist.php on server 
side. (User agent processing? ...) You'd see this in tcpdump, if you had this 
debugged properly.

$ uname -a
Darwin gaia.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Sep  1 15:01:16 PDT 
2016; root:xnu-3248.60.11~2/RELEASE_X86_64 x86_64

$ telnet zeustracker.abuse.ch 80

GET /blocklist.php?download=badips HTTP/1.1
Host: zeustracker.abuse.ch

HTTP/1.1 200 OK
Date: Tue, 29 Nov 2016 12:38:49 GMT
Server: Apache/2
X-Powered-By: PHP/5.5.9-1ubuntu4.20
Content-Disposition: filename=zeus_badips.txt
Strict-Transport-Security: max-age=15768000 ; includeSubDomains
Vary: Accept-Encoding
Cache-Control: max-age=2592000
Expires: Thu, 29 Dec 2016 12:38:49 GMT
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block, 1; mode=block
X-Frame-Options: sameorigin
Transfer-Encoding: chunked
Content-Type: text/plain

971
#############################################################################################
<SNIP>


0

Best regards,
Jan

P.S. OpenBSD's ftp sends:
GET /blocklist.php?download=badips HTTP/1.0
Host: zeustracker.abuse.ch
User-Agent: OpenBSD ftp



On Tue, Nov 29, 2016 at 08:32:25AM +0100, Moviuro wrote:
> Hi,
> 
> I noticed that ftp(1) acts strange when it downloads some specific
> files from Internet:
> 
> $ ftp -o zeus.ftp
> 'https://zeustracker.abuse.ch/blocklist.php?download=badips'
> $ curl -o zeus.curl
> 'https://zeustracker.abuse.ch/blocklist.php?download=badips'
> $ diff zeus.ftp zeus.curl # should not differ
> 1d0
> < 971
> 145,147d143
> <
> < 0
> <
> 
> I don't even know if the issue is client- or server-side, I just know
> that it breaks some scripts that I write.
> I don't know anything about C coding, so can't help much more that the
> above "bug report"...
> 
> Please find uname's and dmesg's output below.
> Best regards,
> 
> # uname -a
> OpenBSD deadman-wonderland 6.0 GENERIC.MP#1 amd64
> # dmesg
> OpenBSD 6.0-stable (GENERIC.MP) #1: Tue Oct 25 23:53:19 CEST 2016
>     r...@deadman-wonderland.popho.be:/usr/src/sys/arch/amd64/compile/GENERIC.
> MP
> real mem = 2045177856 (1950MB)
> avail mem = 1978781696 (1887MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xece10 (55 entries)
> bios0: vendor American Megatrends Inc. version "5.11" date 08/22/2015
> bios0: AMI Corporation Aptio CRB
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP APIC FPDT FIDT MCFG SSDT SSDT SSDT UEFI LPIT CSRT
> acpi0: wakeup devices PS2K(S3) PS2M(S3) XHC1(S4) HDEF(S4) PXSX(S4)
> RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4)
> BRCM(S0) BRC1(S0) PWRB(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Celeron(R) CPU N3150 @ 1.60GHz, 1600.34 MHz
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
> H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> ,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,
> NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
> cpu0: 1MB 64b/line 16-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 80MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3.3, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Celeron(R) CPU N3150 @ 1.60GHz, 1600.01 MHz
> cpu1:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
> H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> ,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,
> NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
> cpu1: 1MB 64b/line 16-way L2 cache
> cpu1: smt 0, core 1, package 0
> cpu2 at mainbus0: apid 4 (application processor)
> cpu2: Intel(R) Celeron(R) CPU N3150 @ 1.60GHz, 1600.02 MHz
> cpu2:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
> H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> ,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,
> NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
> cpu2: 1MB 64b/line 16-way L2 cache
> cpu2: smt 0, core 2, package 0
> cpu3 at mainbus0: apid 6 (application processor)
> cpu3: Intel(R) Celeron(R) CPU N3150 @ 1.60GHz, 1600.02 MHz
> cpu3:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
> H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> ,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,
> NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
> cpu3: 1MB 64b/line 16-way L2 cache
> cpu3: smt 0, core 3, package 0
> ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 115 pins
> acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (RP01)
> acpiprt2 at acpi0: bus 2 (RP02)
> acpiprt3 at acpi0: bus 3 (RP03)
> acpiprt4 at acpi0: bus -1 (RP04)
> acpiec0 at acpi0: not present
> acpicpu0 at acpi0
> C2: state 6: substate 8 >= num 3
> C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
> acpicpu1 at acpi0
> C2: state 6: substate 8 >= num 3
> C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
> acpicpu2 at acpi0
> C2: state 6: substate 8 >= num 3
> C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
> acpicpu3 at acpi0
> C2: state 6: substate 8 >= num 3
> C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
> acpipwrres0 at acpi0: CLK0, resource for CAMD
> acpipwrres1 at acpi0: CLK0, resource for CAM1
> acpipwrres2 at acpi0: CLK1, resource for CAM2, CAM3
> acpipwrres3 at acpi0: USBC, resource for XHC1
> acpipwrres4 at acpi0: FN00, resource for FAN0
> acpitz0 at acpi0: critical temperature is 95 degC
> "PNP0303" at acpi0 not configured
> "PNP0F03" at acpi0 not configured
> "BCM2E64" at acpi0 not configured
> "BCM4752" at acpi0 not configured
> "SMO91D0" at acpi0 not configured
> "INT33F7" at acpi0 not configured
> "INT33BE" at acpi0 not configured
> "INTCF1C" at acpi0 not configured
> "MSFT0002" at acpi0 not configured
> acpibtn0 at acpi0: SLPB
> "PNP0C0B" at acpi0 not configured
> acpivideo0 at acpi0: GFX0
> acpivout0 at acpivideo0: DD1F
> cpu0: Enhanced SpeedStep 1600 MHz: speeds: 1601, 1600, 1520, 1440,
> 1360, 1280, 1200, 1120, 1040, 960, 880, 800, 720, 640, 560, 480 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Braswell Host" rev 0x21
> vga1 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x21
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> ahci0 at pci0 dev 19 function 0 "Intel Braswell AHCI" rev 0x21: msi, AHCI
> 1.3.1
> ahci0: port 0: 3.0Gb/s
> ahci0: PHY offline on port 1
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, SSD16G, 0605> SCSI3 0/direct fixed
> t10.ATA_SSD16G_SZHYPO15042004A0027_
> sd0: 15104MB, 512 bytes/sector, 30932992 sectors, thin
> xhci0 at pci0 dev 20 function 0 "Intel Braswell xHCI" rev 0x21: msi
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
> "Intel Braswell TXE" rev 0x21 at pci0 dev 26 function 0 not configured
> azalia0 at pci0 dev 27 function 0 "Intel Braswell HD Audio" rev 0x21: msi
> azalia0: codecs: Realtek ALC662, Intel/0x2883, using Realtek ALC662
> audio0 at azalia0
> ppb0 at pci0 dev 28 function 0 "Intel Braswell PCIE" rev 0x21: msi
> pci1 at ppb0 bus 1
> re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x06:
> RTL8168E/8111E-VL (0x2c80), msi, address 00:e0:4c:68:29:fb
> rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 5
> ppb1 at pci0 dev 28 function 1 "Intel Braswell PCIE" rev 0x21: msi
> pci2 at ppb1 bus 2
> re1 at pci2 dev 0 function 0 "Realtek 8168" rev 0x06:
> RTL8168E/8111E-VL (0x2c80), msi, address 00:e0:4c:68:29:fc
> rgephy1 at re1 phy 7: RTL8169S/8110S/8211 PHY, rev. 5
> ppb2 at pci0 dev 28 function 2 "Intel Braswell PCIE" rev 0x21: msi
> pci3 at ppb2 bus 3
> ral0 at pci3 dev 0 function 0 "Ralink RT3090" rev 0x00: apic 1 int 18,
> address 00:24:7e:86:fd:cc
> ral0: MAC/BBP RT3071 (rev 0x0213), RF RT3020 (MIMO 1T1R)
> pcib0 at pci0 dev 31 function 0 "Intel Braswell PCU LPC" rev 0x21
> ichiic0 at pci0 dev 31 function 3 "Intel Braswell SMBus" rev 0x21: apic 1 int
> 18
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-12800 SO-DIMM
> isa0 at pcib0
> isadma0 at isa0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> uhub1 at uhub0 port 5 "Genesys Logic USB2.0 Hub" rev 2.00/85.36 addr 2
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> root on sd0a (d55677f6180f358c.a) swap on sd0b dump on sd0b
> WARNING: / was not properly unmounted
> cannot forward src fe80:2::3ea9:f4ff:fe12:d82c, dst
> 2a03:2880:ffff:b:face:b00c:0:99, nxt 17, rcvif 2, outif 1
> ahci0: stopping the port, softreset slot 31 was still active.
> atascsi_passthru_done, timeout
> --
> Moviuro

Reply via email to