Skip to content

Instantly share code, notes, and snippets.

View luukverhoeven's full-sized avatar
🚀
To Infinity, And Beyond!

Luuk Verhoeven luukverhoeven

🚀
To Infinity, And Beyond!
View GitHub Profile
@luukverhoeven
luukverhoeven / bsqli_moodle.py
Last active February 7, 2024 20:31
Moodle blind sql inject PoC 2021 - CVE-2021-36392 (3.11, 3.10 to 3.10.4, 3.9 to 3.9.7 and earlier unsupported versions)
#!/usr/bin/env python3
# Version 1.0 - Python 2.7+ Author Luuk Verhoeven
# BugBounty program (https://www.intigriti.com/) - MOODLE-WWXPVFWL
# Example usage
# ╰─❯ python3.9 bsqli.py -host "somehost.nl" -key "0hGdVB3DCa" -ses "oga7d5b5kijiv67oriog0C0h0s" -q "(select lastname from mdl_user where id = 2 limit 1)"
import requests
from urllib3.exceptions import InsecureRequestWarning
@luukverhoeven
luukverhoeven / Marlin_configuration.h
Created March 6, 2021 10:53
Marlin_configuration.h - x1 _ Waggster + BMG Wind
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@luukverhoeven
luukverhoeven / moodle_update_user_webservices.php
Last active July 28, 2020 15:54
Moodle webservice client sample
<?php
/**
* Send a Post request
*
* @param string $moodleFunction
* @param array $data
*
* @return array
*/
@luukverhoeven
luukverhoeven / fix_snmpd_ia_addr.sh
Last active February 21, 2025 12:07
# Fix error on subcontainer 'ia_addr' insert (-1) - debian 9
#!/bin/bash
apt-get remove --purge snmpd
apt-get install snmpd
apt-get install snmp-mibs-downloader
sed -i "s|-Lsd|-LS4d|" /etc/default/snmpd
sed -i "s|-Lsd|-LS4d|" /lib/systemd/system/snmpd.service
systemctl daemon-reload
service snmpd restart
@luukverhoeven
luukverhoeven / config.class.php
Last active November 3, 2022 20:14
Moodle PHPstorm helper.php / used for auto-completion
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@luukverhoeven
luukverhoeven / AdobeFixAMD
Created February 10, 2020 16:08 — forked from XLNCs/AdobeFixAMD
To fix adobe products crashes on AMD hackintosh
___ADOBE CRASH FIX BY XLNC___
USAGE : Open terminal and run the below commands as required.
NOTE: File path changes in each version release. So if the file is not found you can find the specified file manually and replace the path in the below commands.
You can also use this command to find the location of a specific adobe file :
eg:- if you want to search for MMXCore then run this command :
find /Applications/Adobe* -type f -name "MMXCore" | sed 's/ /\\ /g'
Photoshop crash fix :-
@luukverhoeven
luukverhoeven / config.plist
Last active February 10, 2020 13:43
AMD-opencore / SURF10
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>Add</key>
<array>
<dict>
<key>Comment</key>
{
"admin":{
"id":null,
"name":"Sitebeheer",
"link":"http:\/\/moodle35.web04.domein.nl\/admin\/search.php",
"hidden":false,
"haschildren":true,
"children":[
{
"id":null,
window.addEventListener('load', () => {
document.body.classList.remove('preload')
});
(function () {
window.__onThemeChange = function () {};
function setTheme(newTheme) {
window.__theme = newTheme;
preferredTheme = newTheme;
<?php
// Temp
foreach(range(24,300) as $i){
$backend = new tool_generator_course_backend(
'DUMMY' . $i,
0,
false,
false,
false,