ctf里的拼图工具_CTF常用工具之汇总

#-*- coding:utf-8 -*-

importhashlibimportbase64from urllib importquote,unquoteimportargparse"""名字:CTF之常用工具汇总

作者:白猫

时间:2018-3-22

QQ :1058763824"""

defmenu():

usage= """-m MD5 encryption

-s SH1 encryption

-h Show help information

-b64 Base64 encode

-b32 Base32 encode

-b16 Base16 encode

-db64 Base64 decode

-db32 Base32 decode

-db16 Base16 decode

-urlen URL encode

-urlde URL decode

-bin Binary To Decimal

-octal Octal to Decimal

-hex Hexadecimal to Decimal

-dbin Decimal To Binary

-doctal Decimal to Octal

-dhex Decimal to Hexadecimal

-ord Letter To ASCII Example -ord asdfasfa -ord='dfafs afasfa asfasf'

-chr ASCII To Letters Example -chr 105 -chr = '102 258 654'"""

#在使用ord 和chr命令的时候要注意如果输入的字符和数字不包含空格则直接实用例子前面的命令如果包含空格则使用后面的命令

parser=argparse.ArgumentParser()

parser.add_argument('-m',dest='md',help='MD5 encryption')

parser.add_argument('-s', dest='sh', help='SH1 encryption')

parser.add_argument('--h',action="store_true",help='Show help information')

parser.add_argument('-b64', dest='b64', help='Base64 encode')

parser.add_argument('-b32', dest='b32', help='Base32 encode')

parser.add_argument('-b16', dest='b16&#

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值