Skip to content

Instantly share code, notes, and snippets.

@reanimat0r
reanimat0r / download.py
Created July 10, 2019 03:05 — forked from mylamour/download.py
[threatfeeds download] #python #threat feeds.io
import re, os, sys
import json
import logging
import hashlib
import requests
from functools import partial
from bs4 import BeautifulSoup
from concurrent.futures import ProcessPoolExecutor
from multiprocessing import Pool, TimeoutError
from urllib.parse import urlparse
@reanimat0r
reanimat0r / pastebinhunter.py
Created July 10, 2019 02:57 — forked from mylamour/pastebinhunter.py
Get Data from Pastebin use api
from gevent import monkey
monkey.patch_all()
from SMLoki import SMLoki
from bs4 import BeautifulSoup
from urllib.parse import urlparse
from uuid import uuid1
import signal as signal_module
import requests
@reanimat0r
reanimat0r / html-email.html
Created July 10, 2019 02:06
HTML email boilerplate
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style type="text/css">
@reanimat0r
reanimat0r / clearRAM.sh
Created July 10, 2019 01:48 — forked from pklaus/clearRAM.sh
A Script to Clear Cached RAM on Linux
#!/bin/bash
## Bash Script to clear cached memory on (Ubuntu/Debian) Linux
## By Philipp Klaus
## see <http://blog.philippklaus.de/2011/02/clear-cached-memory-on-ubuntu/>
if [ "$(whoami)" != "root" ]
then
echo "You have to run this script as Superuser!"
exit 1
fi
@reanimat0r
reanimat0r / penTools.sh
Created July 10, 2019 01:46 — forked from jonathanwork/penTools.sh
this is creates a bunch of pentools for fedora
#!/bin/bash
#credits to https://github.com/madmantm/fedora-pentest-tools thanks :D
echo "[*]preliminary questions regarding user-rights"
clear
read -p "[*]Please enter your username, this will help me fix permissions:" myname
clear
echo "[*]what would be your prefered directory name for the tools? no slashes pls"
#!/bin/bash
#Installer script.
#Yes/No prompt.
read -p "This script will install all of the tools included in list.txt - Do you wanna install them to your current directory? [Y/n] " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
[[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1 # handle exits from shell or function but doesn't exit the interactive shell.
fi
@reanimat0r
reanimat0r / tcp.rs
Created July 10, 2019 01:24 — forked from rjbs/tcp.rs
use std::io::{Read,Write};
use std::net::{TcpListener,TcpStream};
use std::thread;
fn read_str (stream: &mut TcpStream) -> String {
let mut buf = vec![0u8; 256];
let x = stream.read(&mut buf).unwrap();
println!("read {} bytes", x);
if buf[x-2] == b'\r' && buf[x-1] == b'\n' {
#!/usr/bin/env bash
# Author: m8r0wn
# Description: Uses the Linux net commands to lookup a user in Active Directory
# This is the Linux equivalent of: net user [Username] /domain
# Usage: ./aduser_lookup.sh [username] [password] [DC-Server] [Lookup-User]
if [ ! $1 ];
then
printf "[-] Usage: $0 Username Password DC_Server username_to_lookup\n"
@reanimat0r
reanimat0r / whiteboardCleaner.md
Created July 10, 2019 00:33 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

#
# Building an MVP?
# Need a quick database you can set up in seconds?
# What about JSON?
#
# by @levelsio (with help from @marckohlbrugge, @oskarth, @maxdeviant and @kumailht)
# JS
db=[]
fs=require('fs')