All Projects → Samffy → graphql-poc

Samffy / graphql-poc

Licence: MIT license
This project is a proof of concept to test graphQL usage in PHP.

Programming Languages

PHP
23972 projects - #3 most used programming language
Gherkin
971 projects

Projects that are alternatives of or similar to graphql-poc

Cod Exploits
☠️ Call of Duty - Vulnerabilities and proof-of-concepts
Stars: ✭ 178 (+709.09%)
Mutual labels:  poc
Peiqi Wiki Poc
鹿不在侧,鲸不予游🐋
Stars: ✭ 179 (+713.64%)
Mutual labels:  poc
Awesome Cve Poc
✍️ A curated list of CVE PoCs.
Stars: ✭ 2,812 (+12681.82%)
Mutual labels:  poc
Airdos
💣 Remotely render any nearby iPhone or iPad unusable
Stars: ✭ 182 (+727.27%)
Mutual labels:  poc
Ladon
大型内网渗透扫描器&Cobalt Strike,Ladon8.9内置120个模块,包含信息收集/存活主机/端口扫描/服务识别/密码爆破/漏洞检测/漏洞利用。漏洞检测含MS17010/SMBGhost/Weblogic/ActiveMQ/Tomcat/Struts2,密码口令爆破(Mysql/Oracle/MSSQL)/FTP/SSH(Linux)/VNC/Windows(IPC/WMI/SMB/Netbios/LDAP/SmbHash/WmiHash/Winrm),远程执行命令(smbexec/wmiexe/psexec/atexec/sshexec/webshell),降权提权Runas、GetSystem,Poc/Exploit,支持Cobalt Strike 3.X-4.0
Stars: ✭ 2,911 (+13131.82%)
Mutual labels:  poc
Pub
Vulnerability Notes, PoC Exploits and Write-Ups for security issues disclosed by tintinweb
Stars: ✭ 217 (+886.36%)
Mutual labels:  poc
Exploits
Exploits by 1N3 @CrowdShield @xer0dayz @XeroSecurity
Stars: ✭ 154 (+600%)
Mutual labels:  poc
dheater
D(HE)ater is a proof of concept implementation of the D(HE)at attack (CVE-2002-20001) through which denial-of-service can be performed by enforcing the Diffie-Hellman key exchange.
Stars: ✭ 142 (+545.45%)
Mutual labels:  poc
Poc Collection
poc-collection 是对 github 上公开的 PoC 进行收集的一个项目。
Stars: ✭ 210 (+854.55%)
Mutual labels:  poc
Some pocsuite
用于漏洞排查的pocsuite3验证POC代码
Stars: ✭ 239 (+986.36%)
Mutual labels:  poc
Cve 2020 1472
Exploit Code for CVE-2020-1472 aka Zerologon
Stars: ✭ 183 (+731.82%)
Mutual labels:  poc
Poodle Poc
🐩 Poodle (Padding Oracle On Downgraded Legacy Encryption) attack CVE-2014-3566 🐩
Stars: ✭ 198 (+800%)
Mutual labels:  poc
Exphub
Exphub[漏洞利用脚本库] 包括Webloigc、Struts2、Tomcat、Nexus、Solr、Jboss、Drupal的漏洞利用脚本,最新添加CVE-2020-14882、CVE-2020-11444、CVE-2020-10204、CVE-2020-10199、CVE-2020-1938、CVE-2020-2551、CVE-2020-2555、CVE-2020-2883、CVE-2019-17558、CVE-2019-6340
Stars: ✭ 3,056 (+13790.91%)
Mutual labels:  poc
Cry
Cross platform PoC ransomware written in Go
Stars: ✭ 179 (+713.64%)
Mutual labels:  poc
Spectrepoc
Proof of concept code for the Spectre CPU exploit.
Stars: ✭ 239 (+986.36%)
Mutual labels:  poc
Isf
ISF(Industrial Security Exploitation Framework) is a exploitation framework based on Python.
Stars: ✭ 161 (+631.82%)
Mutual labels:  poc
Cve 2020 0796 Lpe Poc
CVE-2020-0796 Local Privilege Escalation POC
Stars: ✭ 215 (+877.27%)
Mutual labels:  poc
foxy-proxy
A Proof of Capacity proxy which supports solo and pool mining upstreams
Stars: ✭ 33 (+50%)
Mutual labels:  poc
Ary
Ary 是一个集成类工具,主要用于调用各种安全工具,从而形成便捷的一键式渗透。
Stars: ✭ 241 (+995.45%)
Mutual labels:  poc
Php7 Opcache Override
Security-related PHP7 OPcache abuse tools and demo
Stars: ✭ 237 (+977.27%)
Mutual labels:  poc

GraphQL POC in PHP

License: MIT Build Status Scrutinizer Code Quality Quality Gate Status

This project is a proof of concept to test graphQL usage in PHP.
This work is based mainly on Symfony framework and overblog/GraphQLBundle.

This project implements :

  • Type system
    • ✔️ Scalars
    • ✔️ Object
    • ✔️ Interface
    • ✔️ Union
    • ✔️ Enum
    • ✔️ Input Object
    • ✔️ Lists
    • ✔️ Non-Null
  • Concepts :
    • ✔️ Resolver
    • ✔️ Query
    • ✔️ GlobalId
    • ✖️ Type Inheritance
    • ✔️ Pagination
    • ✔️ Mutation
    • ✖️ Promise
    • ✔️ Validation

Requirement

Installation

Retrieve repository :

$ git clone [email protected]:Samffy/graphql-poc.git

Go to the project directory :

$ cd graphql-poc

Install and launch project using :

$ make deploy

Go to : http://localhost:8000/graphiql
If you want to request the app using another GraphQL client, the endpoint is : http://localhost:8000/

In dev mode, Symfony profiler is available at /_profiler.

GraphQL

Schema

You can consult the graphQL schema here :
https://github.com/Samffy/graphql-poc/blob/master/config/graphql/schema.graphql

If you update this project, you can dump the new version of the GraphQL schema using this command :

$ bin/console graphql:dump-schema --format=graphql --file=./config/graphql/schema.graphql

Queries

This project use 2 mains types : Person and Vehicle
A person has a Pet and one Vehicle or more.
A Pet can be a Dog, a Cat or a Bear.
A Vehicle can be a Car or a Truck.

Here is an example of a graphQL query :

{
    persons(id: "UGVyc29uOmR1ZmZ5") {
        id
        title
        name
        birth_date
        created_at
        pet {
            ...on Animal {
                id
                name
                breed
            }
        }
        vehicles {
            id
            manufacturer
            model
            ...on Car {
                seats_number
            }
            ...on Truck {
                maximum_load
            }
        }
    }
}

You can find many examples in the functional tests.

Developer tools

This project use Makefile to simplify application usage.
Take a look, you will find some useful commands.

Database

This application use SQLite. Database is versioned and available in the /var/app.db file.
Schema is available in the original migration.

Fixtures

If you corrupt data you can drop database and reload fixtures using this command :

$ make install

Tests

There is some functional tests, read it to see some useful examples.
It basically launch queries and check response.

To launch them use :

$ make integration

⚠️ It will truncate database and dump default fixtures.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].