Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
melting-cobalt — Uno scanner per Cobalt Strike che recupera i beacon rilevati del Team Server in un oggetto JSON | Kitploit
Strumenti/GitHubGitHub/splunk/melting-cobalt
OSINT (Open Source Intelligence)RicognizioneRaccolta InformazioniSicurezza di ReteCommand and ControlThreat IntelligenceArchived
GitHubsplunk/melting-cobalt

melting-cobalt

Uno scanner per Cobalt Strike che recupera i beacon rilevati del Team Server in un oggetto JSON

Vedi Repository
169233 anni faRevisionato da Kitploit

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Condividi

melting-cobalt 👀

Uno strumento per cercare/minare beacon di Cobalt Strike e "ridurre" la loro configurazione dei beacon per un'indicizzazione successiva. Le ricerche possono essere estese e su Internet ampio utilizzando servizi come SecurityTrails, Shodan o ZoomEye oppure un elenco di IP.

Per iniziare

  1. Installa melting-cobalt
  2. Configura i tuoi token per iniziare la ricerca
  3. Minera i Beacon per iniziare a ridurli
  4. Rivedi i risultati cat results.json | jq

📺 Demo

Dimostrazione di Melting-Cobalt

Installazione

Requisiti: virtualenv e python3.8+

  1. git clone https://github.com/splunk/melting-cobalt && cd melting-cobalt Clona il progetto e spostati nella directory del progetto.
  2. pip install virtualenv && virtualenv -p python3 venv && source venv/bin/activate && pip install -r requirements.txt Crea Virtualenv e installa i requisiti.

Continua con configurazione per ottenere la chiave API di SecurityTrails, Shodan o ZoomEye.

Configurazione melting-cobalt.conf

Copia melting-cobalt.conf.example in melting-cobalt.conf!

Assicurati di impostare un token per uno dei provider disponibili. Se hai bisogno di crearne uno per il tuo account, segui [queste](htt://need wiki page) istruzioni.

Esempio di configurazione:

root@kitploit:~
[global]
output = results.json
# stores matches in JSON here

log_path = melting-cobalt.log
# Sets the log_path for the logging file

log_level = INFO
# Sets the log level for the logging
# Possible values: INFO, ERROR, VERBOSE

nse_script = grab_beacon_config.nse
# path to the nse script that rips down cobalt configs. This is specifically using https://github.com/whickey-r7/grab_beacon_config

searches = search.yml
# contains the different searches to run on each internet scanning service provider (eg shodan, zoomeye, security trails) when hunting for team servers.

shodan_token = TOKENHERE
# shodan token for searching

zoomeye_token = TOKENHERE
# zoomeye token for searching

securitytrails_token = TOKENHERE
# security trails token for searching

Cerca su Internet

Per modificare la ricerca predefinita eseguita su diversi provider, personalizza search.yml. I Esempi di Ricerca predefiniti di melting-cobalt sono di seguito.

Esegui:

python melting-cobalt.py

Cerca elenco IP

popola ips.txt con potenziali IP C2 di Cobalt Strike separati da nuova riga, esempio:

root@kitploit:~
1.1.1.1
2.2.2.2
3.3.3.3

Esegui:

python melting-cobalt.py -i ips.txt

Se hai bisogno di ispirazione da cacciatori, raccomandiamo vivamente:

  • The DFIR Report
  • Awesome-Cobalt-Strike
  • CobaltStrikeBot

Utilizzo

root@kitploit:~
usage: melting-cobalt.py [-h] [-c CONFIG] [-o OUTPUT] [-v] [-i INPUT]

scans for open cobalt strike team servers and grabs their beacon configs and write this as a json log to be analyzed by any analytic tools
like splunk, elastic, etc..

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        config file path
  -o OUTPUT, --output OUTPUT
                        file to write to the results, defaults to results.json.log
  -v, --version         shows current melting-cobalt version
  -i INPUT, --input INPUT
                        newline delimeted file of cobalt strike server ips to grab beacon configs from. example ips.txt

Esempi di Ricerca

Le seguenti ricerche sono fornite di default e altre possono essere aggiunte a search.yml per più dati.

Shodan

Trova firme JARM specifiche, di default monitoriamo Cobalt Strike 4.x

'ssl.jarm:07d14d16d21d21d07c42d41d00041d24a458a375eef0c576d23a7bab9a9fb1'

Filtra per intestazioni HTTP e porte per ridurre risultati rumorosi

'ssl.jarm:07d14d16d21d21d07c42d41d00041d24a458a375eef0c576d23a7bab9a9fb1 port:"22, 80, 443, 444, 1234, 2000, 2222, 3000, 3780, 4000, 4443, 6379, 7443, 8443, 8080, 8081, 8082, 8087, 8088, 8099, 8089, 8090, 8181, 8888, 8889, 9443, 50050" HTTP/1.1 404 Not Found Content-Length: 0'

Team server rilevato da Shodan

'product:"cobalt strike team server"'

nota: genererà molti risultati rumorosi, non schedulare questo se non vuoi bruciare i tuoi crediti di licenza.

Serial del certificato del team server

'ssl.cert.serial:146473198'

SecurityTrails

Trova firme JARM specifiche

'SELECT address, ports.port FROM ips WHERE jarm = "07d14d16d21d21d07c42d41d00041d24a458a375eef0c576d23a7bab9a9fb1"'

Filtra per intestazioni HTTP e porte per ridurre risultati rumorosi di nmap

'SELECT address, ports.port, isp.name_normalized, ports.port, address, asn.number, jarm, http.headers.raw FROM ips WHERE jarm = "07d14d16d21d21d07c42d41d00041d24a458a375eef0c576d23a7bab9a9fb1" OR jarm = "07d14d16d21d21d07c07d14d07d21d9b2f5869a6985368a9dec764186a9175" OR jarm = "2ad2ad16d2ad2ad22c42d42d00042d58c7162162b6a603d3d90a2b76865b53" AND http.headers.content_type = "text/plain" AND http.headers.raw = "content-length:0" AND ports.port IN (22, 80, 443, 444, 1234, 2000, 2222, 3000, 3780, 4000, 4443, 6379, 7443, 8443, 8080, 8081, 8082, 8087, 8088, 8099, 8089, 8090, 8181, 8888, 8889, 9443, 50050)'

Autore

  • Michael Haag @M_haggis
  • Jose Hernandez @d1vious

Supporto 📞

Utilizza il GitHub issue tracker per segnalare bug o richiedere funzionalità.

Se hai domande o hai bisogno di supporto, puoi:

  • Unisciti al canale #security-research nel Splunk Slack channel

Crediti e Riferimenti

  • L'ispirazione è venuta da alcuni blog:https://michaelkoczwara.medium.com/cobalt-strike-c2-hunting-with-shodan-c448d501a6e2, https://sergiusechel.medium.com/improving-the-network-based-detection-of-cobalt-strike-c2-servers-in-the-wild-while-reducing-the-6964205f6468
  • Gran parte di questo è possibile solo perché whickey-r7 ha condiviso con noi grab_beacon_config.nse
  • Aan Per aver contribuito all'integrazione ZoomEye!

TODO

  • Deduplica i risultati prima di nmap
  • aggiungi controllo del risultato più recente osservando il campo latest_updated

Licenza

Copyright 2020 Splunk Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Scarica lo strumento