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/perl | |
use strict; | |
use warnings; | |
use HTTP::Daemon; | |
use IO::Socket; | |
my $torport=9051; | |
my $password="footor"; | |
my $good = HTTP::Response->new( |
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
$ nmap --script dns-zone-transfer --script-args dns-zone-transfer.domain=zonetransfer.me -p 53 -Pn $(dig +short zonetransfer.me NS | head -1) | |
Starting Nmap 6.02 ( http://nmap.org ) at 2012-07-09 10:50 CDT | |
Nmap scan report for ns12.zoneedit.com. (209.62.64.46) | |
Host is up (0.033s latency). | |
rDNS record for 209.62.64.46: ns12.zoneedit.com | |
PORT STATE SERVICE | |
53/tcp open domain | |
| dns-zone-transfer: | |
| zonetransfer.me. SOA ns16.zoneedit.com. soacontact.zoneedit.com. |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use 5.012; | |
my %kex_scores = ( | |
NULL => 0, | |
anon => 0, | |
EXPORT => 40, |
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
description = [[ | |
Print a bunch of pages. | |
]] | |
author = "Daniel Miller" | |
license = "Same as Nmap--See http://nmap.org/book/man-legal.html" | |
categories = {"intrusive", "dos"} |
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/perl -an | |
# One-liner version: | |
# lsof -d txt,0,1,2 | perl -anE'push@g,$F[1]if$F[4]eq"CHR"and$F[8]=~/^.dev.[pt]t[sy]/;$t{$F[1]}=$_ if$F[3]eq"txt"and$F[8]=~/^.(usr.)?bin.((b|d)?a|z|k|c|tc)*sh/;END{delete$t{$_}for@g;say values%t}' | |
# store the PID of processes that use a PTY/TTY for STDIN, STDOUT, or STDERR | |
push @g, $F[1] if $F[4] eq "CHR" and $F[8]=~/^.dev.[pt]t[sy]/; | |
# Store the whole line if the txt file descriptor is a shell | |
$t{$F[1]}=$_ if $F[3] eq "txt" and $F[8]=~/^.(usr.)?bin.((b|d)?a|z|k|c|tc)*sh/; |
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
description = [[Minimal framework for testing NSE scripts. Modify as needed.]] | |
author = "Daniel Miller" | |
license = "Same as Nmap--See http://nmap.org/book/man-legal.html" | |
categories = {"testing"} | |
prerule = function() return true end |
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
#My AES implementation | |
# By Daniel Miller | |
def xor(s1, s2): | |
return tuple(a^b for a,b in zip(s1, s2)) | |
class AES(object): | |
class __metaclass__(type): | |
def __init__(cls, name, bases, classdict): | |
cls.Gmul = {} |
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 = [ |
OlderNewer