gzip: stdin: not in gzip format

在使用tar命令的时候报错了 

[root@localhost ~]# tar zxvf thc-ssl-dos-1.4.tar.gz 

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

问题是因为这个下载的文件 根本不是压缩文件,而是 网页

可以看一下

[root@localhost ~]# file thc-ssl-dos-1.4.tar.gz 
thc-ssl-dos-1.4.tar.gz: UTF-8 Unicode HTML document text, with very long lines

更直接的是可以使用cat查看,因为众所周知linux文类型和后缀没有关系 

我们虽然看到的是压缩文件

我们 可以查看一下,实际就是一个文件而不是压缩包

[root@localhost ~]# more  thc-ssl-dos-1.4.tar.gz 





<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
  <link rel="dns-prefetch" href="https://github.githubassets.com">
  <link rel="dns-prefetch" href="https://avatars0.githubusercontent.com">
  <link rel="dns-prefetch" href="https://avatars1.githubusercontent.com">
  <link rel="dns-prefetch" href="https://avatars2.githubusercontent.com">
  <link rel="dns-prefetch" href="https://avatars3.githubusercontent.com">
  <link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
  <link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">



  <link crossorigin="anonymous" media="all" integrity="sha512-BmnGTzITfSCD9SKlVfngZdzNq8Fa33lRq00rF1eRsg4zcCH3VtX8QtS6687+5GdeaVj1LzKyLj6+oXJLcswj6w==" rel="stylesh
eet" href="https://github.githubassets.com/assets/frameworks-0669c64f32137d2083f522a555f9e065.css" />
  <link crossorigin="anonymous" media="all" integrity="sha512-IX5BoM4/CZcF+rw+yhDLhCjHTA1gz+F8rA3dQU3p7CFWAx1qGb+MVztQXTLG7jyLCn2kDGNZkp3pHjbL9Ac4kw==" rel="stylesh
eet" href="https://github.githubassets.com/assets/site-217e41a0ce3f099705fabc3eca10cb84.css" />
    <link crossorigin="anonymous" media="all" integrity="sha512-0IGYt6nc+cz/zU4CV44Lb8IcwmWQlYmSAHsCzOtlyo8lLyvQz1jNirl1Ld8CbxalQ5fCiFufvxPm5RLVW+Mo4Q==" rel="style
sheet" href="https://github.githubassets.com/assets/github-d08198b7a9dcf9ccffcd4e02578e0b6f.css" />
    
    
    
    


  <meta name="viewport" content="width=device-width">
  
  <title>THC-Archive/thc-ssl-dos-1.4.tar.gz at master ? vanhauser-thc/THC-Archive ? GitHub</title>
    <meta name="description" content="All releases of the security research group (a.k.a. hackers) The Hacker&#39;s Choice - vanhauser-thc/THC-Archive">
    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
  <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
  <meta property="fb:app_id" content="1401488693436528">

    <meta name="twitter:image:src" content="https://avat

看吧,确实是网页

因此,解决的方法是重新去下载压缩文件

  • 0
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值