Skip to content

Instantly share code, notes, and snippets.

View jlucaso1's full-sized avatar
🏠
Working from home

João Lucas de Oliveira Lopes jlucaso1

🏠
Working from home
View GitHub Profile
@albinowax
albinowax / connection-state-attack.bambda
Created October 16, 2025 13:24
Connection state attack Custom Action for Burp Repeater
// For context check out https://portswigger.net/web-security/host-header/exploiting#connection-state-attacks
var connectionId = utilities().randomUtils().randomString(8);
var options = RequestOptions.requestOptions().withConnectionId(connectionId).withHttpMode(HttpMode.HTTP_1);
// Send a simple GET / HTTP/1.1 to the target as the precusor request
var url = requestResponse.request().url();
var precursorRequest = HttpRequest.httpRequestFromUrl(url);
precursorRequest = precursorRequest.withPath("/").withHeader("Connection", "keep-alive");
// Send the attack in the repeater, and update the response pane
@jonathanderque
jonathanderque / test_runner.zig
Created September 4, 2025 09:51
Custom Zig Test Runner (zig 0.15 version)
// This is for the stable version of Zig (0.15.1)
// Adapted from (0.14.1 version): https://gist.github.com/karlseguin/c6bea5b35e4e8d26af6f81c22cb5d76b
// Changed Sep 04, 2025 to accomodate latest Zig changes
// See history if you're using an older version of Zig.
// in your build.zig, you can specify a custom test runner:
// const tests = b.addTest(.{
// .target = target,
// .optimize = optimize,
// .test_runner = .{ .path = b.path("test_runner.zig"), .mode = .simple }, // add this line
@dillionverma
dillionverma / lucide-react.d.ts
Last active November 8, 2025 10:24
How to stop @radix-ui, next/router and lucide-react auto-imports
declare module 'lucide-react' {
export * from 'lucide-react/dist/lucide-react.suffixed'
}
@purpshell
purpshell / log.js
Last active October 16, 2025 03:01
A monitoring script based on Tulir's wa-web/web-scripts logging script, for 2.3000x
if (!window.decodeStanza) {
window.decodeStanza = require("WAWap").decodeStanza;
window.encodeStanza = require("WAWap").encodeStanza;
}
require("WAWap").decodeStanza = async (e, t) => {
const result = await window.decodeStanza(e, t);
console.log('RECV', result.toString(), result);
@trvswgnr
trvswgnr / compress_video
Last active December 7, 2025 13:00
portable shell script to compress videos with ffmpeg
#!/bin/sh
print_usage() {
echo "usage: compress_video <input_file>"
echo "supported formats: mp4, webm, mkv, mov, avi, flv"
}
get_extension() {
f="${1##*/}"
case "$f" in
@purpshell
purpshell / monitor.js
Created May 13, 2024 14:48
Monitor Socket messages on 2.3000x and above
if (!window.decodeBackStanza) {
window.decodeBackStanza = require("WAWap").decodeStanza;
window.encodeBackStanza = require("WAWap").encodeStanza;
}
require("WAWap").decodeStanza = async (e, t) => {
const result = await window.decodeBackStanza(e, t);
@Geczy
Geczy / readme.md
Last active November 7, 2025 20:02
Migrate Coolify to a new server
@ammuench
ammuench / 8BitDoUltimateWifi_Linux.MD
Last active December 12, 2025 14:51
8BitDo Ultimate 2.4GHz wifi working in linux
@ditzel
ditzel / KdTree.cs
Last active September 15, 2025 15:31
k-d Tree
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Profiling;
public class KdTree<T> : IEnumerable<T>, IEnumerable where T : Component
{
protected KdNode _root;
protected KdNode _last;
@maskit
maskit / gist:2252422
Created March 30, 2012 15:57
WebSocket traffic sniffer
(function () {
WebSocket.prototype._send = WebSocket.prototype.send;
WebSocket.prototype.send = function (data) {
this._send(data);
this.addEventListener('message', function (msg) {
console.log('>> ' + msg.data);
}, false);
this.send = function (data) {
this._send(data);
console.log("<< " + data);