All Projects → middlewares → payload

middlewares / payload

Licence: MIT license
PSR-15 middleware to parse the body of the request with support for json, csv and url-encode

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to payload

Z0172CK-Tools
Hacking Tools Z0172CK
Stars: ✭ 31 (+3.33%)
Mutual labels:  payload
CVE-2021-41773 CVE-2021-42013
Apache HTTP Server 2.4.49, 2.4.50 - Path Traversal & RCE
Stars: ✭ 20 (-33.33%)
Mutual labels:  payload
maalik
Feature-rich Post Exploitation Framework with Network Pivoting capabilities.
Stars: ✭ 75 (+150%)
Mutual labels:  payload
keeptrack.space
🌎📡 TypeScript Astrodynamics Software for Non-Engineers. 3D Visualization of satellite data and the sensors that track them.
Stars: ✭ 61 (+103.33%)
Mutual labels:  payload
window-rat
The purpose of this tool is to test the window10 defender protection and also other antivirus protection.
Stars: ✭ 59 (+96.67%)
Mutual labels:  payload
flow-state
UI state management with RxJS.
Stars: ✭ 33 (+10%)
Mutual labels:  payload
purelove
Purelove is a lightweight penetration testing framework, in order to better security testers testing holes with use.
Stars: ✭ 52 (+73.33%)
Mutual labels:  payload
Payloads
Payload Arsenal for Pentration Tester and Bug Bounty Hunters
Stars: ✭ 421 (+1303.33%)
Mutual labels:  payload
Defeat-Defender-V1.2
Powerful batch script to dismantle complete windows defender protection and even bypass tamper protection ..Disable Windows-Defender Permanently....Hack windows. POC
Stars: ✭ 885 (+2850%)
Mutual labels:  payload
CamRaptor
CamRaptor is a tool that exploits several vulnerabilities in popular DVR cameras to obtain network camera credentials.
Stars: ✭ 106 (+253.33%)
Mutual labels:  payload
payload
A javascript single page application (SPA) driver for REST API payload management.
Stars: ✭ 16 (-46.67%)
Mutual labels:  payload
trolo
trolo - an easy to use script for generating Payloads that bypasses antivirus
Stars: ✭ 45 (+50%)
Mutual labels:  payload
Loki.Rat
Loki.Rat is a fork of the Ares RAT, it integrates new modules, like recording , lockscreen , and locate options. Loki.Rat is a Python Remote Access Tool.
Stars: ✭ 63 (+110%)
Mutual labels:  payload
nextjs-custom-server
A TypeScript boilerplate for combining Payload and NextJS into a single Express server
Stars: ✭ 88 (+193.33%)
Mutual labels:  payload
WinRAT
(Windows/Linux/Mac) Remote Administration Tool
Stars: ✭ 35 (+16.67%)
Mutual labels:  payload
ToRat client
This is the ToRat client, a part of the ToRat Project.
Stars: ✭ 29 (-3.33%)
Mutual labels:  payload
sns-sqs-big-payload
Amazon SNS/SQS client library that enables sending and receiving messages with payload larger than 256KiB via Amazon S3.
Stars: ✭ 40 (+33.33%)
Mutual labels:  payload
pix-payload-generator.net
Gerar payload para qrcode estático PIX. (Sistema de pagamento instantâneo do Brasil) Sem a necessidade de conexão com um PSP.
Stars: ✭ 23 (-23.33%)
Mutual labels:  payload
CVE-2021-44228-PoC-log4j-bypass-words
🐱‍💻 ✂️ 🤬 CVE-2021-44228 - LOG4J Java exploit - WAF bypass tricks
Stars: ✭ 760 (+2433.33%)
Mutual labels:  payload
Base62x
Base62x is an alternative approach to Base 64 without symbols in output.
Stars: ✭ 38 (+26.67%)
Mutual labels:  urlencode

middlewares/payload

Latest Version on Packagist Software License Testing Total Downloads

Parses the body of the request if it's not parsed and the method is POST, PUT or DELETE. It contains the following components to support different formats:

Failure to parse the body will result in a Middlewares\Utils\HttpErrorException being thrown. See middlewares/utils for additional details.

Requirements

Installation

This package is installable and autoloadable via Composer as middlewares/payload.

composer require middlewares/payload

JsonPayload

Parses the JSON payload of the request.

Dispatcher::run([
    (new Middlewares\JsonPayload())
        ->associative(false)
        ->depth(64)
]);

$response = $dispatcher->dispatch(new ServerRequest());

Contains the following options to configure the json_decode function:

associative

Enabled by default, convert the objects into associative arrays.

//Disable associative arrays
$payload = (new Middlewares\JsonPayload())->associative(false);

depth

To configure the recursion depth option of json_decode. By default is 512.

options

To pass the bitmask of json_decode options: JSON_BIGINT_AS_STRING (enabled by default), JSON_OBJECT_AS_ARRAY, JSON_THROW_ON_ERROR.

methods

To configure the allowed methods. By default only the requests with the method POST, PUT, PATCH, DELETE, COPY, LOCK, UNLOCK are handled.

//Parse json only with POST and PUT requests
$payload = (new Middlewares\JsonPayload())->methods(['POST', 'PUT']);

contentType

To configure all Content-Type headers allowed in the request. By default is application/json

//Parse json only in request with these two Content-Type values
$payload = (new Middlewares\JsonPayload())->contentType(['application/json', 'text/json']);

override

To override the previous parsed body if exists (false by default)

UrlEncodePayload

Parses the url-encoded payload of the request.

Dispatcher::run([
    new Middlewares\UrlEncodePayload()
]);

methods

To configure the allowed methods. By default only the requests with the method POST, PUT, PATCH, DELETE, COPY, LOCK, UNLOCK are handled.

contentType

To configure all Content-Type headers allowed in the request. By default is application/x-www-form-urlencoded

override

To override the previous parsed body if exists (false by default)

CsvPayload

CSV payloads are supported by the middlewares/csv-payload package.

XmlPayload

Parses the XML payload of the request. Parsed body will return an instance of SimpleXMLElement.

methods

To configure the allowed methods. By default only the requests with the method POST, PUT, PATCH, DELETE, COPY, LOCK, UNLOCK are handled.

contentType

To configure all Content-Type headers allowed in the request. By default is text/xml, application/xml and application/x-xml.

override

To override the previous parsed body if exists (false by default)


Please see CHANGELOG for more information about recent changes and CONTRIBUTING for contributing details.

The MIT License (MIT). Please see LICENSE for more information.

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].