Skip to content

Instantly share code, notes, and snippets.

View Te-k's full-sized avatar

Tek Te-k

View GitHub Profile
@Te-k
Te-k / online_betting.md
Created January 12, 2025 15:56
OONI results for websites potentially blocked for illegal online betting websites - tests between September and October 2024
@Te-k
Te-k / sport_streaming.md
Created January 12, 2025 15:42
OONI results for websites potentially blocked for streaming sport events - tests between September and November 2024
@Te-k
Te-k / intellectual_property.md
Created January 12, 2025 15:00
OONI results for websites potentially blocked for intellectual property infringement - tests between September and November 2024
@Te-k
Te-k / threat_types.json
Created August 4, 2022 12:50
Google Safe Browsing Threat Types
{
"threatLists": [
{
"threatType": "MALWARE",
"platformType": "ANY_PLATFORM",
"threatEntryType": "URL"
},
{
"threatType": "MALWARE",
"platformType": "WINDOWS",
@Te-k
Te-k / threat_intel.md
Last active September 12, 2024 07:23
Threat Intelligence platforms
@Te-k
Te-k / oceanlotus.md
Created March 10, 2021 15:49
Ocean lotus reports

Ocean Lotus

aka Cobalt Kitty, APT-C-00, SeaLotus, Sea Lotus, APT-32, APT 32, Ocean Buffalo, POND LOACH, TIN WOODLAWN, BISMUTH

Reports

@Te-k
Te-k / pdf_metadata.md
Created November 26, 2020 10:31
How to remove metadata from PDFs

Many tools do not fully remove metadata, but just remove the link with in the metadata table. The data are thus still available in the PDF file itself.

While a lot of people rely on Exiftool to remove metadata, it actually does the same in PDFs. If you remove metadata with exiftool -all= some.pdf, you can always restore the data with exiftool -pdf-update:all= some.pdf.

There are several options to remove PDF metadata safely:

Option 1 : Exiftool with qpdf

  • Remove metadata with exiftool : exiftool -all= some.pdf
  • Then remove ununsed objects with qpdf : qpdf --linearize some.pdf - > some.cleaned.pdf
_ _ _ ____ _ _
| | | | __ _ ___| | __ | __ ) __ _ ___| | _| |
| |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / |
| _ | (_| | (__| < | |_) | (_| | (__| <|_|
|_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_)
A DIY Guide
@Te-k
Te-k / Maltego.py
Created January 11, 2019 13:38
Paterva official tranform library for Maltego
#
# Updated Maltego Python library
# 2013/03/30
# See TRX documentation
#
# RT
import sys
from xml.dom import minidom