buuctf re部分wp

文章目录

  • helloword | easy
  • reverse1
  • reverse2
  • 新年快乐 | easy
  • xor | easy
  • 内涵的软件 | easy
  • reverse3
  • 不一样的flag
  • SimpleRev

求关注公众号 lin先森
buuctf re部分wp_第1张图片

helloword | easy

reverse1

https://www.cnblogs.com/harmonica11/p/11365728.html

reverse2

新年快乐 | easy

xor | easy

a =[0x66,0x0A,0x6B,0x0C,0x77,0x26,0x4F,0x2E,0x40,0x11,0x78,0x0D,0x5A,0x3B,0x55,0x11,0x70,0x19,0x46,0x1F,0x76,0x22,0x4D,0x23,0x44,0x0E,0x67,0x06,0x68,0x0F,0x47,0x32,0x4F]
flag = ''
for ii in range(len(a)):
	flag+=chr(a[ii]^a[ii-1])
# print len(a)
print flag

内涵的软件 | easy

ida打开

reverse3

不一样的flag

由*开始,由#结束,每五个一换行

不能走1

*1111
01000
01010
00010
1111#

222441144222

[外链图片转存失败(img-7KH7bKAs-1567086330874)(evernotecid://74A3E6DA-E009-4797-AA60-5DEED9FE4F7A/appyinxiangcom/23464203/ENResource/p2289)]

[外链图片转存失败(img-YJrTFRWC-1567086330875)(evernotecid://74A3E6DA-E009-4797-AA60-5DEED9FE4F7A/appyinxiangcom/23464203/ENResource/p2290)]

SimpleRev

import string
dic = string.ascii_uppercase
key = 'ADSFKNDCLS'.lower()
v3 = 0
v5 = 10
# print key
text = 'killshadow'
flag = ''
for ii in range(len(text)):
	for i in dic:
		if chr((ord(i)-39-ord(key[ii])+97)%26+97) == text[ii]:
			flag += i
			# v3 += 1
print flag

你可能感兴趣的:(buuctf re部分wp)