GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - VultureProject/darwin-client-python: Python connector to interact with DARWIN cybersecurity framework

This repository was archived by the owner on Nov 3, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

58 Commits
58 Commits

Folders and files

NameName
Last commit message
Last commit date
darwin
darwin
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
setup.py
setup.py
 
 

Repository files navigation

Darwin Python Client

Welcome to the Darwin Python Client project!

Here is a Quickstart page. If you want to learn more about the DPC, please read the Wiki, which goes into details with the different functions and parameters that you can use.

You can also check out the ./darwin/examples.py file, or simply read the source code in the ./darwin/ folder.

1. Installation

pip install git+https://github.com/VultureProject/darwin-client-python.git

2. Connect to Darwin

Before making any calls, please initialize the Darwin Python instance, which will connect to Darwin.

... with a Unix socket

from darwin import DarwinApi

darwin_api = DarwinApi(socket_path="/var/sockets/darwin/dga_1.sock",
                       socket_type="unix", )

... with a TCP socket

from darwin import DarwinApi

darwin_api = DarwinApi(
    socket_host="192.168.0.1",
    socket_port=4242,
    socket_type="tcp",
)

3. Call with the DP instance

Just call Darwin with the arguments in a list. The response type can have different values:

  • "no": no response will be given
  • "back": Darwin will reply directly to the caller
  • "darwin": Darwin will send its result to the next filter, without replying back to the caller
  • "both": the "back" and "darwin" options will be set
darwin_api.call(
    ["example.com"],
    filter_code="DGA",
    response_type="back",
)

3 bis. Bulk call with the DP instance

Same than point 3, but the data has to be given in a list to make it... bulky. Hm...

darwin_api.bulk_call(
    [
        ["example.com"],
        ["1jd1d0w9dsaj10245dsaf.tk"],
        ["14dfaqwgkifsdfwe324511.biz"],
    ],
    filter_code="DGA",
    response_type="back",
)

4. Close the connection

You need to close the connection to Darwin as well.

darwin_api.close()

About

Python connector to interact with DARWIN cybersecurity framework

Topics

c-plus-plusmachine-learningpython3vulture

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

1 star

Watchers

5 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.