Skip to content

Instantly share code, notes, and snippets.

View pleaz's full-sized avatar
🐊
Working from home

Anton pleaz

🐊
Working from home
View GitHub Profile
@pleaz
pleaz / linux-malware-removal-v2.sh
Last active December 8, 2025 22:31
linux malware removal
#!/bin/sh
# Linux Server Malware Removal Script
# =============================================================================
# Based on real incident response to cryptominer infection via Next.js exploit
# SPECIFICALLY: CVE-2025-66478 / CVE-2025-55182 (RCE in React Server Components)
# Use at your own risk. Always backup data before running.
# Ideally, rebuild the server from scratch after compromise.
# =============================================================================
#
# USAGE GUIDE:
@pleaz
pleaz / BooksEndpointTest.php
Created April 16, 2024 21:09 — forked from filipfilipovich/BooksEndpointTest.php
Books API endpoint test file
<?php
use App\Models\Book;
const API_ENDPOINT = '/api/books';
uses()->group('books'); // Assign 'books' group to all tests (whole file)
beforeEach(function () {
$this->mockBooksCollection = Book::factory(5)->create(); // Generate mock database entries for testing