Skip to content

Instantly share code, notes, and snippets.

View LatinSuD's full-sized avatar


  • Spain
View GitHub Profile
LatinSuD / dns_get_record_from.php
Last active May 6, 2024 19:24 — forked from bohwaz/dns_get_record_from.php
PHP script to retrieve a DNS record from a custom nameserver
* Make a DNS a request to a custom nameserver, this is similar to dns_get_record, but allows you to query any nameserver
* Usage: dns_get_record_from('ns.server.tld', 'A', 'mydomain.tld');
* => ['']
* @author bohwaz
function dns_get_record_from(string $server, string $type, string $record): array
LatinSuD / google_search_maps_addon.js
Created April 8, 2024 16:38 — forked from Daan-Grashoff/google_search_maps_addon.js
Bring back the google maps button when searching on google
// ==UserScript==
// @name Google Maps in Google Search
// @namespace
// @version 2024-03-13
// @description Bring google maps button back
// @author Daan-Grashoff / LatinSuD
// @match*
// @icon
// @grant none
// ==/UserScript==
# Force a delay between mouse touches screen border and when panel (eg: taskbar) pops up
# This is a little hackish. It will detect mouse position, and move the panel out of the screen
# Currently only works for a bar on the left
# Requires: xdotool
# Desktop Height
LatinSuD /
Created June 23, 2022 06:08
Ping Continuo
# Hace pings normales y solo muestra cuando hay perdidas
export LANG=C
if [ -t 1 ]; then # es shell interactivo
trap "stty echo; echo" SIGINT SIGTERM
stty -echo
Human: AI, please invent a new pokemon and describe it.
AI: Here you are.
Human: How is it called?
Human: Couldn't you come up with a shorter name?
AI: Not really.
Human: Ok. What are its powers?
AI: It is a Pokémon that interacts with humans, and has about 7984 extrasensory powers.
Human: What does it look like?
AI: It is completely invisible, can teleport by using space-time warps, and has the power to manipulate humans. It is extremely huggable, however, and looks like a cloud with 1 to 21 invisible 0.04 cm tall humanoids usually floating around.
LatinSuD / gist:b86280e571ce7fb22b0e2808a0c99ab0
Created September 9, 2021 07:22
Wiki.js search user script
// ==UserScript==
// @name Wiki.js Search
// @namespace
// @version 0.1
// @description try to take over the world!
// @author You
// @match*
// @grant none
// @run-at document-idle
// ==/UserScript==
#include <stdio.h>
#define is_num(x) ( x>='0' && x<='9' )
int main(int argc, char **argv) {
int a1,a2,a3,a4,a5,a6,a7,a8,a9;
int filas;
int maxfilas=10;
LatinSuD /
Last active August 23, 2019 10:20
Plugin para mitmdump para autenticar automaticamente en Django.
from pprint import pprint
import re
import requests
from lxml import html
from import cookies
from archivo_configuracion import usuario, passw
import traceback
# La idea es poder mostrar informacion desde una pantalla que no tiene teclado, luego no puede autenticarse.
# En lugar de eso se configura como proxy en la pantalla a otro servidor que corre mitmdump con este plugin.
LatinSuD /
Last active May 15, 2017 13:51
Script para Powershell para saber si un PC esta actualizado para MS17-010
# Sacado originalmente de:
# KB4012212 - Windows Server 2008 y Win7
# KB4012217 KB4015551 KB4019216 - Windows Server 2012
# KB4012216 KB4015550 KB4019215 - Windows Server 2012 R2
# KB4013429 KB4019472 KB4015217 KB4015438 KB4016635 - Windows Server 2016
# List of all HotFixes containing the patch
$hotfixes = "KB4012212", "KB4012217", "KB4015551", "KB4019216", "KB4012216", "KB4015550", "KB4019215", "KB4013429", "KB4019472", "KB4015217", "KB4015438", "KB4016635"
# Search for the HotFixes
LatinSuD / filterMTR.c
Last active May 15, 2017 10:15
Filter MTR output to prevent it from clearing screen after finishing (tested on Cygwin). It works by messing with the ANSI codes
MTR is an enhanced traceroute tool for Linux and friends
Cygwin (tested with 32 bit version, 2017-05-10).
MTR built from
Simple compiling:
gcc -o procesarmtr.exe procesarmtr.c