Skip to content

Instantly share code, notes, and snippets.

View nenodias's full-sized avatar

Horácio Dias Baptista Neto nenodias

View GitHub Profile
@nenodias
nenodias / README.md
Last active February 22, 2017 01:37
02 - Aula de Perícia Forense
@nenodias
nenodias / async_IO.py
Created February 23, 2017 21:30
Async IO
import asyncio
from time import time
def run_async():
startT = time()
async def speak_async():
print("With Async :)")
@nenodias
nenodias / README.md
Last active March 5, 2017 23:04
Laravel dependencies ubuntu

-- Laravel dependencies php 7 sudo apt-get install php7.0-cli php7.0-mbstring php-xml php7.0-sqlite3 php7.0-pgsql php7.0-mysql php-xdebug

--Laravel php5 sudo apt-get install php5-cli php5-pgsql php5-mysql php5-sqlite php5-xdebug

Configurar o xdebug.ini

xdebug.remote_enable=1
@nenodias
nenodias / .vimrc
Last active March 7, 2018 17:31
VIM - o/
" Specify a directory for plugins (for Neovim: ~/.local/share/nvim/plugged)
call plug#begin('~/.vim/plugged')
Plug 'crusoexia/vim-monokai'
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
@nenodias
nenodias / keymap.cson
Created March 6, 2017 10:56
atom keymap
'atom-text-editor':
'ctrl-shift-down': 'editor:add-selection-below'
'ctrl-shift-up': 'editor:add-selection-above'
from abc import ABCMeta
from abc import abstractmethod
class LowerMeta(type):
"""Metaclass thats change the attr and method to be used
with lowercase"""
def __new__(lowerattr_Metaclass, future_ClassName,
@nenodias
nenodias / arquivo.cpp
Created March 9, 2017 11:53
Teste Cpp
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string.h>
#include <malloc.h>
using namespace std;
struct Pessoa{
char *nome;
@nenodias
nenodias / git.txt
Created March 11, 2017 01:43
Git Permitir receber push
git init --bare
git config receive.denyCurrentBranch ignore
#criar arquivo do hook
touch hooks/post-receive && chmod +x hooks/post-receive && vim hooks/post-receive
#preencher o arquivo com \/
@nenodias
nenodias / README.md
Last active March 15, 2017 01:11
Forense Aula - 3

#mls é o novo comando alias mls='./ls --color'

Depois você pode colocar o iptables (script) e alterar a permissão dele com chmod+x (execução). Ao executar o arquivoexecutavel ele irá executar o iptables (script) que retornará uma shell com permissão root (Devido a permissão S do arquivoexecutavel concedida pelo root).

#THUG LIFE

@nenodias
nenodias / README.md
Last active March 22, 2017 01:35
Aula 3 21/03/2017

Lista os processos do usuário

lsof -u

Lista dados de um PID

lsof -p

##Descobrir dados do processo ps -aux | grep -i

Mostra arvore de processos do processo (LIBS etc)