Introduction to Hackhttp Templates

Source: Internet
Author: User

Hackhttp templates: Benefiting people

Initiating get/post/initiating HTTP RAW packets

Exploit: Faster and more uncomfortable

#hackhttp使用方法
Hh=hackhttp.hackhttp ()
Code,head,html,redirect_url,log=hh.http (URL)
Status Code/Response header/http corresponding content type string/jump address 302/log information

#coding =utf-8
Import requests
From BS4 import BeautifulSoup
Import RE
Import Hackhttp
#仅限python2使用
#要爬取的地址
url = ' http://www.cnvd.org.cn/'
#必要时用burp将响应头全部添加上
headers={' user-agent ': ' mozilla/5.0 (Windows NT 10.0; WOW64) applewebkit/537.36 (khtml, like Gecko) chrome/55.0.2883.87 safari/537.36 '}

#hackhttp使用方法
Hh=hackhttp.hackhttp ()

Code,head,html,redirect_url,log=hh.http (Url=url,headers=headers)
Print (code)
Print (HTML)

Introduction to Hackhttp Templates

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.