Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View BobuSumisu's full-sized avatar

Øyvind Ingvaldsen BobuSumisu

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bobusumisu on github.
  • I am bobusumisu (https://keybase.io/bobusumisu) on keybase.
  • I have a public key ASC4CjwBevQkb7P61ooNNoKzlJBga7KJik6miij9vRLU2go

To claim this, I am signing this object:

(import foreign)
(foreign-declare "#include <pcap.h>")
(define-foreign-variable PCAP_ERRBUF_SIZE int)
(define-foreign-variable BUFSIZ int)
(define errbuf (make-string PCAP_ERRBUF_SIZE))
;; char *pcap_lookupdev(char *errbuf);
#include <stdlib.h>
#include <stdio.h>
void process(int number, int time) {
printf("Prosess %d kjører.\n", number);
sleep(time);
printf("Prosess %d kjørte i %d sekunder.\n", number, time);
}
// ==UserScript==
// @name Wowhead Items TSM
// @namespace http://github.com/BobuSumisu
// @version 0.1
// @description Easy TSM Import from Wowhead Item Lists
// @author Øyvind Ingvaldsen <oyvind.ingvaldsen@gmail.com>
// @match http://www.wowhead.com/items=*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
ip_dst = "192.168.1.1"
if __name__ == "__main__":
if len(sys.argv) != 3:
print("Usage: domains2pcap.py DOMAIN-FILE PCAP-FILE")
int __cdecl decrypt(int src, int count, int dest, unsigned int key)
{
unsigned int r1; // eax@1
unsigned int r3; // edx@1
unsigned int r2; // ecx@1
int pos; // esi@2
char byte; // bl@4
char done; // zf@4
r1 = key;
#!/usr/bin/env python2
# Simple config extractor for Bozok v1.4.3
import sys
import pefile
import json
import re
def extract_conf(filename):
data = open(filename, 'rb').read()
(define-syntax try
(syntax-rules (catch)
((try try-body ... (catch catch-body ...))
(handle-exceptions exn ((lambda () catch-body ...)) ((lambda () try-body ...))))))
(try (socket-receive sock 4096)
(catch (print "[!] No HELLO from server")
(socket-close sock)
(exit 1)))
@BobuSumisu
BobuSumisu / gist:6713484
Created September 26, 2013 12:29
ec mapping, "prettified"
{
"kibana-int":{
"temp":{
"properties":{
"dashboard":{
"type":"string"
},
"group":{
"type":"string"
},
@BobuSumisu
BobuSumisu / gist:6713467
Created September 26, 2013 12:28
ES mapping
{"kibana-int":{"temp":{"properties":{"dashboard":{"type":"string"},"group":{"type":"string"},"title":{"type":"string"},"user":{"type":"string"}}},"dashboard":{"properties":{"dashboard":{"type":"string"},"group":{"type":"string"},"title":{"type":"string"},"user":{"type":"string"}}}},"logstash-2013.09.25":{"logs":{"properties":{"@timestamp":{"type":"date","format":"dateOptionalTime"},"@version":{"type":"string"},"host":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"}}}},"logstash-2013.09.26":{"logs":{"properties":{"@timestamp":{"type":"date","format":"dateOptionalTime"},"@version":{"type":"string"},"agent":{"type":"string"},"auth":{"type":"string"},"bytes":{"type":"string"},"clientip":{"type":"string"},"coords":{"type":"double"},"geoip":{"properties":{"city_name":{"type":"string"},"continent_code":{"type":"string"},"country_code2":{"type":"string"},"country_code3":{"type":"string"},"country_name":{"type":"string"},"ip":{"type":"string"},"latitude":{"type":"double"}