Skip to content

Instantly share code, notes, and snippets.

View tsumarios's full-sized avatar
💭
Technology trust is a good thing, but control is a better one.

Mario Raciti tsumarios

💭
Technology trust is a good thing, but control is a better one.
View GitHub Profile
@tsumarios
tsumarios / ai4cysec.ipynb
Last active April 18, 2024 08:33
AI4CySec.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tsumarios
tsumarios / eml_4n6.py
Last active December 21, 2023 14:41
eml_4n6 is a simple Python script designed for email forensics and attachment extraction. With a focus on preserving chain of custody, it extracts attachments from .eml files, logs metadata, and uncovers forensic artefacts such as URLs within email payloads.
#!/usr/bin/env python3
"""
Script: eml_4n6.py
Description: Extract attachments and log metadata from EML files.
Author: tsumarios
Date: 21/12/2023
Note: This script is based on https://github.com/diogo-alves/eml-extractor and extends it with logging and other forensics features.
Usage:
#!/usr/bin/env python3
import base64
import datetime
import hmac
import os
import struct
import time
import sys
@tsumarios
tsumarios / keybase.md
Last active March 23, 2021 14:03
Keybase proof.

Keybase proof

I hereby claim:

  • I am tsumarios on github.
  • I am marioraciti (https://keybase.io/marioraciti) on keybase.
  • I have a public key ASDuJvc74g4gPktCnKSQ863mKMuvr4mYyF1sSecFruxphwo

To claim this, I am signing this object:

@tsumarios
tsumarios / goneypot.go
Created September 23, 2020 16:23
A simple TCP honeypot written in Go. Usage: "go run goneypot.go <port>" or build a binary and run it specifying a port.
package main
import (
"bytes"
"log"
"net"
"os"
)
// Connection handler
@tsumarios
tsumarios / revshell.go
Last active November 19, 2020 20:22
Simple TCP reverse shell written in Go. This program expects two arguments: IP address and the port of the remote host. Usage: "go run revshell.go <IP> <port>" or build a binary and run it with both arguments.
package main
import (
"fmt"
"net"
"os"
"os/exec"
)
func main() {
@tsumarios
tsumarios / portscanner.md
Created July 2, 2020 09:54
Browser-based Port Scanner. Tested on Firefox.
@tsumarios
tsumarios / unrealircd.conf
Created April 14, 2019 16:09
UnrealIRCd 3.2.8.1 *NIX conf file
/*
* example.conf by Daniel Hawton AKA Osiris (osiris@unrealircd.org).
* $Id: example.conf,v 1.1.1.1.2.24 2009/04/13 11:03:55 syzop Exp $
*
* Works for Unreal3.2 and up
*
* Okay guys. This is the new example.conf. Its look is much like C++, kinda.
* Anyway it is time to go over this. It's hard to pick up at first, but
* with some pratice and reading you'll understand.
*
@tsumarios
tsumarios / vulnerable_server.c
Last active July 30, 2019 15:03
TCP server with a simple backdoor
/* TCP server with Backdoor */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
@tsumarios
tsumarios / keysBruteforceSSH.py
Last active February 12, 2019 17:27
SSH Keys Dictionary Attack
#!/usr/bin/env python
import pexpect
import optparse
import os
from threading import *
maxConnections = 5
connection_lock = BoundedSemaphore(value=maxConnections)
Stop = False
Fails = 0