Skip to content

Instantly share code, notes, and snippets.

View xenomuta's full-sized avatar

Rilke Petrosky Ulloa xenomuta

View GitHub Profile
@xenomuta
xenomuta / SMBDIS.ASM
Created June 13, 2020 01:21 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@xenomuta
xenomuta / amsi-eicar.py
Created October 18, 2019 13:49 — forked from ek-nath/amsi-eicar.py
Demo python script for AMSI API
# Python Port of https://gist.github.com/richinseattle/1cafd9368890ecf3d8e1dbbc18f2fe38
from ctypes import HRESULT, windll, POINTER, byref
from ctypes.wintypes import HANDLE, LPCWSTR, UINT, LPCSTR
from enum import IntEnum
from comtypes.hresult import S_OK
class AMSI_RESULT(IntEnum):
AMSI_RESULT_CLEAN = 0,
AMSI_RESULT_NOT_DETECTED = 1
@xenomuta
xenomuta / amsi.py
Created October 18, 2019 12:53 — forked from masthoon/amsi.py
AMSI Interface in Python
import sys
import windows
import windows.winproxy
import windows.generated_def as gdef
class AMSIProxy(windows.winproxy.ApiProxy):
APIDLL = "Amsi"
default_error_check = staticmethod(windows.winproxy.no_error_check)
"""

Keybase proof

I hereby claim:

  • I am xenomuta on github.
  • I am xenomuta (https://keybase.io/xenomuta) on keybase.
  • I have a public key whose fingerprint is CB18 D26F F2B7 E21E 65E2 33EA A74E 8AA7 41C1 3953

To claim this, I am signing this object:

@xenomuta
xenomuta / httpd.asm
Created November 21, 2013 15:00 — forked from DGivney/httpd.asm
section .text
global _start
_start:
xor eax, eax ; init eax 0
xor ebx, ebx ; init ebx 0
xor esi, esi ; init esi 0
jmp _socket ; jmp to _socket
_socket_call:
@xenomuta
xenomuta / palindromos.js
Last active December 16, 2015 20:59
Búsqueda de números palíndromos dentro de una lista de rangos.
console.time("Tiempo de computo");
var total = 0, unicos = 0, rangos = [], min = 99999999999, max = 0;
function alReves (num) {
for (var rev = 0;; rev = rev * 10 + (num % 10), num = parseInt(num / 10))
if (num <= 0) return rev;
}
var lineas = require("fs").readFileSync("seed.txt", "utf-8").toString().split(/\n/);
for (var linea in lineas) {
var rango = lineas[linea].split(/\s+/)
if (rango.length < 2) break;
@xenomuta
xenomuta / httpd.asm
Last active January 4, 2024 13:53
httpd.asm: Arguably the world smallest web server. ( for GNU/Linux i386. Compile with nasm )
section .text
global _start
_start:
xor eax, eax
xor ebx, ebx
xor esi, esi
jmp _socket
_socket_call:
@xenomuta
xenomuta / cdr_fijo_mongodb.js
Created March 15, 2012 04:48
Asterisk CDR with NodeJS and MongoDB
/*
cdr_fifo_mongodb: A quick and dirty hack that consists of configuring asterisk’s
cdr_custom.conf to write to a named pipe, which will be then read by node and
then written into mongodb.
good alternative to cdr_mongodb, 'cause I couldn't make it work stable for 1.8
*/
var config = {
"dburl": "asterisk", /* user:pass@host/db */
"collections": ["cdr"],
"fifo": "/var/log/asterisk/cdr-custom/cdr_fifo.csv",