Skip to main content

A capture moudle return base64 image

Project description

A capture moudle return base64 image

Install

pip install Vulncapture

Use

from Vulncapture import Vulncapture
import base64
image=Vulncapture.run_snapshot(url='http://www.baidu.com',keyword='换一换')
'''
run_snapshot() parmers
url : aim url
keyword : str
headers : dict
method : str('GET'/'POST')
if your aim url need to login , please set headers

auto set cookies
auto jump dialog and record dialog
auto stop jump to other domain
'''
print(image) # str
imgdata=base64.b64decode(image)
file=open('1.jpg','wb')
file.write(imgdata)
file.close()

imgdata2= Vulncapture.txt2image(data = 'it's password for me',keyword ='password')
print(imgdata2)
imgdata=base64.b64decode(imgdata2)
file=open('2.jpg','wb')
file.write(imgdata)
file.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Vulncapture-1.0.2.tar.gz (9.2 MB view hashes)

Uploaded source

Built Distribution

Vulncapture-1.0.2-py3-none-any.whl (9.2 MB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page