Skip to content

Instantly share code, notes, and snippets.

View dorneanu's full-sized avatar
💭
Engineering #security stuff in #go and #python in #AWS

Victor Dorneanu dorneanu

💭
Engineering #security stuff in #go and #python in #AWS
View GitHub Profile
@dorneanu
dorneanu / plugin_architecture.md
Last active April 17, 2024 00:15
Python: Implement basic plugin architecture with Python and importlib

Implementing a basic plugin architecture shouldn't be a complicated task. The solution described here is working but you still have to import every plugin (inheriting from the base class).

This is my solution:

Basic project structure

$ tree
@dorneanu
dorneanu / main.go
Last active September 27, 2023 16:06
Simple JS keylogger (can be used in XSS) in combination with a websocket server in Golang. Adapted from the example in the "Black Hat Go" book.
package main
import (
"flag"
"fmt"
"html/template"
"log"
"net/http"
"github.com/gorilla/mux"
@dorneanu
dorneanu / go.mod
Created June 10, 2021 11:43
Convert miMind XML exports to JSON
module mimind2json
go 1.16
require github.com/beevik/etree v1.1.0
@dorneanu
dorneanu / add_link_to_dropbox.sh
Created August 16, 2021 11:49
This will fetch readable content from an URL (using rdrview), convert HTML content to Epub (using pandoc) and finally upload the e-book to Dropbox (using rclone)
@dorneanu
dorneanu / subscriptions.opml
Created June 13, 2022 12:03
My RSS Subscriptions
<?xml version="1.0"?>
<opml version="1.0">
<head>
<title>Elfeed-Org Export</title>
</head>
<body>
<outline title="elfeed">
<outline title="reddit">
<outline title="inbox" xmlUrl="https://www.reddit.com/message/inbox/.rss?feed=68ab399ca4600a1cfa26b3b49b794299eb01583c&amp;user=cyneox"/>
<outline title="listings" xmlUrl="https://www.reddit.com/.rss?feed=68ab399ca4600a1cfa26b3b49b794299eb01583c&amp;user=cyneox"/>