Skip to content

Instantly share code, notes, and snippets.

View SametSisartenep's full-sized avatar

Rodrigo G. López SametSisartenep

View GitHub Profile
@SametSisartenep
SametSisartenep / webserver.go
Created July 28, 2016 10:13 — forked from alexisrobert/webserver.go
Tiny web server in Go for sharing a folder
/* Tiny web server in Golang for sharing a folder
Copyright (c) 2010-2014 Alexis ROBERT <alexis.robert@gmail.com>
Contains some code from Golang's http.ServeFile method, and
uses lighttpd's directory listing HTML template. */
package main
import "net/http"
import "net/url"
@SametSisartenep
SametSisartenep / Backdoor-Minimalist.sct
Created April 30, 2016 14:53
Execute Remote Scripts Via regsvr32.exe - Referred to As "squiblydoo" Please use this reference...
<?XML version="1.0"?>
<scriptlet>
<registration
progid="PoC"
classid="{F0001111-0000-0000-0000-0000FEEDACDC}" >
<!-- Proof Of Concept - Casey Smith @subTee -->
<!-- License: BSD3-Clause -->
<script language="JScript">
<![CDATA[
@SametSisartenep
SametSisartenep / gist:f747da0cb9973ca76ed25fd8a329cc55
Created April 29, 2016 13:43 — forked from atcuno/gist:3425484ac5cce5298932
HowTo: Privacy & Security Conscious Browsing

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

@SametSisartenep
SametSisartenep / gist:ebffac1288f5b55615a9320c398b4137
Last active April 18, 2016 15:15 — forked from paulfryzel/gist:3947535
like gofmt but for c... and using astyle
#!/usr/bin/env bash
# mostly from http://word.bitly.com/post/31921713978/static-analysis
function cfmt {
if [[ $# -ne 1 ]]; then
echo "Usage: cfmt <file>"
else
astyle \
--style=google \
--lineend=linux \
--convert-tabs \
@SametSisartenep
SametSisartenep / Makefile
Last active August 29, 2015 14:26 — forked from utaal/Makefile
webserver using libuv
webserver: webserver.c libuv/uv.a http-parser/http_parser.o
gcc -I libuv/include \
-lrt -lm -lpthread -o \
webserver webserver.c \
libuv/uv.a http-parser/http_parser.o
libuv/uv.a:
$(MAKE) -C libuv
http-parser/http_parser.o: