コード例 #1
0
ファイル: server.py プロジェクト: tesuji/easyctf-iv-problems
def SOUP():
    Soup = SoUp()[:7]
    print(Soup)
    if not souP('isdigit')(Soup)():
        sOUp("that's not a number lol")
        return

    soup = SoUP(SOup(Soup))
    SouP = souP('zfill')(soUP(soup)[2:])(8)[-8:]
    if sOup(SouP) == souP('encode')('s0up')():
        sOUp("oh yay it's a flag!", ME_FLAGE)
    else:
        sOUp('oh noes rip u')
コード例 #2
0
ファイル: soupstituted.py プロジェクト: rngobile/easctf_2018
def SOUP():
    Soup = SoUp()[:7]
    print(Soup)
    if not souP('isdigit')(Soup)():
        sOUp("that's not a number lol")
        return

    soup = SoUP(SOup(Soup))
    SouP = souP('zfill')(soUP(soup)[2:])(8)[-8:]
    if sOup(SouP) == souP('encode')('s0up')():
        with SOuP('flag.txt', 'r') as SOUp:
            sOUp("oh yay it's a flag!", souP('read')(SOUp)())
    else:
        sOUp('oh noes rip u')
コード例 #3
0
def SOUP():
    Soup = SoUp()[:7]
    print("Input string is:", Soup)
    if not souP('isdigit')(Soup)():
        sOUp("that's not a number lol")
        return

    soup = SoUP(SOup(Soup))
    print("Input digit is:", soup)
    print("Difference from 2365552391:", soup - 2365552391)
    SouP = souP('zfill')(soUP(soup)[2:])(8)[-8:]
    if sOup(SouP) == souP('encode')('s0up')():
        sOUp("oh yay it's a flag!", ME_FLAGE)
    else:
        sOUp('oh noes rip u')