Skip to content

Instantly share code, notes, and snippets.

View alwashali's full-sized avatar

Ali Alwashali alwashali

View GitHub Profile
@alwashali
alwashali / Vodafone_host_discovery.go
Created July 12, 2025 11:17
Discover the connected devices in the network via scraping the router devices page
// Vodafone router
// Firmware version: 3.6.12-IMS-KDG
package main
import (
"bytes"
"crypto/sha256"
"encoding/hex"
"encoding/json"
@alwashali
alwashali / kql_schema.json
Created March 11, 2025 15:59
Microsoft Defender KQL Schema
{
"Tables": [
{
"Schema": [
{
"Description": "Date and time when the record was generated",
"Type": "DateTime",
"Entity": null,
"Name": "Timestamp"
},
@alwashali
alwashali / obsidian_file_manager.py
Created October 1, 2024 10:55
Delete images that was not referenced in any notes and move images to the note directory if it's referenced once
import os
import re
import shutil
import sys
class ObsidianFileManager:
def __init__(self, vault_path):
self.vault_path = vault_path
self.markdown_files = self.get_markdown_files()
self.files = self.get_all_files()
@alwashali
alwashali / delete_md_with_images.py
Created September 21, 2024 10:29
Delete obsidian notes with all the referenced images
"""
Script to delete all images referenced in Markdown files within a specified notes path.
It scans the Markdown files for Obsidian image syntax and deletes all notes with the referenced images.
"""
import os
import re
import argparse
def delete_by_path(file_path):
@alwashali
alwashali / keylogger.go
Created March 19, 2024 19:33
keylogger and clipboard stealer
// Example of how easy to develop keylogger in golang
package main
import (
"fmt"
"github.com/atotto/clipboard"
"github.com/cloudflare/cfssl/log"
"github.com/eiannone/keyboard"
)
@alwashali
alwashali / pcap_download.go
Last active August 22, 2021 13:27
download pcaps
package main
import (
"fmt"
"strings"
"github.com/cavaliercoder/grab"
"github.com/gocolly/colly/v2"
)
func main() {
domain := "www.malware-traffic-analysis.net"
c := colly.NewCollector(