This file contains hidden or 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
| #!env python3 | |
| import socket | |
| from time import time | |
| import datetime | |
| class DNSQuery: | |
| def __init__(self, data): | |
| self.data = data | |
| self.domain = '' |
This file contains hidden or 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
| alert('executed'); |
This file contains hidden or 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 re | |
| import os | |
| import string | |
| import argparse | |
| def get_cert_from_file(regex, filename): | |
| try: | |
| cert_file = open(filename) | |
| cert_content = cert_file.read() |
This file contains hidden or 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
| def create_vbs_from_file(filename) | |
| content = File.read(filename) | |
| exe = content.unpack("H*").join | |
| vbs = "" | |
| var_bytes = "var_bytes" #Rex::Text.rand_text_alpha(rand(8)+8) | |
| var_byte = "var_byte" #Rex::Text.rand_text_alpha(rand(8)+8) | |
| var_fname = "var_fname" #Rex::Text.rand_text_alpha(rand(8)+8) | |
| var_func = "var_func" #Rex::Text.rand_text_alpha(rand(8)+8) | |
| var_stream = "var_stream" #Rex::Text.rand_text_alpha(rand(8)+8) |
This file contains hidden or 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 http = require "http" | |
| local shortport = require "shortport" | |
| local stdnse = require "stdnse" | |
| local string = require "string" | |
| local vulns = require "vulns" | |
| description = [[ | |
| Detects Ruby on Rails installations that are vulnerable to CVE-2013-0156, This critical vulnerability allows unauthenticated attackers to execute code remotely. | |
| This is the nmap/lua port of the metasploit scanner module from hd moore |