base64

chrome 书签

夙愿已清 提交于 2020-01-08 00:08:00
<!DOCTYPE NETSCAPE-Bookmark-file-1> <!-- This is an automatically generated file. It will be read and overwritten. DO NOT EDIT! --> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> <TITLE>Bookmarks</TITLE> <H1>Bookmarks</H1> <DL><p> <DT><H3 ADD_DATE="1502696547" LAST_MODIFIED="1517213101" PERSONAL_TOOLBAR_FOLDER="true">书签栏</H3> <DL><p> <DT><A HREF="http://www.baidu.com/" ADD_DATE="1464862986" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAACP0lEQVQ4jVWSS0jUYRTFf983M5qmMw4

telnet传输文件

陌路散爱 提交于 2020-01-07 19:32:35
python2.7写入代码样例: import socket import base64 ##port和filename根据实际情况可以修改为适合你的 port = 10005 filename = 'libcrypto.so.1.0.1e' sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(('0.0.0.0', port)) sock.listen(5) while True: connection,address = sock.accept() try: content = 'hello' f = file(filename) content = base64.b64encode(f.read()) connection.sendall(content.strip()) connection.close() except socket.timeout: print 'time out' connection.close() telent输出代码样例: telnet 102.200.200.202 10005 |tee > temp.txt base64 -d < temp.txt |tee >out.ovpn    来源: https://www.cnblogs.com/bai2018/p

JMeter 密码RSA加密

本秂侑毒 提交于 2020-01-07 18:43:05
beanshell处理器: import org . apache . commons . codec . binary . Base64 ; import javax . crypto . Cipher ; import java . security . * ; import java . security . interfaces . RSAPublicKey ; import java . security . spec . X509EncodedKeySpec ; String encrypt ( String str , String publicKey ) throws Exception { //base64编码的公钥 byte [ ] decoded = Base64 . decodeBase64 ( publicKey ) ; RSAPublicKey pubKey = ( RSAPublicKey ) KeyFactory . getInstance ( "RSA" ) . generatePublic ( new X509EncodedKeySpec ( decoded ) ) ; //RSA加密 Cipher cipher = Cipher . getInstance ( "RSA" ) ; cipher . init ( Cipher . ENCRYPT

vue——批量下载图片

微笑、不失礼 提交于 2020-01-07 15:51:49
需求:下载已生成的二维码 支持单独下载 和 批量下载 并且自动打包 效果:点击下载 => 实现单独下载 选择多选框 => 点击批量下载 => 实现批量现在 用到的依赖:jszip 、 file-saver(为了实现打包) 核心:canvas 依赖 npm install jszip npm install file-saver 在使用到下载的页面 引入 import JSZip from "jszip" import FileSaver from "file-saver" 核心方法 我们后台返回的图片是XML格式的: <?xml version="1.0" encoding="UTF-8"?>↵<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="200px" height="200px" viewBox="0 0 200 200"><defs><rect id="r0" width="4" height="4" fill="#000000"/></defs><rect x="0" y="0" width="200" height="200" fill="#fefefe"/><use x="34" y="34" xlink

2020-1-7:vulnhub靶场练习,64Base

假如想象 提交于 2020-01-07 12:58:37
一、环境搭建 1,下载地址,https://www.vulnhub.com/entry/64base-101,173/ 2,使用VirtualBox虚拟机软件,导入 3,启动,为了方便联系,网卡设置的桥接模式 二、渗透练习 1,获取靶机ip地址 输入命令,netdiscover,获取到靶机ip地址,192.168.1.102 2,获取靶机开启哪些服务,端口 输入命令,nmap -sT -T4 -p- 192.168.1.102 -sT,TCP connect()扫描,这是最基本的TCP扫描方式。这种扫描很容易被检测到,在目标主机的日志中会记录大批的连接请求以及错误信息。 -T4,指定扫描过程使用的时序(Timing),总有6个级别(0-5),级别越高,扫描速度越快,但也容易被防火墙或IDS检测并屏蔽掉,在网络通讯状况良好的情况推荐使用T4 -p-,指定扫描的端口为所有端口,及1-65535 发现开启了,22,80.4899,62964端口 22,为SSH服务 80,为HTTP服务 4899,Radmin远控服务,是一个 远程控制软件 (remote administrator) 服务端 监听的端口 62964,不是常见端口 3,既然开启了80端口,就访问网站,看看是否有突破口 首页 About页 POST页 CONTACT页 4,根据首页提示的Base64解密得到的信息

base64转换成np、opencv、PIL

有些话、适合烂在心里 提交于 2020-01-07 10:21:01
# coding: utf-8 import base64 import numpy as np import cv2 from PIL import Image import io import PIL img_file = open('4.png','rb') # 二进制打开图片文件 img_b64encode = base64.b64encode(img_file.read()) # base64编码 img_file.close() # 文件关闭 img_b64decode = base64.b64decode(img_b64encode) # base64解码 img_array = np.frombuffer(img_b64decode,np.uint8) # 转换np序列 img=cv2.imdecode(img_array,cv2.COLOR_BGR2RGB) # 转换Opencv格式 image = io.BytesIO(img_b64decode) good_image = Image.open(image)#PIL 来源: https://www.cnblogs.com/yuehouse/p/12159695.html

Convert a hex string to base64

十年热恋 提交于 2020-01-07 09:57:50
问题 byte[] ba = Encoding.Default.GetBytes(input); var hexString = BitConverter.ToString(ba); hexString = hexString.Replace("-", ""); Console.WriteLine("Or: " + hexString + " in hexadecimal"); So I got this, now how would I convert hexString to a base64 string? I tried this, got the error: Cannot convert from string to byte[] If that solution works for anyone else, what am I doing wrong? edit: var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(plainText); return System.Convert.ToBase64String

Convert a hex string to base64

≡放荡痞女 提交于 2020-01-07 09:55:20
问题 byte[] ba = Encoding.Default.GetBytes(input); var hexString = BitConverter.ToString(ba); hexString = hexString.Replace("-", ""); Console.WriteLine("Or: " + hexString + " in hexadecimal"); So I got this, now how would I convert hexString to a base64 string? I tried this, got the error: Cannot convert from string to byte[] If that solution works for anyone else, what am I doing wrong? edit: var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(plainText); return System.Convert.ToBase64String

How to encrypt strings that may have non-base 64 characters

匆匆过客 提交于 2020-01-07 09:16:09
问题 UPDATED: The problem was me ! I did a mistake otherwise both Cods (below and the one at PS are correct) But still thanks to great answer from @Luke Park that I learned something new. I am not familiar with encryption/decryption algorithms, Therefor I search the net and found this class: Encrypting & Decrypting a String in C# the code is : (I add a Try/Catch in Decrypt method in case the password was wrong it will return ""; ) using System; using System.Text; using System.Security.Cryptography