- Nmap. The script requires version 6.25 or newer. The latest version, 6.47, already includes the next 3 dependencies, so you can skip directly to the Scanning section below.
- An easy way to get the latest Nmap release is to use Kali Linux.
- Binary installers are available for Windows.
- RPM installer available for Linux, or install from source.
- .dmg installer available for Mac OS X.
- tls.lua. The script requires this Lua library for TLS handshaking.
- ssl-heartbleed.nse. This is the script itself.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- mcafee-epo-agent.nse V0.0.2, checks if ePO agent is running | |
-- Developed by Didier Stevens and Daniel Miller | |
-- https://DidierStevens.com | |
-- Use at your own risk | |
-- | |
-- History: | |
-- 2012/05/31: Start | |
-- 2012/06/01: extracting data from XML; tested with ePO 4.5 and 4.6 | |
-- 2012/06/05: V0.0.2 convertion to version script by Daniel Miller | |
-- 2012/06/20: new portrule by Daniel Miller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import struct | |
def leftrotate(i, n): | |
return ((i << n) & 0xffffffff) | (i >> (32 - n)) | |
class SHA1(object): | |
def __init__(self, data=""): | |
self.h = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import struct | |
def rightrotate(i, n, wsize): | |
return ((i << (wsize-n)) & (2**wsize-1)) | (i >> n) | |
class SHA2(object): | |
"""Abstract class for SHA-2 variants""" | |
def __init__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
if len(sys.argv) != 4: | |
print """{0} - Output a PNG from Nmap XML | |
Usage: {0} <scan.xml> <out.png> <width_in_pixels>""".format(sys.argv[0]) | |
sys.exit(1) | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import struct | |
def leftrotate(i, n): | |
return ((i << n) & 0xffffffff) | (i >> (32 - n)) | |
def F(x,y,z): | |
return (x & y) | (~x & z) | |
def G(x,y,z): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim indent file | |
" Language: Lua | |
" Maintainer: Daniel Miller <daniel@bonsaiviking.com> | |
" Original Author: Daniel Miller <daniel@bonsaiviking.com> | |
" Last Change: 2014 Feb 6 | |
" Only load this indent file when no other was loaded. | |
if exists("b:did_indent") | |
finish | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: progress.sh $(pgrep myprocess) $FD_NUMBER | |
# Find $FD_NUMBER by doing: ls -l /proc/$(pgrep myprocess)/fd/ | |
fd=/proc/$1/fd/$2 | |
fdinfo=/proc/$1/fdinfo/$2 | |
name=$(readlink $fd) | |
size=$(wc -c $fd | awk '{print $1}') | |
while [ -e $fd ]; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local nmap = require "nmap" | |
local shortport = require "shortport" | |
local bin = require "bin" | |
description = [[Sends the SQL Slammer worm to a host. | |
If vulnerable, it will attempt to propagate to other IP addresses. | |
DO NOT RUN THIS SCRIPT ON THE INTERNET. For use in closed environments | |
for educational purpose only.]] | |
license = "Same as Nmap--See http://nmap.org/book/man-legal.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then |