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 ruby | |
# meterpreter_command_scanner.rb | |
# | |
# This script is used for analyzing Metasploit Framework library and module source code files to identify references to | |
# the Meterpreter API. Originally implemented in support of https://github.com/rapid7/metasploit-framework/pull/15079. | |
# | |
require 'find' | |
# These are ignored because they do not invoke a Meterpreter command. |
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 python3 | |
# -*- coding: utf-8 -*- | |
# | |
# zpycompletion | |
# | |
# Copyright 2015 Spencer McIntyre <[email protected]> | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are | |
# met: |
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 bash | |
set -e | |
py_stdout_fd=1 | |
py_stderr_fd=2 | |
delay=0 | |
timeout=10 | |
params=() | |
show_help () { |
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
if __name__ == "__main__": | |
env = dict(os.environ) | |
if 'LD_PRELOAD' in env: | |
module.run(metadata, run) | |
else: | |
env['LD_PRELOAD'] = 'libproxychains4.so' | |
os.execve(os.path.realpath(__file__), sys.argv, env) |
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
# originally from Jason Lang (@curi0usJack) | |
# https://gist.github.com/curi0usJack/971385e8334e189d93a6cb4671238b10 | |
# version 1.1 | |
rules: | |
# TrendMicro | |
- source: 150.70.0.0/22 | |
target: https://www.google.com/ | |
- source: 150.70.104.0/22 | |
target: https://www.google.com/ | |
- source: 150.70.110.0/24 |
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
import logging | |
import metasploit.module as module | |
class MetasploitLogHandler(logging.Handler): | |
def emit(self, record): | |
log_entry = self.format(record) | |
level = 'debug' | |
if record.levelno >= logging.ERROR: | |
level = 'error' | |
elif record.levelno >= logging.WARNING: |
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
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/net-ssh/lib') | |
require 'net/ssh' | |
require 'socket' | |
if ARGV.length > 1 | |
server = TCPServer.new 2000 | |
loop do | |
client = server.accept | |
puts 'client connected' |
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
# /etc/crontab: system-wide crontab | |
# Unlike any other crontab you don't have to run the `crontab' | |
# command to install the new version when you edit this file | |
# and files in /etc/cron.d. These files also have username fields, | |
# that none of the other crontabs do. | |
SHELL=/bin/sh | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
# m h dom mon dow user command |
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 | |
# -*- coding: utf-8 -*- | |
# | |
# bt_shell.py | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# |
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
require 'msf/core' | |
require 'rex' | |
lib = File.join(Msf::Config.install_root, "test", "lib") | |
$:.push(lib) unless $:.include?(lib) | |
require 'module_test' | |
class Metasploit4 < Msf::Post |
NewerOlder